/*
 * Some general styling
 */

* {
    box-sizing: border-box;
}

:root {
    --item-height: 140px;
    --casino-gold: #ffd700;
    --casino-red: #dc143c;
    --casino-blue: #1e90ff;
    --casino-green: #32cd32;
    --casino-purple: #8a2be2;
    --dark-bg: #ffffff;
    /* Ancient royal theme palette */
    --royal-burgundy: #2a0f14;
    --royal-purple: #2a1a4a;
    --royal-gold: #c9a227;
    --header-bg: #f8f9fa;
    --fun-orange: #ff6b35;
    --fun-yellow: #c9a227;
    --fun-pink: #ff9ff3;
    --fun-cyan: #54a0ff;
    --fun-lime: #5f27cd;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
    /* Ancient royal background */
    background-color: var(--royal-burgundy);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'> <rect width='160' height='160' fill='none'/> <g fill='%23c9a227' fill-opacity='0.07'> <path d='M80 20c10 12 24 18 40 18-2 18-10 32-24 42 8 16 8 32 0 48-16 0-28-6-36-18-8 12-20 18-36 18-8-16-8-32 0-48-14-10-22-24-24-42 16 0 30-6 40-18 6 8 14 14 24 18 10-4 18-10 24-18z'/> <circle cx='20' cy='20' r='3'/> <circle cx='140' cy='20' r='3'/> <circle cx='20' cy='140' r='3'/> <circle cx='140' cy='140' r='3'/> </g> </svg>");
    background-repeat: repeat;
    background-size: 160px 160px;
    margin: 0;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}



/* Gentle vignette using solid shadow (no gradients) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 0;
}

/* ===== GAMIFIED HEADER STYLES ===== */
.game-header {
    background: var(--header-bg);
    padding: 10px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    text-align: center;
}

