/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    user-select: none;
}

/* Main Container */
.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 20px;
    z-index: 10;
}

.main-logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
}

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

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 40px;
    z-index: 10;
}

.main-title {
    font-size: 4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Game Area */
.game-area {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instruction {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    animation: pulse 2s infinite;
}

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

/* Pocket Design */
.pocket {
    width: 200px;
    height: 250px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 0 0 50px 50px;
    position: relative;
    z-index: 15;
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.pocket.hover {
    transform: scale(1.05);
    box-shadow: 
        inset 0 5px 15px rgba(0, 0, 0, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.3);
}

.pocket.success-background .pocket-inside {
    background-image: url('DIP.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 
        inset 0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
    animation: pocketInsideGlow 2s ease-in-out infinite alternate;
}

@keyframes pocketInsideGlow {
    0% {
        box-shadow: 
            inset 0 10px 20px rgba(0, 0, 0, 0.3),
            inset 0 0 30px rgba(255, 215, 0, 0.2);
    }
    100% {
        box-shadow: 
            inset 0 10px 20px rgba(0, 0, 0, 0.2),
            inset 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.pocket-opening {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 20px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 10px;
}

.pocket-inside {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(180deg, #1a252f, #2c3e50);
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Duck */
.duck-container {
    position: absolute;
    left: calc(50% + 150px);
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 20;
}

.duck-container.dragging {
    cursor: grabbing;
    z-index: 30;
}

.duck {
    width: 216px;
    height: 216px;
    border-radius: 20px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.duck.success {
    width: 270px;
    height: 270px;
    animation: none;
}

.duck:hover {
    transform: scale(1.1);
}

.duck-container.dragging .duck {
    transform: scale(1.2) rotate(5deg);
    animation: none;
}

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

/* Success State */
.success-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.success-state.active {
    opacity: 1;
    visibility: visible;
}

.banner-text {
    font-size: 4rem;
    font-weight: 600;
    color: #FFD700;
    text-align: center;
    animation: bannerSlide 2s ease-in-out infinite alternate;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bannerSlide 2s ease-in-out infinite alternate, gradientShift 3s ease-in-out infinite;
}

@keyframes bannerSlide {
    0% {
        transform: translateX(-100vw) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100vw) scale(0.8);
        opacity: 0.7;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.reset-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

.success-actions {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    animation: slideUp 0.8s ease-out 0.8s both;
    z-index: 10;
}

.btn {
    padding: 15px 30px;
    border: 3px solid #2c1810;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.buy-btn {
    background: linear-gradient(145deg, #d2691e, #8b4513);
    color: #fff;
    box-shadow: 
        0 6px 0 #5d2f0a,
        0 8px 15px rgba(139, 69, 19, 0.4);
    text-shadow: 2px 2px 0 #2c1810;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #5d2f0a,
        0 12px 25px rgba(139, 69, 19, 0.6);
    background: linear-gradient(145deg, #e6751f, #a0521a);
}

.twitter-btn {
    background: linear-gradient(145deg, #d2691e, #8b4513);
    color: #fff;
    box-shadow: 
        0 6px 0 #5d2f0a,
        0 8px 15px rgba(139, 69, 19, 0.4);
    text-shadow: 2px 2px 0 #2c1810;
}

.twitter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #5d2f0a,
        0 12px 25px rgba(139, 69, 19, 0.6);
    background: linear-gradient(145deg, #e6751f, #a0521a);
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Floating Coins */
.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.coin {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: bold;
    animation: floatCoin 8s linear infinite;
}

.coin:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.coin:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.coin:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.coin:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.coin:nth-child(5) {
    left: 90%;
    animation-delay: 1s;
}

@keyframes floatCoin {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Minimal Footer */
.minimal-footer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.social {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-logo {
        width: 250px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .game-area {
        max-width: 90%;
        height: 350px;
    }
    
    .pocket {
        width: 150px;
        height: 200px;
    }
    
    .duck {
        width: 150px;
        height: 150px;
    }
    
    .duck-container {
        left: calc(50% + 125px);
    }
    
    .banner-text {
        font-size: 2.5rem;
    }
    
    .success-actions {
        bottom: 40px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 12px 25px;
        min-width: 100px;
    }
    
    .minimal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 200px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .pocket {
        width: 120px;
        height: 160px;
    }
    
    .duck {
        width: 130px;
        height: 130px;
    }
    
    .instruction {
        font-size: 0.9rem;
        top: -40px;
    }
    
    .banner-text {
        font-size: 2rem;
    }
    
    .success-actions {
        bottom: 30px;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 10px 20px;
        min-width: 90px;
    }
}

/* Special Effects */
.duck-in-pocket {
    animation: duckSlideIn 0.8s ease-out;
}

@keyframes duckSlideIn {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(50px) scale(0.6);
        opacity: 0.3;
    }
}

.pocket-success {
    animation: pocketGlow 0.5s ease-out;
}

@keyframes pocketGlow {
    0% {
        box-shadow: 
            inset 0 5px 15px rgba(0, 0, 0, 0.3),
            0 10px 30px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow: 
            inset 0 5px 15px rgba(0, 0, 0, 0.3),
            0 10px 30px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(76, 175, 80, 0.8);
    }
    100% {
        box-shadow: 
            inset 0 5px 15px rgba(0, 0, 0, 0.3),
            0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Minigame Styles */
.minigame-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(44, 24, 16, 0.95));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: overlayPulse 2s ease-in-out infinite alternate;
}

.minigame-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes overlayPulse {
    0% { background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(44, 24, 16, 0.95)); }
    100% { background: linear-gradient(135deg, rgba(160, 82, 45, 0.95), rgba(54, 34, 26, 0.95)); }
}

.minigame-modal {
    background: linear-gradient(145deg, #faf5f0, #f0e6d6);
    border-radius: 25px;
    border: 6px solid #2c1810;
    box-shadow: 
        0 0 0 3px #d2691e,
        0 15px 0 #1a0f08,
        0 25px 50px rgba(0, 0, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    transform: scale(0.7) rotateY(15deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.minigame-overlay.active .minigame-modal {
    transform: scale(1) rotateY(0deg);
}

.minigame-modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d2691e, #f4a460, #d2691e, #8b4513);
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.minigame-header {
    background: linear-gradient(145deg, #d2691e 0%, #cd853f 50%, #8b4513 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #2c1810;
    position: relative;
    overflow: hidden;
}

.minigame-header::before {
    content: '🐕🦴';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    animation: headerFloat 2s ease-in-out infinite;
}

.minigame-header::after {
    content: '🦴🐕';
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.3;
    animation: headerFloat 2s ease-in-out infinite reverse;
}

@keyframes headerFloat {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-60%) rotate(5deg); }
}

.minigame-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    text-shadow: 
        3px 3px 0 #2c1810,
        0 0 20px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #fff, #f4a460);
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    z-index: 2;
}

.minigame-close {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    backdrop-filter: blur(5px);
}

.minigame-close:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.minigame-content {
    padding: 30px;
    text-align: center;
    background: linear-gradient(145deg, #faf5f0, #f5f0e8);
}

.minigame-content p {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c1810;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
}

.minigame-content p::before {
    content: '🎯';
    margin-right: 10px;
    font-size: 1.2em;
    animation: bounce 1s ease-in-out infinite;
}

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

.minigame-score, .minigame-timer {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    box-shadow: 
        0 6px 0 #1a0f08,
        0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.minigame-score {
    background: linear-gradient(145deg, #32cd32, #228b22);
    color: #fff;
    text-shadow: 2px 2px 0 #1a0f08;
    border: 3px solid #2c1810;
}

.minigame-timer {
    background: linear-gradient(145deg, #ff6347, #dc143c);
    color: #fff;
    text-shadow: 2px 2px 0 #1a0f08;
    border: 3px solid #2c1810;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.minigame-area {
    position: relative;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(145deg, #87ceeb 0%, #4682b4 50%, #2e5984 100%);
    border: 4px solid #2c1810;
    border-radius: 20px;
    height: 250px;
    margin: 20px 0 15px 0;
    overflow: hidden;
    cursor: crosshair;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 -4px 8px rgba(255, 255, 255, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
}

.minigame-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
    pointer-events: none;
}

.minigame-area::after {
    content: '🌟';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: sparkle 2s ease-in-out infinite;
}

.treat {
    position: absolute;
    width: 45px;
    height: 45px;
    background: 
        radial-gradient(circle at 30% 30%, #f4a460, #daa520 70%, #b8860b);
    border: 3px solid #2c1810;
    border-radius: 50%;
    cursor: pointer;
    animation: treatFloat 2.5s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.treat:before {
    content: "🦴";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.treat:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #f4a460, transparent, #daa520);
    background-clip: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.treat:hover {
    transform: scale(1.3) rotate(15deg);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(244, 164, 96, 0.6);
    border-color: #f4a460;
}

.treat:hover:after {
    opacity: 1;
    animation: hoverRing 0.6s ease-in-out infinite;
}

.treat.clicked {
    animation: treatPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes treatFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: translateY(-8px) rotate(5deg); 
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }
}

@keyframes treatPop {
    0% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
    30% { 
        transform: scale(1.6) rotate(180deg); 
        opacity: 0.8;
    }
    100% { 
        transform: scale(0) rotate(360deg); 
        opacity: 0; 
    }
}

@keyframes hoverRing {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    100% { transform: scale(1.2) rotate(360deg); opacity: 0; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.minigame-result {
    padding: 20px;
    text-align: center;
    border-top: 4px solid #d2691e;
    background: linear-gradient(145deg, #f9f4ef, #f0e6d6);
    border-radius: 0 0 20px 20px;
    display: none;
    position: relative;
}

.minigame-result.show {
    display: block;
    animation: resultSlideIn 0.5s ease-out;
}

@keyframes resultSlideIn {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.minigame-result h3 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    font-weight: 900;
    color: #8b4513;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.minigame-result p {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c1810;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.play-again-btn {
    background: linear-gradient(145deg, #d2691e 0%, #cd853f 50%, #8b4513 100%);
    color: #fff;
    border: 4px solid #2c1810;
    border-radius: 20px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #2c1810;
    box-shadow: 
        0 6px 0 #5d2f0a,
        0 10px 20px rgba(139, 69, 19, 0.4);
    position: relative;
    overflow: hidden;
}

.play-again-btn:before {
    content: '🎮';
    margin-right: 10px;
    font-size: 1.1em;
}

.play-again-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 9px 0 #5d2f0a,
        0 15px 30px rgba(139, 69, 19, 0.6);
    background: linear-gradient(145deg, #e6751f 0%, #d2691e 50%, #a0521a 100%);
}

.play-again-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 0 #5d2f0a,
        0 5px 10px rgba(139, 69, 19, 0.4);
}

/* Add responsive design */
@media (max-width: 768px) {
    .minigame-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }
    
    .minigame-area {
        height: 200px;
        margin: 15px 0 10px 0;
    }
    
    .minigame-header {
        padding: 20px;
    }
    
    .minigame-header h2 {
        font-size: 1.4rem;
    }
    
    .minigame-content {
        padding: 20px;
    }
    
    .minigame-result {
        padding: 15px;
    }
    
    .minigame-result h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    
    .treat {
        width: 40px;
        height: 40px;
    }
    
    .treat:before {
        font-size: 24px;
    }
    
    .play-again-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}