/* WordZWorld - Clean Modern Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FFD700;
    --primary-dark: #FFC107;
    --secondary: #1a1a1a;
    --accent: #333333;
    --background: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border: #333333;
    --success: #4CAF50;
    --error: #f44336;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background) url('images/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-link {
    display: block;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.02);
}

.site-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: var(--transition);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .site-logo {
        width: 100px;
        height: 100px;
    }

    .subtitle {
        font-size: 1rem;
    }
}

.user-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.user-info {
    font-weight: 500;
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons a {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-buttons .btn-secondary {
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--border);
}

.auth-buttons .btn-secondary:hover {
    background: var(--primary);
    color: #000;
}

.auth-buttons .btn-primary {
    background: var(--primary);
    color: #000;
}

.auth-buttons .btn-primary:hover {
    background: var(--primary-dark);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary);
    color: #000;
}

/* Cards */
.card {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.game-card {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

/* Game Tiles */
.game-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.game-tile {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.game-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.game-tile:hover::before {
    transform: scaleX(1);
}

.tile-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    transition: var(--transition);
}

.game-tile:hover .tile-icon {
    transform: scale(1.1);
}

.tile-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tile-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.tile-btn:hover::before {
    width: 300px;
    height: 300px;
}

.tile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.game-tile:nth-child(2) .tile-btn:disabled {
    background: var(--accent);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.game-tile:nth-child(2) .tile-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.game-tile:nth-child(2) .tile-btn:disabled::before {
    display: none;
}

.daily-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.daily-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#daily-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

#daily-played-status {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

#tutorial-btn {
    background: var(--accent);
    color: var(--text);
    border: 2px solid var(--primary);
}

#tutorial-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: var(--accent);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-1px);
}

/* Pulse animation for start button */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
}

/* Inputs */
input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 20px;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

input::placeholder {
    color: var(--text-muted);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Username Section */
#username-section {
    text-align: center;
}

#username-section h2 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.8rem;
}

#username-section p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-message {
    color: var(--error);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Tutorial Access Section */
.tutorial-access {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
}

.tutorial-access p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tutorial-access button {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

/* Countdown */
.countdown-container {
    text-align: center;
    margin: 30px 0;
}

.countdown-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
}

.countdown-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Word Display */
.word-reveal {
    text-align: center;
    margin: 25px 0;
}