.game-title {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    color: var(--fun-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.tagline {
    margin: 2px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

.game-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    background: var(--card-bg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.nav-link:hover {
    background: var(--fun-yellow);
    border-color: var(--fun-yellow);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(254, 202, 87, 0.3);
    color: var(--text-primary);
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: var(--fun-cyan);
    color: white;
    border: 2px solid transparent;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 160, 255, 0.4);
    border-color: var(--fun-yellow);
    background: var(--fun-yellow);
    color: var(--text-primary);
}

/* Casino Chips */
.casino-chips {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.chip {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.7rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.chip-1 {
    background: var(--fun-orange);
    animation-delay: 0s;
}

.chip-2 {
    background: var(--fun-cyan);
    animation-delay: 0.5s;
}

.chip-3 {
    background: var(--fun-lime);
    animation-delay: 1s;
}

/* ===== BACKGROUND DECORATIVE ELEMENTS ===== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-card, .dice {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float-around 20s linear infinite;
}

.card-1 { top: 15%; left: 10%; animation-delay: 0s; }
.card-2 { top: 25%; right: 15%; animation-delay: 5s; }
.card-3 { bottom: 30%; left: 20%; animation-delay: 10s; }
.card-4 { bottom: 20%; right: 25%; animation-delay: 15s; }

.dice-1 { top: 40%; left: 5%; animation-delay: 2s; }
.dice-2 { top: 60%; right: 10%; animation-delay: 7s; }
.dice-3 { bottom: 40%; left: 15%; animation-delay: 12s; }

/* ===== FOOTER STYLES ===== */
.game-footer {
    background: var(--header-bg);
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 -4px 20px var(--shadow-light);
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    color: var(--fun-orange);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 25px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: var(--fun-orange);
    font-size: 1rem;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 8px 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--fun-orange);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-links span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 15px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--fun-yellow);
    box-shadow: 0 2px 4px var(--shadow-light);
}

/* ===== ANIMATIONS ===== */
@keyframes glow {
    from { text-shadow: 0 0 20px rgba(254, 202, 87, 0.5); }
    to { text-shadow: 0 0 30px rgba(254, 202, 87, 0.8), 0 0 40px rgba(254, 202, 87, 0.3); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-around {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 50px) rotate(90deg); }
    50% { transform: translate(50px, 100px) rotate(180deg); }
    75% { transform: translate(-50px, 50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .game-nav {
        justify-content: center;
        gap: 8px;
    }
    
    .casino-chips {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 10px;
        flex-direction: row;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
}

/*
 * Style the orange box
 */

.start-button {
    display: block;
    margin: 35px auto 0 auto;
    padding: 22px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    background: 
        linear-gradient(135deg, #d4af37, #b8860b),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.1) 3px,
            rgba(255, 255, 255, 0.1) 6px
        );
    border: 4px solid #8b4513;
    border-radius: 40px;
    color: #1a0f0a;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.6),
        inset 0 3px 8px rgba(255, 255, 255, 0.4),
        0 0 25px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Times New Roman', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.start-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.8),
        inset 0 3px 8px rgba(255, 255, 255, 0.4),
        0 0 35px rgba(212, 175, 55, 0.6);
    background: 
        linear-gradient(135deg, #b8860b, #d4af37),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.15) 3px,
            rgba(255, 255, 255, 0.15) 6px
        );
}

.start-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 20px rgba(254, 202, 87, 0.6);
}

.start-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
    color: #666;
    border-color: #999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.start-button:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    max-width: 95vw;
    width: 800px;
    margin: 30px auto;
    border: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#container::before { display: none; }

#container::after { display: none; }

.controls-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.controls-row .start-button {
    margin: 0;
    align-self: center;
}

.controls-row .betting-section {
    flex: 1;
}

.window-border {
    margin-top: 20px;
    padding: 12px;
    background: 
        linear-gradient(135deg, #8b4513, #654321),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(139, 69, 19, 0.3) 3px,
            rgba(139, 69, 19, 0.3) 6px
        );
    border-radius: 20px;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 25px rgba(139, 69, 19, 0.5),
        0 0 20px rgba(212, 175, 55, 0.4);
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.window {
    position: relative;
    overflow: hidden;
    height: calc(3 * var(--item-height));
    border-radius: 15px;
    background: 
        linear-gradient(135deg, #1a0f0a, #2c1810),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.1) 2px,
            rgba(139, 69, 19, 0.1) 4px
        );
    border: 2px solid #d4af37;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(212, 175, 55, 0.3);
}

.window::before {
    content: "";
    clear: both;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--fun-yellow);
    z-index: 10;
    border-radius: 10px 10px 0 0;
}

.window::after {
    content: "";
    clear: both;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--fun-yellow);
    z-index: 10;
    border-radius: 0 0 10px 10px;
}

.outer-col {
    overflow-y: hidden;
    overflow-x: hidden;
    width: 150px;
    float: left;
    background: 
        linear-gradient(180deg, #8b4513, #654321),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(139, 69, 19, 0.3) 3px,
            rgba(139, 69, 19, 0.3) 6px
        );
    height: calc(var(--item-height) * 3);
    border-radius: 12px;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(212, 175, 55, 0.5);
    border: 2px solid #d4af37;
    margin: 0 3px;
    position: relative;
}

.outer-spacer {
    width: 15px;
    height: 100%;
    float: left;
    border-right: 2px solid #d4af37;
    background: 
        linear-gradient(180deg, #8b4513, #654321),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.2) 2px,
            rgba(139, 69, 19, 0.2) 4px
        );
    border-radius: 6px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    margin: 0 2px;
}

.col {
    padding: 0 5px;
    will-change: true;
    transform: translateY(calc(-100% + var(--item-height) * 3));
    width: 100%;
    box-sizing: border-box;
}

.col img {
    width: 100%;
    height: auto;
    margin: 8px 0;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease;
    max-width: 100%;
}

.col img:hover {
    transform: scale(1.05);
}

/* Enhanced shadow effect behind the items */
.col .icon::after {
    content: "";
    clear: both;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background-color: white;
    box-shadow: 0 0 40px 35px var(--fun-yellow);
    z-index: 2;
    border-radius: 100%;
    animation: shadowPulse 2s ease-in-out infinite;
}

/* Enhanced spinning animation */
#container.spinning .outer-col:nth-of-type(2) .col {
    animation-delay: 0.01s;
}

#container.spinning .outer-col:nth-of-type(3) .col {
    animation-delay: 0.02s;
}

#container.spinning .outer-col:nth-of-type(4) .col {
    animation-delay: 0.03s;
}

#container.spinning .outer-col:nth-of-type(5) .col {
    animation-delay: 0.04s;
}

