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

body {
    font-family: 'Arial Rounded MT', Arial, sans-serif;
    background: #83807A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2D2C55;
    padding: 1rem 0;
    position: relative;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(131, 128, 122, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(207, 203, 190, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(243, 237, 223, 0.3) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.game-container {
    background: #F6F0E2;
    backdrop-filter: blur(20px);
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    border: 1px solid #CFCBBE;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FE5353, #FDD97A, #34ABDE, #6F6FD2);
    background-size: 300% 300%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.title {
    margin-bottom: 0.5rem;
    text-align: center;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.subtitle {
    font-size: 1.1rem;
    color: #474786;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #227191;
    color: white;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(34, 113, 145, 0.3);
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: #FE5353;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    margin-left: 1rem;
}

.user-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.user-email {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.personal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #26B877;
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(38, 184, 119, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(38, 184, 119, 0.4);
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    font-weight: 500;
}

.leaderboard {
    background: #2D4574;
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(45, 69, 116, 0.3);
}

.leaderboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-btn.active {
    background: #FE5353;
    box-shadow: 0 4px 15px rgba(254, 83, 83, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.score-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.score-list::-webkit-scrollbar {
    width: 6px;
}

.score-list::-webkit-scrollbar-track {
    background: transparent;
}

.score-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.score-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.score-rank {
    font-weight: 700;
    width: 30px;
    font-size: 1.1rem;
}

.score-player {
    flex: 1;
    margin-left: 0.8rem;
    font-weight: 500;
}

.score-value {
    font-weight: 700;
    color: #FDD97A;
    font-size: 1.1rem;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    background: #2D4574;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(25, 118, 123, 0.3);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 0.3rem;
}

.current-word {
    text-align: center;
    margin-bottom: 2rem;
}

.current-word p {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    font-weight: 600;
    color: #2D4574;
}

.word-display {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Rounded MT', Arial, sans-serif;
    background: #26B877;
    color: white;
    padding: 1.5rem;
    margin-bottom: 0rem;
    letter-spacing: 3px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 12px 30px rgba(38, 184, 119, 0.4);
}

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

.word-hint {
    font-size: 1.1rem;
    color: white;
    background: #2D4574;
    padding: 1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(45, 69, 116, 0.3);
}

.bonus-system {
    background: #26B877;
    color: white;
    padding: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 15px 35px rgba(254, 121, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.bonus-system::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: bonusRotate 10s linear infinite;
}

@keyframes bonusRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bonus-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.bonus-multiplier {
    background: #2D4574;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

.bonus-active {
    background: #26B877;
    animation: bonusGlow 2s ease-in-out infinite alternate;
}

.bonus-mega {
    background: linear-gradient(45deg, #FE5353, #FDD97A, #34ABDE, #6F6FD2);
    background-size: 300% 300%;
    animation: megaBonus 1.5s ease-in-out infinite, bonusGlow 2s ease-in-out infinite alternate;
}

@keyframes bonusGlow {
    0% { 
        box-shadow: 0 0 20px rgba(38, 184, 119, 0.5);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 40px rgba(38, 184, 119, 0.8);
        transform: scale(1.02);
    }
}

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

.bonus-explanation {
    font-size: 0.95rem;
    opacity: 0.95;
    text-align: center;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.bonus-explanation div {
    margin-bottom: 0.3rem;
}

.input-section {
    margin-bottom: 2rem;
    text-align: center;
}

.input-container {
    margin-bottom: 2rem;
    position: relative;
}

.word-input {
    width: 100%;
    padding: 2rem;
    border: 3px solid #2D4574;
    font-size: 2.8rem;
    font-family: 'Arial Rounded MT', Arial, sans-serif;
    font-weight: 700;
    background: white;
    color: #1976FF;
    text-align: center;
    letter-spacing: 2px;
    height: 90px;
    line-height: 1.2;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(25, 118, 255, 0.2);
}

.word-input:focus {
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(25, 118, 255, 0.3);
    border-color: #26B877;
}

.word-input::placeholder {
    color: #19767B;
}

.submit-btn {
    background: #26B877;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 1.5rem auto 0 auto;
    box-shadow: 0 10px 30px rgba(38, 184, 119, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #208B74;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(38, 184, 119, 0.6);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 1.5rem;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.feedback.success {
    color: white;
    background: #26B877;
    box-shadow: 0 8px 25px rgba(38, 184, 119, 0.3);
    animation: feedbackPop 0.5s ease-out;
}

.feedback.error {
    color: white;
    background: #FE5353;
    box-shadow: 0 8px 25px rgba(254, 83, 83, 0.3);
    animation: feedbackShake 0.5s ease-out;
}

@keyframes feedbackPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

.word-chain {
    background: #1976FF;
    color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(25, 118, 255, 0.3);
}

.chain-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chain-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.chain-word {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.chain-word:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.chain-word.bonus {
    background: #FE5353;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(254, 83, 83, 0.4);
    animation: bonusPulse 1s ease-in-out infinite alternate;
}

@keyframes bonusPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    text-align: center;
    background: #83807A;
    color: white;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid #CFCBBE;
    min-width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(20px);
    border-radius: 12px;
}

.game-over::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
    backdrop-filter: blur(5px);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.final-score {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.restart-btn {
    background: #FE5353;
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(254, 83, 83, 0.4);
}

.restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 83, 83, 0.6);
}

.share-section {
    margin: 2rem 0;
    text-align: center;
}

.share-section h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-family: 'Arial Rounded MT', Arial, sans-serif;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.twitter-btn {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
}

.facebook-btn {
    background: linear-gradient(135deg, #4267B2, #365899);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #20ba5a);
}

.linkedin-btn {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.copy-btn {
    background: linear-gradient(135deg, #6c757d, #545b62);
}

.native-btn {
    background: linear-gradient(135deg, #28a745, #20692b);
}

.share-feedback {
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.2rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.share-feedback.success {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.share-feedback.error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.auth-section {
    background: #F6F0E2;
    color: #1976FF;
    padding: 1rem;
    text-align: center;
    margin: 0;
    backdrop-filter: blur(10px);
}

.auth-section h2 {
    font-weight: 600;
    margin: 0;
    font-size: 1.2rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.login-banner {
    background: #1976FF;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(25, 118, 255, 0.3);
}

.login-banner-text {
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    font-weight: 500;
}

.login-banner .auth-buttons {
    margin: 0;
    gap: 0.8rem;
}

.login-banner .auth-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Arial Rounded MT', Arial, sans-serif;
}

.google-btn {
    background: #34ABDE;
}

.apple-btn {
    background: #2D2C55;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.how-to-play {
    background: #F6F0E2;
    backdrop-filter: blur(20px);
    color: #2D2C55;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #CFCBBE;
}

.how-to-play h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1976FF;
    text-align: center;
    font-weight: 800;
}

.how-to-play h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    color: #1976FF;
    font-weight: 700;
    position: relative;
    padding-left: 2rem;
}

.how-to-play h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FE5353;
}

.how-to-play p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #474786;
    font-size: 1.05rem;
}

.how-to-play ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.how-to-play li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #474786;
    font-size: 1rem;
}

.how-to-play li strong {
    color: #1976FF;
    font-weight: 600;
}

.feature-highlight {
    background: rgba(25, 118, 255, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(25, 118, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FE5353, #FDD97A, #34ABDE);
}

.feature-highlight p {
    margin-bottom: 0;
    color: #2D2C55;
    font-weight: 500;
}

.feature-highlight strong {
    color: #1976FF;
    font-weight: 700;
}

.ad-container {
    background: rgba(246, 240, 226, 0.9);
    border: 2px dashed #CFCBBE;
    color: #83807A;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    font-size: 0.95rem;
    min-height: 90px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.ad-banner {
    max-width: 728px;
    min-height: 90px;
    margin: 2rem auto;
}

.ad-sidebar {
    max-width: 300px;
    min-height: 250px;
    margin: 2rem auto;
}

.ad-mobile {
    max-width: 320px;
    min-height: 50px;
    margin: 2rem auto;
}

.adsbygoogle {
    display: block !important;
    min-width: 300px;
    min-height: 50px;
}

.ad-error {
    display: none;
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .logo {
        max-height: 60px;
    }
    
    .word-input {
        font-size: 2.2rem;
        padding: 1.2rem;
        height: 80px;
    }

    .word-display {
        font-size: 2rem;
        padding: 1rem;
    }

    .user-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .personal-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 1.2rem 0.8rem;
    }

    .leaderboard {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .game-stats {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .bonus-system {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .word-chain {
        padding: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .input-section {
        margin-bottom: 1.5rem;
    }

    .login-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .login-banner-text {
        min-width: auto;
    }

    .game-over {
        min-width: 320px;
        max-width: 95vw;
        max-height: 80vh;
        padding: 1.5rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        border-radius: 8px;
    }

    .game-over h2 {
        font-size: 2rem;
    }

    .how-to-play {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .how-to-play h2 {
        font-size: 2rem;
    }

    .auth-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 300px;
    }
    
    .share-btn {
        font-size: 0.85rem;
        padding: 0.7rem 0.8rem;
    }
    
    .share-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .game-container {
        padding: 0.8rem;
        margin: 0.3rem;
    }

    .word-input {
        font-size: 1.8rem;
        height: 70px;
        padding: 1rem;
    }

    .word-display {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .user-info {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .personal-stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .stat-card {
        padding: 1rem 0.6rem;
    }

    .leaderboard {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .game-stats {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        margin-bottom: 0.6rem;
    }

    .stat {
        padding: 0.4rem 0;
    }

    .bonus-system {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .word-chain {
        padding: 1rem;
        margin-bottom: 0.6rem;
    }

    .input-section {
        margin-bottom: 1.2rem;
    }

    .login-banner {
        padding: 1.2rem;
        gap: 1rem;
    }

    .game-over {
        min-width: 280px;
        max-width: 95vw;
        max-height: 75vh;
        padding: 1.2rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 6px;
    }

    .game-over h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .how-to-play {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .how-to-play h2 {
        font-size: 1.8rem;
    }

    .how-to-play h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
        margin-top: 1.5rem;
    }

    .feature-highlight {
        padding: 1.2rem;
        margin: 1.2rem 0;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        max-width: 250px;
    }
    
    .share-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.7rem;
    }
    
    .share-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
}

/* Loading animation for dictionary */
.loading {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Success animations */
.success-flash {
    animation: successFlash 0.6s ease-out;
}

@keyframes successFlash {
    0% { background: rgba(38, 184, 119, 0.2); }
    100% { background: transparent; }
}