.game-body {
    background: linear-gradient(135deg, #fdf4f6, #fbe9ec);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 71px);
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAYFBMVEUAAAD/zyL/0if/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL/zyL5qNuqAAAAH3RSTlMAoAW23hIQ43h2yP/j/O+p3vD+2/P6//f1+vvLdAftjwAAAbpJREFUSMe1l4miwyAMS2g6s3aMtm21//+5bIWQ2Q3Tw3BfX3ZsoPD0D1P2QvwEF4qP8KigfS2d2DkY+VwsAjfFw8sAFj/9TIAnF75W2o1TfPcNXFcT7Tj4sP/yCcsx2sU405R74fHH1Ld635oN4Pzz/Tkm2R+O+KPwFk5MZBTSJ2yHl4u7MAuKFbEUDIY2fA3GFc9sxIAnDWtCUNhRwW4EptpNb3NcoOE2EFYp624MPC4sUIgdToQYxVTBMPw2MAnHcaN/K4g8v0vMUCS4b3hHwGOG9GQt0jFm0LHMx+Lgb0DnhR4C7rCDBXQuXND4vE5GgsQL4gKa95XW00A4A0Bq3gAs0UqA/ZhbVIBdASs3gL8g1sYgFkF1gBtApmAS2PUDsPBoBoJMgV0Vch2w34iAEOB1F7xgGkAPD8HMAOD3A+AnABTwBdoHKEuGAYgv8l8uAAD8H8LzQfIAGYAOwAUIBzAoZwF4G2oTUAyAOfhAagArA+I4BNIBHIDAACgM7BLaD4D7+BvEEwG1tB7n9fA+5AEAgGwB4KNc9wMIOAE3B1y4ADiBwzT/Bz+TDuQ+tVx34ABwB4qLIA/AfxH5B/8yEa9nAAAAAElFTkSuQmCC) repeat top center;
    animation: move-twinkle-back 200s linear infinite;
}

@keyframes move-twinkle-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.game-container {
    position: relative;
    z-index: 1;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: clamp(20px, 5vw, 30px);
    border-radius: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.game-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.game-container h1 {
    font-family: var(--heading-font);
    color: var(--pink-deep);
    font-size: clamp(2.5rem, 8vw, 3rem);
    margin-bottom: 20px;
    text-shadow: 0 0 8px #fff, 0 0 18px var(--pink-accent);
}

/* Pet Display */
.pet-display {
    background: rgba(255, 240, 245, 0.7);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 2px solid var(--border-light);
}

.pet-character {
    font-size: clamp(4rem, 12vw, 6rem);
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

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

.pet-name {
    font-family: var(--heading-font);
    font-size: 1.8em;
    color: var(--pink-deep);
    margin-bottom: 10px;
}

.pet-mood {
    font-size: 2em;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Pet Stats */
.pet-stats {
    margin-bottom: 25px;
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 15px;
    border: 2px solid var(--border-light);
}

.stat-label {
    font-weight: 700;
    color: var(--primary-text);
    min-width: 100px;
    text-align: left;
    font-size: 0.9em;
}

.stat-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-fill {
    height: 20px;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    flex: 1;
    background: #e0e0e0;
}

.stat-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: var(--stat-width, 100%);
}

.stat-fill.health::before {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.stat-fill.hunger::before {
    background: linear-gradient(90deg, #4ecdc4, #7ed6cc);
}

.stat-fill.happiness::before {
    background: linear-gradient(90deg, #ffe66d, #ffed8a);
}

.stat-fill.energy::before {
    background: linear-gradient(90deg, #a8e6cf, #c8f0dc);
}

.stat-value {
    font-weight: 700;
    color: var(--primary-text);
    min-width: 30px;
    text-align: right;
    font-size: 0.9em;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-deep));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(233, 81, 113, 0.3);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 81, 113, 0.4);
}

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

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

.btn-icon {
    font-size: 1.5em;
}

.btn-text {
    font-size: 0.9em;
}

/* Game Info */
.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 240, 245, 0.7);
    border-radius: 15px;
    border: 2px solid var(--border-light);
}

.info-item {
    text-align: center;
}

.info-label {
    display: block;
    font-weight: 700;
    color: var(--primary-text);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--pink-deep);
}

/* Pet Selection */
.pet-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pet-option {
    background: rgba(255, 240, 245, 0.7);
    border: 3px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pet-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pet-option.active {
    border-color: var(--pink-deep);
    background: rgba(233, 81, 113, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(233, 81, 113, 0.2);
}

.pet-preview {
    font-size: 3em;
    margin-bottom: 10px;
}

.pet-option h3 {
    font-family: var(--heading-font);
    color: var(--pink-deep);
    margin-bottom: 5px;
    font-size: 1.2em;
}

.pet-option p {
    color: var(--primary-text);
    font-size: 0.9em;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 1000;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 25px;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 95%;
    width: 600px;
    box-sizing: border-box;
    margin: 20px;
}

.modal-content.small {
    width: 400px;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: var(--heading-font);
    font-size: 2.2em;
    color: var(--pink-deep);
    margin-bottom: 25px;
}

.action-result {
    font-size: 1.5em;
    color: var(--primary-text);
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 240, 245, 0.7);
    border-radius: 15px;
    border: 2px solid var(--border-light);
}

.restart-button {
    background: linear-gradient(135deg, var(--pink-accent), var(--pink-deep));
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1.3em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.4);
    width: 100%;
}

.restart-button.small {
    padding: 12px 30px;
    font-size: 1.1em;
}

.restart-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

.tagline {
    color: var(--text-dark);
    font-size: 1em;
    font-weight: 500;
    margin-top: 20px;
    padding: 8px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .game-container {
        max-width: 95%;
        padding: 20px;
    }
    
    .pet-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pet-option {
        padding: 15px;
    }
    
    .pet-preview {
        font-size: 2.5em;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .info-label, .info-value {
        display: inline;
    }
}

@media (max-width: 480px) {
    .pet-character {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .stat-label {
        min-width: 80px;
        font-size: 0.8em;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
