:root {
--bg-main: #0b0d12;
--card-bg: #141822;
--card-bg-hover: #1c2230;
--border-color: rgba(255, 255, 255, 0.08);
--fox-orange: #f97316;
--fox-orange-hover: #ea580c;
--fox-amber: #f59e0b;
--fox-glow: rgba(249, 115, 22, 0.4);
--text-muted: #94a3b8;
--text-dim: #64748b;
}

body {
background-color: var(--bg-main);
background-image:
radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
color: #f1f5f9;
font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
min-height: 100vh;
overflow-x: hidden;
letter-spacing: -0.01em;
}

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

.glass-nav {
background: rgba(11, 13, 18, 0.85);
backdrop-filter: blur(16px);
border-bottom: 1px solid var(--border-color);
}

.brand-logo {
text-decoration: none;
font-weight: 800;
font-size: 1.4rem;
}

.brand-icon {
font-size: 1.6rem;
filter: drop-shadow(0 2px 10px rgba(249, 115, 22, 0.5));
}

.brand-text {
color: #ffffff;
}

.brand-sub {
color: var(--fox-orange);
}

.bg-dark-card {
background: var(--card-bg);
}

.border-subtle {
border-color: var(--border-color) !important;
}

.text-fox {
color: var(--fox-orange) !important;
}

.bg-fox {
background-color: var(--fox-orange) !important;
}

.bg-fox-subtle {
background-color: rgba(249, 115, 22, 0.15) !important;
}

.btn-fox {
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
color: #ffffff;
border: none;
transition: all 0.2s ease;
box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-fox:hover {
background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
color: #ffffff;
transform: translateY(-1px);
box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.btn-fox-outline {
border: 1px solid var(--fox-orange);
color: var(--fox-orange);
background: transparent;
transition: all 0.2s ease;
}

.btn-fox-outline:hover {
background: rgba(249, 115, 22, 0.12);
color: var(--fox-orange);
}

.balance-badge {
background: rgba(249, 115, 22, 0.1);
border: 1px solid rgba(249, 115, 22, 0.3);
color: #fbbf24;
font-size: 0.95rem;
padding: 6px 16px;
border-radius: 50px;
box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.xp-bar-container {
width: 100px;
height: 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
overflow: hidden;
}

.xp-bar-fill {
height: 100%;
background: linear-gradient(90deg, var(--fox-orange), var(--fox-amber));
transition: width 0.3s ease;
}

/* Cabinet & Reel Matrix Structure */
.slot-cabinet {
background: linear-gradient(180deg, #181d2a 0%, #10131c 100%);
border: 1px solid rgba(249, 115, 22, 0.2);
border-radius: 28px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(249, 115, 22, 0.1);
position: relative;
}

.slot-cabinet::before {
content: '';
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
width: 60%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--fox-orange), transparent);
}

.matrix-wrapper {
display: flex;
align-items: center;
gap: 12px;
}

.payline-sidebar {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 330px;
}

.payline-badge {
font-size: 0.75rem;
font-weight: 800;
padding: 6px 8px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
color: var(--text-dim);
transition: all 0.3s ease;
user-select: none;
}

.payline-badge.active-line {
background: var(--fox-orange);
color: #ffffff;
border-color: #fca5a5;
box-shadow: 0 0 12px var(--fox-glow);
transform: scale(1.1);
}

.reel-matrix {
background: #08090d;
border: 2px solid rgba(255, 255, 255, 0.06);
border-radius: 20px;
padding: 18px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 14px;
box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.8);
flex-grow: 1;
}

.reel-cell {
background: linear-gradient(180deg, #121622 0%, #1a202e 100%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
height: 110px;
display: flex;
align-items: center;
justify-content: center;
font-size: 3.5rem;
transition: transform 0.15s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
user-select: none;
position: relative;
overflow: hidden;
}

.reel-cell.spinning {
animation: reelBlur 0.1s infinite linear;
filter: blur(3px);
opacity: 0.85;
}

@keyframes reelBlur {
0% { transform: translateY(-10px) scaleY(1.08); }
50% { transform: translateY(10px) scaleY(1.08); }
100% { transform: translateY(-10px) scaleY(1.08); }
}

.reel-cell.win-highlight {
border-color: var(--fox-amber);
background: linear-gradient(180deg, rgba(249, 115, 22, 0.25) 0%, rgba(245, 158, 11, 0.35) 100%);
box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.3);
animation: symbolBounce 0.6s ease infinite alternate;
z-index: 2;
}

@keyframes symbolBounce {
0% { transform: scale(1); }
100% { transform: scale(1.08); }
}

/* Spin Button Styling */
.btn-spin {
background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
color: #ffffff;
font-weight: 800;
font-size: 1.3rem;
letter-spacing: 1px;
padding: 16px 0;
border-radius: 16px;
border: none;
box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
}

.btn-spin:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

.btn-spin:active:not(:disabled) {
transform: translateY(1px);
box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.btn-spin:disabled {
opacity: 0.5;
cursor: not-allowed;
box-shadow: none;
filter: grayscale(40%);
}

.game-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 20px;
transition: all 0.25s ease;
}

.game-card:hover {
background: var(--card-bg-hover);
transform: translateY(-4px);
border-color: rgba(249, 115, 22, 0.4);
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.game-card-pill {
cursor: pointer;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-color);
padding: 8px 18px;
border-radius: 30px;
font-weight: 600;
font-size: 0.9rem;
color: var(--text-muted);
transition: all 0.2s ease;
}

.game-card-pill.active, .game-card-pill:hover {
background: rgba(249, 115, 22, 0.15);
color: var(--fox-orange);
border-color: var(--fox-orange);
box-shadow: 0 0 12px rgba(249, 115, 22, 0.2);
}

.table-glass {
background: var(--card-bg);
border-radius: 16px;
overflow: hidden;
border: 1px solid var(--border-color);
}

.free-spins-badge {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.4);
color: #f87171;
padding: 4px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 700;
animation: pulse 1.5s infinite;
}

@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}

/* Big Win Celebration Overlay Modal */
.big-win-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(11, 13, 18, 0.88);
backdrop-filter: blur(12px);
z-index: 9998;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}

.big-win-overlay.show {
opacity: 1;
pointer-events: auto;
}

.big-win-title {
font-size: 3.5rem;
font-weight: 900;
text-transform: uppercase;
background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #fef08a 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 10px 30px rgba(249, 115, 22, 0.5);
letter-spacing: 2px;
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.big-win-amount {
font-size: 4.5rem;
font-weight: 900;
color: #ffffff;
margin: 15px 0;
text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

@keyframes popIn {
0% { transform: scale(0.5); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}

.shake-screen {
animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
10%, 90% { transform: translate3d(-1px, 0, 0); }
20%, 80% { transform: translate3d(2px, 0, 0); }
30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
40%, 60% { transform: translate3d(4px, 0, 0); }
}