.word-container {
    display: inline-block;
    background: var(--primary);
    padding: 18px 35px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    max-width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.word-label {
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
    margin-right: 12px;
}

.main-word {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Guess Section */
.guess-section {
    margin: 25px 0;
}

.timer-container {
    margin-bottom: 25px;
}

.timer-bar {
    width: 100%;
    height: 6px;
    background: var(--accent);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.timer-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 1s linear;
    width: 100%;
}

.timer-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.input-container input {
    flex: 1;
    margin-bottom: 0;
}

/* Loading Spinner */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Guesses List */
.guesses-container {
    margin-top: 25px;
}

.guess-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 8px;
    background: var(--accent);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.guess-item:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

.guess-item .word {
    font-weight: 500;
    color: var(--text);
}

.guess-item .score {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

/* Celebration Icon */
.celebration-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Final Score */
.final-score {
    text-align: center;
    margin: 30px 0;
}

.score-display {
    background: var(--primary);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: #000;
}

.score-display h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.final-score-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.final-score-number #score {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000;
}

.score-label {
    font-size: 1.3rem;
    color: #000;
    font-weight: 600;
}

/* Game Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    min-width: 100px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

/* Final Buttons */
.final-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.final-buttons .btn-primary,
.final-buttons .btn-secondary {
    min-width: 150px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-icon {
    font-size: 1.1rem;
    margin-right: 6px;
}

/* Game Rules */
.game-rules {
    margin-top: 12px;
    text-align: center;
    opacity: 0.8;
}

.game-rules small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Leaderboards */
.leaderboards-section {
    margin-top: 40px;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 8px;
}

.tab-btn {
    background: var(--accent);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.leaderboard-content {
    display: none;
}

.leaderboard-content.active {
    display: block;
}

.leaderboard-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin-bottom: 6px;
    background: var(--accent);
    border-radius: 8px;
    transition: var(--transition);
}

.lb-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
}

.lb-item .rank {
    font-weight: 700;
    color: var(--primary);
    margin-right: 12px;
    min-width: 25px;
    font-size: 0.9rem;
}

.lb-item .username {
    flex: 1;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.lb-item .score {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

/* Word List */
.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.word-item {
    background: var(--accent);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.word-item:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.word-item .word-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.word-item .word-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.word-item:hover .word-stats {
    color: rgba(0, 0, 0, 0.7);
}

/* Word Scores */
.word-scores {
    animation: fadeIn 0.3s ease-out;
}

.back-btn {
    margin-bottom: 20px;
    align-self: flex-start;
}

.word-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-leaderboard-content {
    margin-top: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.site-footer {
    margin-top: 40px;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 10px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 5px 0;
}

.developer-credit {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 5px 0;
}

.studio-name {
    color: var(--primary);
    font-weight: 500;
}

.development-notice {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Tutorial Styles */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tutorial-modal {
    background: var(--secondary);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.tutorial-header {
    text-align: center;
    margin-bottom: 20px;
}

.tutorial-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.tutorial-content {
    margin-bottom: 25px;
}

.tutorial-content p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.tutorial-progress {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tutorial-highlight {
    animation: tutorialPulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
    border: 2px solid var(--primary) !important;
}

@keyframes tutorialPulse {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.9); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .card, .game-card {
        padding: 20px;
    }

    /* Game Tiles Responsive */
    .game-tiles {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }

    .game-tile {
        padding: 25px 20px;
    }

    .tile-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .tile-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .tile-description {
        font-size: 0.9rem;
        min-height: 50px;
        margin-bottom: 18px;
    }

    .tile-btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .input-container {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .word-container {
        padding: 15px 20px;
        max-width: 95%;
    }

    .main-word {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .final-score-number #score {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-description {
        text-align: center;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom-content {
        text-align: center;
    }

    .tutorial-modal {
        padding: 20px;
        margin: 20px;
    }

    .tutorial-header h2 {
        font-size: 1.3rem;
    }

    .tutorial-actions {
        flex-direction: column;
        gap: 10px;
    }

    .tutorial-progress {
        order: 1;
    }
}

@media (max-width: 480px) {
    .game-tile {
        padding: 20px 15px;
    }

    .tile-icon {
        font-size: 2rem;
    }

    .tile-title {
        font-size: 1.1rem;
    }

    .tile-description {
        font-size: 0.85rem;
        min-height: 45px;
    }
}

/* Input Error States */
.guess-input.error,
#guess-input.error {
    border-color: #ff4757 !important;
    animation: shake 0.3s ease-in-out;
}

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

/* Error feedback for single-word validation */
input[style*="border-color: rgb(255, 71, 87)"],
input[style*="border-color: #ff4757"] {
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}
/*
 Sharing Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.share-modal {
    background: var(--secondary);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: shareModalSlideIn 0.3s ease-out;
}

@keyframes shareModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    background: var(--accent);
    border-radius: 16px 16px 0 0;
}

.share-modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-modal-close:hover {
    background: var(--border);
    color: var(--text);
}

.share-modal-content {
    padding: 25px;
}

.share-score-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--accent);
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.share-score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.share-score-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.discord {
    background: #5865F2;
}

.share-btn.discord:hover {
    background: #4752C4;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.reddit {
    background: #FF4500;
}

.share-btn.reddit:hover {
    background: #e03d00;
}

.share-btn.copy {
    background: var(--primary);
    color: #000;
}

.share-btn.copy:hover {
    background: var(--primary-dark);
}

.share-icon {
    font-size: 1.2rem;
}

.share-preview {
    background: var(--accent);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--primary);
}

.share-preview h4 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

.share-preview-text {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.share-preview-url {
    color: var(--text-secondary);
    font-size: 0.8rem;
    word-break: break-all;
}

.share-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: #000;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Mobile responsiveness for sharing modal */
@media (max-width: 768px) {
    .share-modal {
        width: 95%;
        margin: 10px;
    }
    
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .share-score-number {
        font-size: 2.5rem;
    }
    
    .share-feedback {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}