#container.spinning .col {
    animation-name: scroll;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.65, .97, .72, 1);
}

@keyframes scroll {
    to {
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    from { box-shadow: 0 0 20px rgba(254, 202, 87, 0.5); }
    to { box-shadow: 0 0 30px rgba(254, 202, 87, 0.8), 0 0 40px rgba(254, 202, 87, 0.3); }
}

@keyframes royalBorderGlow {
    from { 
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.6), 0 0 35px rgba(212, 175, 55, 0.3); 
    }
    to { 
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.8), 0 0 45px rgba(212, 175, 55, 0.5); 
    }
}

@keyframes royalShine {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.01); }
}

@keyframes shadowPulse {
    0%, 100% { 
        box-shadow: 0 0 40px 35px var(--fun-yellow);
        opacity: 0.8;
    }
    50% { 
        box-shadow: 0 0 50px 40px var(--fun-yellow);
        opacity: 1;
    }
}

/* Responsive adjustments for the new container */
@media (max-width: 900px) {
    #container {
        width: 98vw;
        padding: 50px 30px;
        margin: 20px auto;
    }
    
    .outer-col {
        width: 130px;
    }
    
    .outer-spacer {
        width: 10px;
    }
    
    .icon {
        width: 100%;
    }
    
    .start-button {
        padding: 18px 25px;
        font-size: 1.2rem;
    }
    
    /* Betting interface responsive */
    .betting-controls {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .bet-buttons {
        justify-content: center;
    }
    
    .results-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 600px) {
    #container {
        padding: 40px 20px;
        margin: 15px auto;
    }
    
    .outer-col {
        width: 110px;
    }
    
    .outer-spacer {
        width: 8px;
    }
    
    .icon {
        width: 100%;
    }
    
    .start-button {
        padding: 15px 20px;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    /* Mobile betting interface */
    .betting-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .bet-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .bet-amount {
        font-size: 1.3rem;
    }
    
    .token-display {
        flex-direction: column;
        gap: 5px;
        padding: 8px 15px;
    }
    
    .token-amount {
        font-size: 1.1rem;
    }
    
    .winning-probability {
        flex-direction: column;
        gap: 5px;
        padding: 6px 12px;
    }
    
    .probability-value {
        font-size: 1rem;
    }
    
    .hot-streak-info {
        padding: 2px 6px;
        margin-top: 3px;
    }
    
    .streak-label {
        font-size: 0.75rem;
    }
    
    /* Mobile results modal */
    .results-content {
        width: 98%;
        margin: 10px;
    }
    
    .results-header {
        padding: 20px 25px 15px;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .final-result, .winning-lines, .no-wins, .total-winnings {
        padding: 20px 25px;
    }
    
    .result-icon {
        width: 50px;
        height: 50px;
    }
    
    .line-icon {
        width: 35px;
        height: 35px;
    }
    
    .winning-line {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .line-info, .line-winnings {
        min-width: auto;
    }
}

/*
 * Reels and icon styling
 */

.icon {
    width: 100%;
    height: var(--item-height);
    display: block;
    position: relative;
    box-sizing: border-box;
    /*animation: wiggle 0.1s linear infinite;*/
}

/*@keyframes wiggle {
    0% {
        transform: rotate(7deg);
    }
    50% {
        transform: rotate(-7deg);
    }
    100% {
        transform: rotate(7deg);
    }
}*/

/* ===== BETTING INTERFACE STYLES ===== */
.betting-section {
  background: 
      linear-gradient(135deg, #2c1810, #1a0f0a),
      repeating-linear-gradient(
          45deg,
          transparent,
          transparent 8px,
          rgba(139, 69, 19, 0.1) 8px,
          rgba(139, 69, 19, 0.1) 16px
      );
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 
      0 12px 35px rgba(0, 0, 0, 0.6),
      inset 0 0 25px rgba(139, 69, 19, 0.3),
      0 0 20px rgba(212, 175, 55, 0.2);
  border: 3px solid #d4af37;
  position: relative;
  overflow: hidden;
}

.betting-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.08) 50%, transparent 70%);
  border-radius: 20px;
  animation: royalShine 5s ease-in-out infinite;
  pointer-events: none;
}

