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

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, #8b00ff 0%, #ff1493 50%, #ffd700 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    position: relative;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('assets/hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s infinite linear;
}

.confetti:nth-child(1) {
    left: 10%;
    background: #ffd700;
    animation-delay: 0s;
    animation-duration: 3s;
}

.confetti:nth-child(2) {
    left: 30%;
    background: #ff1493;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.confetti:nth-child(3) {
    left: 50%;
    background: #00ffff;
    animation-delay: 1s;
    animation-duration: 4s;
}

.confetti:nth-child(4) {
    left: 70%;
    background: #8b00ff;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.confetti:nth-child(5) {
    left: 90%;
    background: #ffd700;
    animation-delay: 2s;
    animation-duration: 3.8s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.logo-container {
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px #ffd700);
}

.hero-title {
    font-size: 2.2em;
    color: #ffd700;
    text-shadow: 
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px #ff1493,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    animation: titleGlow 2s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes titleGlow {
    from {
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #ff1493,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 
            0 0 15px #ffd700,
            0 0 25px #ffd700,
            0 0 35px #ff1493,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.hero-subtitle {
    font-size: 1.1em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 40px;
    line-height: 1.4;
}

.start-btn {
    background: linear-gradient(45deg, #ff1493, #ffd700);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 
        0 0 20px rgba(255, 212, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 212, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 212, 0, 0.8);
    }
}

.start-btn:active {
    transform: scale(0.98);
}

/* Game Section */
.game-section {
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #4b0082 0%, #8b00ff 50%, #ff1493 100%);
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 20px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.step.active {
    background: linear-gradient(45deg, #ffd700, #ff1493);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.6);
    transform: scale(1.1);
}

.slot-machine {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(255, 20, 147, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.slot-bg {
    width: 100%;
    height: auto;
    display: block;
}

.game-step {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.game-step.active {
    opacity: 1;
    visibility: visible;
}

.step-title {
    color: #ffd700;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #ffd700;
}

/* Step 1 - Multiplier */
.multiplier-display {
    background: linear-gradient(45deg, #000, #333);
    padding: 15px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 212, 0, 0.3);
}

.multiplier-label {
    color: #fff;
    font-size: 1em;
    margin-right: 10px;
}

.multiplier-value {
    color: #ffd700;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 0 0 10px #ffd700;
    animation: multiplierGlow 1s ease-in-out infinite alternate;
}

@keyframes multiplierGlow {
    from { 
        text-shadow: 0 0 10px #ffd700; 
    }
    to { 
        text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700; 
    }
}

.spin-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff1493, #ffd700);
    border: none;
    color: #000;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 
        0 0 30px rgba(255, 212, 0, 0.6),
        inset 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: spinPulse 2s ease-in-out infinite;
}

@keyframes spinPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 212, 0, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(255, 212, 0, 0.8);
    }
}

.spin-btn:active {
    transform: scale(0.95);
}

.spin-btn.spinning {
    animation: spinRotate 0.1s linear infinite;
}

@keyframes spinRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Step 2 - Stones */
.stones-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.stone {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stone-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.stone-emoji {
    font-size: 2em;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.stone:active {
    transform: scale(0.95);
}

.stone.selected {
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px #00ff00);
}

.stone.wrong {
    transform: scale(0.9);
    filter: drop-shadow(0 0 15px #ff0000);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Step 3 - Symbols */
.symbols-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
}

.symbol-card {
    background: linear-gradient(45deg, #2a0845, #4b0082);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.symbol-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px;
    background: linear-gradient(45deg, transparent, rgba(255, 212, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.symbol-card:active .symbol-glow {
    opacity: 1;
}

.symbol-text {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px #ffd700;
    flex: 1;
}

.symbol-icon {
    font-size: 2em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.symbol-card:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 212, 0, 0.4);
}

.symbol-card.selected {
    background: linear-gradient(45deg, #ffd700, #ff1493);
    color: #000;
    transform: scale(1.05);
}

.symbol-card.selected .symbol-text {
    color: #000;
    text-shadow: none;
}

/* Hints */
.hint {
    color: #ffd700;
    font-size: 1em;
    text-align: center;
    min-height: 24px;
    text-shadow: 0 0 5px #ffd700;
    margin-top: 10px;
}

/* Win Overlay */
.win-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    padding: 20px;
    border-radius: 20px;
    z-index: 100;
}

.win-overlay.show {
    opacity: 1;
    visibility: visible;
    animation: winAppear 0.5s ease-out;
}

@keyframes winAppear {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.win-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.win-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.win-title {
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 
        0 0 20px #ffd700,
        0 0 40px #ffd700,
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    animation: winTitleGlow 1s ease-in-out infinite alternate;
}

@keyframes winTitleGlow {
    from {
        text-shadow: 
            0 0 20px #ffd700,
            0 0 40px #ffd700,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 
            0 0 30px #ffd700,
            0 0 50px #ffd700,
            0 0 70px #ff1493,
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.win-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-btn {
    background: linear-gradient(45deg, #ff1493, #ffd700);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 
        0 0 30px rgba(255, 212, 0, 0.7),
        inset 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 212, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 212, 0, 1);
    }
}

.cta-btn:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .container {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .logo {
        width: 160px;
    }
    
    .stones-container {
        gap: 10px;
    }
    
    .stone {
        width: 70px;
        height: 70px;
    }
    
    .stone-emoji {
        font-size: 1.8em;
    }
    
    .step-title {
        font-size: 1.1em;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
