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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
}

.game-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    width: 100%;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4ecdc4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    flex: 0 0 auto;
    min-width: 200px;
}

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

.score-container {
    text-align: center;
    flex: 1;
    margin: 0 40px;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 4px;
}

.score {
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
}

.learnt-words-btn {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: auto;
}

.learnt-words-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
}

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

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.word-container {
    text-align: center;
    margin-bottom: 40px;
}

.current-word {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.word-hint {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

/* Card Stack */
.card-stack {
    position: relative;
    height: 300px;
    margin: 40px 0;
    perspective: 1000px;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: grab;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:active {
    cursor: grabbing;
}

.card.dragging {
    z-index: 10;
    transform: scale(1.02) rotate(var(--rotation, 0deg));
}

.card.swipe-left {
    animation: swipeLeft 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.card.swipe-right {
    animation: swipeRight 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes swipeLeft {
    to {
        transform: translateX(-150%) rotate(-30deg);
        opacity: 0;
    }
}

@keyframes swipeRight {
    to {
        transform: translateX(150%) rotate(30deg);
        opacity: 0;
    }
}

.card-definition {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #e0e0e0;
    font-weight: 400;
}

/* Swipe Indicators */
.swipe-indicators {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.swipe-indicator {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.swipe-indicator.left {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    margin-left: -40px;
}

.swipe-indicator.right {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    margin-right: -40px;
}

.swipe-indicator.show {
    opacity: 1;
    transform: scale(1);
}

.swipe-indicator p {
    font-size: 0.7rem;
    margin-top: 4px;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.8rem;
}

.final-stats {
    margin-bottom: 30px;
}

.final-stats p {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.final-stats span {
    color: #4ecdc4;
    font-weight: 700;
}

.play-again-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .game-container {
        padding: 15px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .learnt-words-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        border-radius: 20px;
    }
    
    .current-word {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-definition {
        font-size: 1rem;
    }
    
    .learnt-words-modal {
        width: 98%;
        max-height: 90vh;
    }
    
    .learnt-words-header h2 {
        font-size: 1.5rem;
    }
    
    .learnt-word-item {
        padding: 15px;
    }
    
    .learnt-word-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .learnt-words-actions {
        flex-direction: column;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Dictionary Modal Styles */
.dictionary-modal {
    max-width: 500px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
}

.dictionary-header {
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.dictionary-header h2 {
    margin-bottom: 8px;
    font-size: 2rem;
    color: #4ecdc4;
}

.pronunciation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pronunciation span {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #888;
}

.audio-btn {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.audio-btn:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: scale(1.1);
}

.dictionary-content {
    text-align: left;
    margin-bottom: 25px;
}

.part-of-speech {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 15px 0 10px 0;
}

.definition {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid rgba(78, 205, 196, 0.3);
}

.definition-text {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.example {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4ecdc4;
}

.continue-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

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

.loading-dictionary {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

/* Success Animation Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, rgba(68, 160, 141, 0.1) 50%, transparent 100%);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.success-overlay.show {
    animation: successFlash 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    /* Force hardware acceleration on mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes successFlash {
    0% {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
        -webkit-transform: scale(0.8) translateZ(0);
    }
    15% {
        opacity: 1;
        transform: scale(1.05) translateZ(0);
        -webkit-transform: scale(1.05) translateZ(0);
        background: radial-gradient(circle, rgba(78, 205, 196, 0.6) 0%, rgba(68, 160, 141, 0.3) 50%, rgba(78, 205, 196, 0.1) 100%);
    }
    30% {
        opacity: 0.8;
        transform: scale(1) translateZ(0);
        -webkit-transform: scale(1) translateZ(0);
    }
    70% {
        opacity: 0.4;
        transform: scale(1) translateZ(0);
        -webkit-transform: scale(1) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.1) translateZ(0);
        -webkit-transform: scale(1.1) translateZ(0);
    }
}

.success-icon {
    font-size: 8rem;
    color: #4ecdc4;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
    animation: successIconBounce 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes successIconBounce {
    0% {
        transform: scale(0) rotate(0deg) translateZ(0);
        -webkit-transform: scale(0) rotate(0deg) translateZ(0);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) rotate(5deg) translateZ(0);
        -webkit-transform: scale(1.2) rotate(5deg) translateZ(0);
        opacity: 1;
    }
    40% {
        transform: scale(0.9) rotate(-2deg) translateZ(0);
        -webkit-transform: scale(0.9) rotate(-2deg) translateZ(0);
        opacity: 1;
    }
    60% {
        transform: scale(1.05) rotate(1deg) translateZ(0);
        -webkit-transform: scale(1.05) rotate(1deg) translateZ(0);
        opacity: 1;
    }
    80% {
        transform: scale(0.95) rotate(0deg) translateZ(0);
        -webkit-transform: scale(0.95) rotate(0deg) translateZ(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg) translateZ(0);
        -webkit-transform: scale(1) rotate(0deg) translateZ(0);
        opacity: 0;
    }
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4ecdc4;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.particle.burst {
    animation: particleBurst 1s ease-out forwards;
}

@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0) translateZ(0);
        -webkit-transform: scale(1) translate(0, 0) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translate(var(--dx, 0), var(--dy, 0)) translateZ(0);
        -webkit-transform: scale(0.5) translate(var(--dx, 0), var(--dy, 0)) translateZ(0);
    }
}

/* Success Text Animation */
.success-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    -webkit-transform: translateX(-50%) translateZ(0);
    font-size: 2rem;
    font-weight: 700;
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
    opacity: 0;
    animation: successTextSlide 1.2s ease-out forwards;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes successTextSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(30px) translateZ(0);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(0) translateZ(0);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(0) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(-20px) translateZ(0);
    }
}

/* Failure Animation Overlay */
.failure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.3) 0%, rgba(238, 90, 82, 0.1) 50%, transparent 100%);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.failure-overlay.show {
    animation: failureFlash 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    /* Force hardware acceleration on mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes failureFlash {
    0% {
        opacity: 0;
        transform: scale(0.8) translateZ(0);
        -webkit-transform: scale(0.8) translateZ(0);
    }
    15% {
        opacity: 1;
        transform: scale(1.05) translateZ(0);
        -webkit-transform: scale(1.05) translateZ(0);
        background: radial-gradient(circle, rgba(255, 107, 107, 0.6) 0%, rgba(238, 90, 82, 0.3) 50%, rgba(255, 107, 107, 0.1) 100%);
    }
    30% {
        opacity: 0.8;
        transform: scale(1) translateZ(0);
        -webkit-transform: scale(1) translateZ(0);
    }
    70% {
        opacity: 0.4;
        transform: scale(1) translateZ(0);
        -webkit-transform: scale(1) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.1) translateZ(0);
        -webkit-transform: scale(1.1) translateZ(0);
    }
}

.failure-icon {
    font-size: 8rem;
    color: #ff6b6b;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.8);
    animation: failureIconShake 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes failureIconShake {
    0% {
        transform: scale(0) rotate(0deg) translateZ(0);
        -webkit-transform: scale(0) rotate(0deg) translateZ(0);
        opacity: 0;
    }
    20% {
        transform: scale(1.2) rotate(-10deg) translateZ(0);
        -webkit-transform: scale(1.2) rotate(-10deg) translateZ(0);
        opacity: 1;
    }
    30% {
        transform: scale(0.9) rotate(8deg) translateZ(0);
        -webkit-transform: scale(0.9) rotate(8deg) translateZ(0);
        opacity: 1;
    }
    40% {
        transform: scale(1.1) rotate(-6deg) translateZ(0);
        -webkit-transform: scale(1.1) rotate(-6deg) translateZ(0);
        opacity: 1;
    }
    50% {
        transform: scale(0.95) rotate(4deg) translateZ(0);
        -webkit-transform: scale(0.95) rotate(4deg) translateZ(0);
        opacity: 1;
    }
    60% {
        transform: scale(1.05) rotate(-2deg) translateZ(0);
        -webkit-transform: scale(1.05) rotate(-2deg) translateZ(0);
        opacity: 1;
    }
    80% {
        transform: scale(0.98) rotate(1deg) translateZ(0);
        -webkit-transform: scale(0.98) rotate(1deg) translateZ(0);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg) translateZ(0);
        -webkit-transform: scale(1) rotate(0deg) translateZ(0);
        opacity: 0;
    }
}

/* Failure Particle Effects */
.failure-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff6b6b;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    /* Mobile optimizations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.failure-particle.drop {
    animation: failureParticleDrop 1.2s ease-in forwards;
}

@keyframes failureParticleDrop {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0) translateZ(0);
        -webkit-transform: scale(1) translate(0, 0) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) translate(var(--dx, 0), var(--dy, 0)) translateZ(0);
        -webkit-transform: scale(0.3) translate(var(--dx, 0), var(--dy, 0)) translateZ(0);
    }
}

/* Failure Text Animation */
.failure-text {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    -webkit-transform: translateX(-50%) translateZ(0);
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    opacity: 0;
    animation: failureTextWobble 1.2s ease-out forwards;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes failureTextWobble {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px) rotate(-3deg) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(30px) rotate(-3deg) translateZ(0);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(2deg) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(0) rotate(2deg) translateZ(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(-1deg) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(0) rotate(-1deg) translateZ(0);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(0deg) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(0) rotate(0deg) translateZ(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) rotate(0deg) translateZ(0);
        -webkit-transform: translateX(-50%) translateY(-20px) rotate(0deg) translateZ(0);
    }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .success-icon, .failure-icon {
        font-size: 6rem; /* Slightly smaller on mobile */
    }
    
    .success-text, .failure-text {
        font-size: 1.5rem; /* Smaller text on mobile */
    }
    
    /* Reduce particle count and size on mobile for performance */
    .particle, .failure-particle {
        width: 6px;
        height: 6px;
    }
}

/* Learnt Words Modal Styles */
.learnt-words-modal {
    max-width: 600px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.learnt-words-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.learnt-words-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #6c5ce7;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.learnt-words-stats {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.learnt-words-stats p {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.learnt-words-stats span {
    color: #6c5ce7;
    font-weight: 700;
    font-size: 1.3rem;
}

.learnt-words-list {
    margin-bottom: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.learnt-word-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.learnt-word-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.learnt-word-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6c5ce7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learnt-word-phonetic {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}

.learnt-word-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.learnt-word-definitions {
    margin-top: 10px;
}

.learnt-word-definition {
    margin-bottom: 12px;
    padding-left: 15px;
    border-left: 3px solid rgba(108, 92, 231, 0.3);
}

.learnt-definition-pos {
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.learnt-definition-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.learnt-definition-example {
    color: #888;
    font-style: italic;
    font-size: 0.85rem;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #6c5ce7;
}

.empty-learnt-words {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-learnt-words-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.learnt-words-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clear-words-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
}

.clear-words-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

.back-to-game-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 2;
}

.back-to-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.3);
}

.clear-words-btn:active,
.back-to-game-btn:active {
    transform: translateY(0);
}

/* Support and Copyright Pages */
.support-content,
.copyright-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.support-section,
.copyright-section {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-section h2,
.copyright-section h2 {
    color: #4ecdc4;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.support-section h3 {
    color: #ffd93d;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.support-section p,
.copyright-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.support-section ul,
.copyright-section ul {
    color: #e0e0e0;
    line-height: 1.6;
    margin-left: 20px;
    margin-bottom: 12px;
}

.support-section li,
.copyright-section li {
    margin-bottom: 8px;
}

.contact-info {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Footer Styles */
.app-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.footer-link {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 2px #222;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 6px;
    outline: none;
}

.footer-link:hover, .footer-link:focus {
    color: #ffd93d;
    background: rgba(78,205,196,0.08);
    text-shadow: 0 2px 12px #ffd93d, 0 0 2px #222;
}

.footer-text {
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.footer-text p {
    margin: 0;
}

/* Responsive adjustments for support/copyright pages */
@media (max-width: 480px) {
    .support-section,
    .copyright-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .support-section h2,
    .copyright-section h2 {
        font-size: 1.2rem;
    }
    
    .footer-links {
        gap: 20px;
    }
} 

.privacy-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.privacy-section {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-section h2 {
    color: #4ecdc4;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.privacy-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-section ul {
    color: #e0e0e0;
    line-height: 1.6;
    margin-left: 20px;
    margin-bottom: 12px;
}

.privacy-section li {
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .privacy-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    .privacy-section h2 {
        font-size: 1.2rem;
    }
} 