.betting-section::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 15px;
  pointer-events: none;
}

/* Layout to keep spin on the right inside betting section */
.betting-layout {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.betting-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.betting-right {
  display: flex;
  align-items: center;
}

.betting-right .start-button {
  margin: 0;
}

.betting-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.08) 50%, transparent 70%);
  border-radius: 20px;
  animation: royalShine 5s ease-in-out infinite;
  pointer-events: none;
}

.betting-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bet-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--text-primary);
}

.bet-label {
  color: #f8e7a8;
}

.bet-amount {
  font-size: 1.6rem;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bet-buttons {
  display: flex;
  gap: 10px;
}

.bet-btn {
  padding: 12px 18px;
  border: 2px solid #d4af37;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 1.1rem;
  min-width: 70px;
  font-family: 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.4),
      inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.minus-btn {
  background: 
      linear-gradient(135deg, #8b0000, #dc143c),
      repeating-linear-gradient(
          45deg,
          transparent,
          transparent 2px,
          rgba(255, 255, 255, 0.1) 2px,
          rgba(255, 255, 255, 0.1) 4px
      );
  color: white;
  border-color: #8b0000;
}

.minus-btn:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.plus-btn {
  background: 
      linear-gradient(135deg, #006400, #32cd32),
      repeating-linear-gradient(
          45deg,
          transparent,
          transparent 2px,
          rgba(255, 255, 255, 0.1) 2px,
          rgba(255, 255, 255, 0.1) 4px
      );
  color: white;
  border-color: #006400;
}

.plus-btn:hover:not(:disabled) {
  background: #28a745;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.bet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.token-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: bold;
  color: #d4af37;
  background: 
      linear-gradient(135deg, rgba(139, 69, 19, 0.3), rgba(101, 67, 33, 0.3)),
      repeating-linear-gradient(
          45deg,
          transparent,
          transparent 3px,
          rgba(212, 175, 55, 0.1) 3px,
          rgba(212, 175, 55, 0.1) 6px
      );
  padding: 15px 25px;
  border-radius: 30px;
  border: 2px solid #d4af37;
  box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.4),
      inset 0 2px 8px rgba(212, 175, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.token-amount {
  font-size: 1.4rem;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Times New Roman', serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.token-symbol {
  font-size: 1.2rem;
  animation: tokenGlow 2s ease-in-out infinite alternate;
}

@keyframes tokenGlow {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}





/* ===== RESULTS MODAL STYLES ===== */
.results-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.results-modal.show {
  opacity: 1;
}

.results-content {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 25px 50px var(--shadow-medium),
    0 0 0 1px var(--fun-yellow),
    0 0 30px rgba(254, 202, 87, 0.5);
  animation: resultsSlideIn 0.3s ease-out;
  border: 1px solid var(--border-color);
}

.results-header {
  background: var(--fun-orange);
  padding: 25px 30px 20px;
  text-align: center;
  position: relative;
  border-radius: 20px 20px 0 0;
}

.results-header h2 {
  margin: 0;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-results-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-results-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.final-result {
  padding: 25px 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.final-result h3 {
  color: var(--fun-orange);
  margin: 0 0 15px 0;
  font-size: 1.3rem;
}

.result-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.result-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.result-icon:hover {
  transform: scale(1.1);
}

.winning-lines {
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
}

.winning-lines h3 {
  color: var(--fun-orange);
  margin: 0 0 20px 0;
  font-size: 1.3rem;
  text-align: center;
}

.winning-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--light-bg);
  border-radius: 10px;
  border: 1px solid var(--fun-yellow);
}

.line-info {
  font-weight: bold;
  color: var(--text-primary);
  min-width: 80px;
}

.line-symbols {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.line-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.line-winnings {
  font-weight: bold;
  color: var(--casino-green);
  font-size: 1.1rem;
  min-width: 80px;
  text-align: right;
}

.no-wins {
  padding: 25px 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.no-wins p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.total-winnings {
  padding: 25px 30px;
  text-align: center;
  background: var(--fun-yellow);
}

.total-winnings h3 {
  color: var(--fun-orange);
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.total-winnings p {
  color: var(--text-primary);
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.play-again-btn {
  width: 100%;
  padding: 20px;
  background: var(--fun-orange);
  border: none;
  border-radius: 0 0 20px 20px;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.play-again-btn:hover {
  background: var(--fun-yellow);
  color: var(--text-primary);
  transform: translateY(-2px);
}

@keyframes resultsSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== AUTHENTICATION DIALOG STYLES ===== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.auth-dialog {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 
        0 25px 50px var(--shadow-medium),
        0 0 0 1px var(--fun-yellow),
        0 0 30px rgba(254, 202, 87, 0.3);
    animation: dialogSlideIn 0.3s ease-out;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auth-header {
    background: var(--fun-orange);
    padding: 25px 30px 20px;
    text-align: center;
    position: relative;
}

.auth-header h2 {
    margin: 0;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.auth-form {
    padding: 30px;
    background: var(--card-bg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--fun-orange);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--fun-yellow);
    background: white;
    box-shadow: 0 0 20px rgba(254, 202, 87, 0.3);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--fun-yellow);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 202, 87, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.switch-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.switch-text a {
    color: var(--fun-orange);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.switch-text a:hover {
    color: var(--fun-yellow);
    text-shadow: 0 0 10px rgba(254, 202, 87, 0.5);
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments for auth dialog */
@media (max-width: 600px) {
    .auth-dialog {
        width: 95%;
        margin: 20px;
    }
    
    .auth-header {
        padding: 20px 25px 15px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 25px 20px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* ===== ENCORE REWARDS PROGRAM STYLES ===== */
.encore-rewards {
    background: white;
    padding: 60px 20px;
    margin: 60px 0;
}

.rewards-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Logo and Header Styles */
.rewards-header {
    margin-bottom: 50px;
}

.encore-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-diamond {
    width: 60px;
    height: 60px;
    background: #8B4513;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    transform: rotate(45deg);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text .encore {
    font-size: 2.5rem;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.logo-text .rewards {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

.rewards-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

/* Three Column Features */
.rewards-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
}

.feature-column {
    padding: 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(128, 0, 128, 0.3));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Button */
.rewards-cta {
    margin: 50px 0;
}

.learn-more-btn {
    background: #8B0000;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.learn-more-btn:hover {
    background: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.learn-more-btn:active {
    transform: translateY(0);
}

/* Online Casino Section */
.online-casino-section {
    text-align: left;
    margin-top: 80px;
    padding: 0 20px;
}

.casino-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #D2691E;
    margin: 0 0 25px 0;
    text-align: left;
}

.casino-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

/* Responsive Design for Encore Rewards */
@media (max-width: 768px) {
    .encore-rewards {
        padding: 40px 15px;
        margin: 40px 0;
    }
    
    .rewards-title {
        font-size: 2.2rem;
    }
    
    .rewards-features {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .logo-text .encore {
        font-size: 2rem;
    }
    
    .casino-title {
        font-size: 2rem;
    }
    
    .casino-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .encore-rewards {
        padding: 30px 10px;
        margin: 30px 0;
    }
    
    .rewards-title {
        font-size: 1.8rem;
    }
    
    .logo-diamond {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .logo-text .encore {
        font-size: 1.8rem;
    }
    
    .logo-text .rewards {
        font-size: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.3rem;
    }
    
    .learn-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .casino-title {
        font-size: 1.8rem;
    }
}

/* ===== SOFT ZOOM IN ANIMATION ===== */
@keyframes softZoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0.3;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}