/* ============================================
   SMASH & CLASH - COMPLETE UI REDESIGN
   Modern, Responsive, Polished Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   WIKI / KNOWLEDGE PAGES
   ============================================ */

.wiki-main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 112px 20px 72px;
}

.wiki-header {
    background: radial-gradient(circle at top left, rgba(255, 221, 115, 0.12), transparent 55%),
                rgba(10, 14, 39, 0.94);
    border-radius: 18px;
    padding: 24px 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    margin-bottom: 32px;
}

.wiki-header h1 {
    font-family: 'Luckiest Guy', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.wiki-header p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.wiki-section,
.wiki-article {
    background: radial-gradient(circle at top right, rgba(94, 234, 212, 0.1), transparent 55%),
                rgba(8, 11, 32, 0.96);
    border-radius: 16px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    margin-bottom: 20px;
}

.wiki-section h2,
.wiki-article h1,
.wiki-article h2 {
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.wiki-section ul,
.wiki-article ul,
.wiki-article ol {
    margin-left: 18px;
    margin-top: 6px;
}

.wiki-section li,
.wiki-article li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.wiki-article p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
}

.wiki-breadcrumb {
    max-width: 900px;
    margin: 80px auto 8px;
    padding: 0 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.wiki-breadcrumb a {
    color: #ffdd73;
    text-decoration: none;
}

.wiki-breadcrumb a:hover {
    text-decoration: underline;
}

.wiki-section a,
.wiki-article a {
    color: #ffdd73;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.wiki-section a:hover,
.wiki-article a:hover {
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(255, 221, 115, 0.6);
}

.wiki-related {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.wiki-related-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.wiki-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wiki-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    white-space: nowrap;
}

.wiki-pill:hover {
    background: rgba(255, 221, 115, 0.15);
    border-color: rgba(255, 221, 115, 0.5);
}

@media (max-width: 768px) {
    .wiki-main {
        padding: 90px 14px 56px;
    }

    .wiki-header {
        padding: 18px 16px 16px;
    }

    .wiki-header h1 {
        font-size: 1.7rem;
    }

    .wiki-section,
    .wiki-article {
        padding: 16px 14px;
    }

    .wiki-related-links {
        flex-direction: row;
        row-gap: 8px;
    }

    .wiki-pill {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .wiki-main {
        padding: 80px 14px 48px;
    }

    .wiki-header {
        padding: 18px 16px 16px;
    }

    .wiki-header h1 {
        font-size: 1.7rem;
    }

    .wiki-section,
    .wiki-article {
        padding: 16px 14px;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e27;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease;
}

/* Animated logo pattern background - checkerboard pattern */
/* Smaller logos with checkerboard movement from top-left to bottom-right */
/* Alternate skipping with distance between each */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png');
    background-repeat: no-repeat;
    /* Smaller logos with spacing - checkerboard pattern */
    background-size: 
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px;
    /* Checkerboard positions: top-left to bottom-right with skipping */
    background-position: 
        0 0,
        300px 0,
        600px 0,
        0 300px,
        300px 300px,
        600px 300px,
        0 600px,
        300px 600px,
        600px 600px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    animation: checkerboardMove 40s linear infinite;
    filter: brightness(1.2) contrast(0.8);
}

/* Second layer for alternate checkerboard pattern (offset) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png');
    background-repeat: no-repeat;
    background-size: 
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px,
        120px 120px;
    /* Offset checkerboard - alternate positions */
    background-position: 
        150px 150px,
        450px 150px,
        750px 150px,
        150px 450px,
        450px 450px,
        750px 450px,
        150px 750px,
        450px 750px,
        750px 750px;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    animation: checkerboardMoveAlt 40s linear infinite;
    filter: brightness(1.2) contrast(0.8);
}

@keyframes checkerboardMove {
    0% {
        background-position: 
            0 0,
            300px 0,
            600px 0,
            0 300px,
            300px 300px,
            600px 300px,
            0 600px,
            300px 600px,
            600px 600px;
    }
    100% {
        background-position: 
            300px 300px,
            600px 300px,
            900px 300px,
            300px 600px,
            600px 600px,
            900px 600px,
            300px 900px,
            600px 900px,
            900px 900px;
    }
}

@keyframes checkerboardMoveAlt {
    0% {
        background-position: 
            150px 150px,
            450px 150px,
            750px 150px,
            150px 450px,
            450px 450px,
            750px 450px,
            150px 750px,
            450px 750px,
            750px 750px;
    }
    100% {
        background-position: 
            450px 450px,
            750px 450px,
            1050px 450px,
            450px 750px,
            750px 750px,
            1050px 750px,
            450px 1050px,
            750px 1050px,
            1050px 1050px;
    }
}

/* Also add pattern to game-view for better visibility (appears above gradient) */
#game-view::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/Smash&Clash.png'),
        url('assets/Smash&Clash.png');
    background-repeat: repeat;
    background-size: 100px auto, 100px auto;
    /* Positions 2 and 3 */
    background-position: 300px 0, 0 300px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    animation: logoPatternMove 60s linear infinite;
    transform-origin: center center;
}

/* Ensure game content is above the pattern */
.game-main-area,
.player-hand-section,
.scoreboard-panel,
.nav-btn {
    position: relative;
    z-index: 1;
}

@keyframes logoPatternMove {
    0% {
        background-position: 
            0 0,
            200px 200px,
            400px 400px,
            600px 600px;
        transform: rotate(0deg);
    }
    25% {
        background-position: 
            50px 50px,
            250px 250px,
            450px 450px,
            650px 650px;
        transform: rotate(1deg);
    }
    50% {
        background-position: 
            100px 100px,
            300px 300px,
            500px 500px,
            700px 700px;
        transform: rotate(0deg);
    }
    75% {
        background-position: 
            50px 50px,
            250px 250px,
            450px 450px,
            650px 650px;
        transform: rotate(-1deg);
    }
    100% {
        background-position: 
            0 0,
            200px 200px,
            400px 400px,
            600px 600px;
        transform: rotate(0deg);
    }
}

@keyframes logoPatternMoveAlt {
    0% {
        background-position: 
            200px 0,
            400px 200px,
            600px 400px,
            800px 600px;
        transform: rotate(0deg);
    }
    25% {
        background-position: 
            250px 50px,
            450px 250px,
            650px 450px,
            850px 650px;
        transform: rotate(1deg);
    }
    50% {
        background-position: 
            300px 100px,
            500px 300px,
            700px 500px,
            900px 700px;
        transform: rotate(0deg);
    }
    75% {
        background-position: 
            250px 50px,
            450px 250px,
            650px 450px,
            850px 650px;
        transform: rotate(-1deg);
    }
    100% {
        background-position: 
            200px 0,
            400px 200px,
            600px 400px,
            800px 600px;
        transform: rotate(0deg);
    }
}

/* Turn-based background colors - BLUE for Player 1 */
body.turn-player1,
#game-view.turn-player1 {
    background: radial-gradient(circle at center, #0ABEFF 0%, #016DCB 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Turn-based background colors - ORANGE for Player 2/Computer */
body.turn-player2,
body.turn-computer,
#game-view.turn-player2,
#game-view.turn-computer {
    background: radial-gradient(circle at center, #FA7343 0%, #F42409 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* ============================================
   MAIN MENU - COMPLETE REDESIGN FROM SCRATCH
   ============================================ */

#menu-view {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-y: auto;
    padding-top: 60px;
}

.layout-container {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ============================================
   COUNTDOWN BANNER - FIXED TOP STRIP
   ============================================ */

.countdown-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 50%, #FF6B35 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.countdown-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.countdown-text {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    flex-wrap: wrap;
}

.countdown-label {
    font-weight: 900;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 0.9rem;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    min-width: 45px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.countdown-item span {
    font-size: 1.1rem;
    font-weight: 900;
    display: inline-block;
}

.countdown-separator {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 900;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, #FFD966 0%, #FFE699 100%);
    color: #2c3e50;
    border-radius: 20px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 
        0 4px 15px rgba(255, 217, 102, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-cta:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(255, 217, 102, 0.7),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #FFE699 0%, #FFF0CC 100%);
}

.countdown-cta:active {
    transform: scale(1.05);
}

/* Adjust content padding to account for fixed banner */
#menu-view {
    padding-top: 60px;
}

/* Mobile Countdown Banner */
@media (max-width: 767px) {
    .countdown-content {
        padding: 10px 15px;
        flex-direction: column;
        gap: 12px;
    }

    .countdown-text {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .countdown-timer {
        font-size: 0.75rem;
        gap: 4px;
    }

    .countdown-item {
        padding: 4px 8px;
        min-width: 35px;
        font-size: 0.8rem;
    }

    .countdown-item span {
        font-size: 0.95rem;
    }

    .countdown-separator {
        font-size: 1rem;
    }

    .countdown-cta {
        padding: 8px 20px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    #menu-view {
        padding-top: 100px;
    }
}

/* ============================================
   DESKTOP LAYOUT - LANDSCAPE DESIGN
   ============================================ */

/* ============================================
   DESKTOP LAYOUT - COMPLETE REDESIGN
   ============================================ */

#desktop-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.desktop-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    animation: fadeInUp 0.8s ease;
}

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

/* Top Section: Logo and Intro */
.desktop-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 40px 0;
}

.desktop-logo-wrapper {
    max-width: 400px;
    width: 100%;
    animation: logoFloat 3s ease-in-out infinite;
}

.desktop-logo {
    width: 100%;
    height: auto;
    filter: 
        drop-shadow(0 0 50px rgba(255, 255, 255, 0.9))
        drop-shadow(0 15px 50px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 100px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.desktop-logo-wrapper:hover .desktop-logo {
    filter: 
        drop-shadow(0 0 70px rgba(255, 255, 255, 1))
        drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 130px rgba(255, 255, 255, 0.7));
    transform: scale(1.05);
}

.desktop-intro {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-main-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 4.5rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    line-height: 1.1;
    animation: titlePulse 3s ease-in-out infinite;
}

.desktop-main-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Center Section: Actions and Stats */
.desktop-center {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    padding: 0 20px;
}

.desktop-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-action-btn {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 32px 40px;
    border-radius: 32px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    animation: actionButtonPulse 3s ease-in-out infinite;
}

.desktop-action-btn:nth-child(2) {
    animation-delay: 0.15s;
}

.desktop-action-btn:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes actionButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 14px 45px rgba(0, 0, 0, 0.6),
            0 0 0 6px rgba(255, 255, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.5),
            0 0 40px rgba(255, 255, 255, 0.3);
    }
}

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

.desktop-action-btn:hover::before {
    left: 100%;
}

.desktop-action-btn:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 55px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 50px rgba(255, 255, 255, 0.4);
    animation: none;
}

.action-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.desktop-action-btn:hover .action-icon-wrapper {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 4px 0 rgba(255, 255, 255, 0.5),
        inset 0 -4px 0 rgba(0, 0, 0, 0.25);
}

.action-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.action-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.action-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 5px 12px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.action-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.action-arrow {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.desktop-action-btn:hover .action-arrow {
    transform: translateX(10px) scale(1.2);
    color: #ffffff;
}

.desktop-action-local {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, actionButtonPulse 3s ease-in-out infinite;
}

.desktop-action-local .action-icon-wrapper {
    background: linear-gradient(135deg, #FF8FB3 0%, #FFB3D1 100%);
}

.desktop-action-computer {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EDDD6 50%, #4ECDC4 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.1s, actionButtonPulse 3s ease-in-out infinite 0.15s;
}

.desktop-action-computer .action-icon-wrapper {
    background: linear-gradient(135deg, #6EDDD6 0%, #8EE8E1 100%);
}

.desktop-action-tutorial {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #5865F2 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.2s, actionButtonPulse 3s ease-in-out infinite 0.3s;
}

.desktop-action-tutorial .action-icon-wrapper {
    background: linear-gradient(135deg, #7289DA 0%, #99AAB5 100%);
}

.desktop-action-install {
    background: linear-gradient(135deg, #9B59B6 0%, #BB6BD9 50%, #9B59B6 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.3s, actionButtonPulse 3s ease-in-out infinite 0.45s;
}

.desktop-action-install .action-icon-wrapper {
    background: linear-gradient(135deg, #BB6BD9 0%, #D4A5E8 100%);
}

/* Action Wrapper for Offline Status */
.desktop-action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Offline Status Indicator */
.offline-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 40px;
    font-size: 0.875rem;
}

.offline-status-text {
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.3s ease;
}

.offline-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.offline-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Mobile Offline Status */
.mobile-action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

#mobile-offline-status {
    padding: 0 24px;
    font-size: 0.75rem;
}

#mobile-offline-status .offline-progress-bar {
    height: 4px;
}

/* Stats Section */
.desktop-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: statFloat 4s ease-in-out infinite;
    cursor: pointer;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes statFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 45px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    animation: none;
}

.stat-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: #FFD966;
    text-shadow: 
        0 0 20px rgba(255, 217, 102, 0.9),
        0 3px 12px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Bottom Section: Physical Game */
.desktop-bottom {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.desktop-product-card {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 36px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.desktop-product-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.6s;
}

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

.desktop-product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 50px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 33px 33px 0 0;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.desktop-product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
}

.product-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 20px;
    margin: 5px 0;
}

.product-price-old {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 600;
}

.product-price-new {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.6rem;
    color: #FFD966;
    font-weight: 900;
    text-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(255, 217, 102, 0.5);
}

.product-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.product-discount-badge {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: #ffffff;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.product-code {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin: 0;
}

.product-code strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-cta {
    align-self: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
    border-radius: 30px;
    font-family: 'Luckiest Guy', cursive;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 6px 20px rgba(255, 201, 60, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 5px;
    width: fit-content;
}

.desktop-product-card:hover .product-cta {
    transform: scale(1.12);
    box-shadow: 
        0 8px 25px rgba(255, 201, 60, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* Community Leaderboards Section */
.desktop-community-section {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-top: 40px;
}

.community-content {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.community-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.community-icon {
    height: 40px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.community-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.community-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.5px;
}

.community-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.6;
}

.coming-soon-buttons {
    display: flex;
    gap: 20px;
    width: 100%;
}

.coming-soon-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.coming-soon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.coming-soon-icon {
    font-size: 2.5rem;
    filter: grayscale(0.3);
    opacity: 0.6;
}

.coming-soon-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.coming-soon-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.coming-soon-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.coming-soon-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile Community Section */
.mobile-community-section {
    width: 100%;
    padding: 0 20px;
    margin-top: 30px;
}

.mobile-community-section .community-content {
    max-width: 100%;
    gap: 20px;
}

.mobile-community-section .community-header {
    padding: 20px 24px;
    gap: 16px;
    flex-direction: column;
    text-align: center;
}

.mobile-community-section .community-icons {
    justify-content: center;
    gap: 12px;
}

.mobile-community-section .community-icon {
    height: 32px;
}

.mobile-community-section .community-title {
    font-size: 1.2rem;
}

.mobile-community-section .community-description {
    font-size: 0.9rem;
}

.mobile-community-section .coming-soon-buttons {
    flex-direction: column;
    gap: 16px;
}

.mobile-community-section .coming-soon-btn {
    padding: 20px 24px;
    gap: 16px;
}

.mobile-community-section .coming-soon-icon {
    font-size: 2rem;
}

.mobile-community-section .coming-soon-title {
    font-size: 1.1rem;
}

.mobile-community-section .coming-soon-subtitle {
    font-size: 0.85rem;
}

/* Desktop Footer */
.desktop-footer {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto 0;
    padding: 30px 20px;
    text-align: center;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-text strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Old desktop styles removed - keeping only what's needed */
.desktop-header {
    display: none;
}

.hero-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    padding: 50px 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.4);
    animation: heroPopIn 0.8s ease-out;
}

.hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.hero-logo-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.logo-container {
    max-width: 380px;
    padding: 15px;
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: auto;
    filter: 
        drop-shadow(0 0 50px rgba(255, 255, 255, 0.9))
        drop-shadow(0 15px 50px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 100px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.logo-container:hover .hero-logo {
    filter: 
        drop-shadow(0 0 70px rgba(255, 255, 255, 1))
        drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 130px rgba(255, 255, 255, 0.7));
    transform: scale(1.05);
}

.hero-text-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    width: 100%;
}

.hero-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 4rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    line-height: 1.1;
    animation: titlePulse 3s ease-in-out infinite;
    text-align: left;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
}

/* Hero Quick Play Buttons */
.hero-quick-play {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

.hero-play-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 35px;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    width: 100%;
    animation: heroButtonPulse 3s ease-in-out infinite;
}

.hero-play-btn:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes heroButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 10px 35px rgba(0, 0, 0, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.6),
            0 0 0 6px rgba(255, 255, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.5),
            0 0 35px rgba(255, 255, 255, 0.3);
    }
}

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

.hero-play-btn:hover::before {
    left: 100%;
}

.hero-play-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 18px 50px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 45px rgba(255, 255, 255, 0.4);
    animation: none;
}

.play-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.hero-play-btn:hover .play-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.play-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.play-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 5px 12px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.play-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.play-arrow {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hero-play-btn:hover .play-arrow {
    transform: translateX(8px) scale(1.2);
    color: #ffffff;
}

.hero-play-local {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, heroButtonPulse 3s ease-in-out infinite;
}

.hero-play-local .play-icon {
    background: linear-gradient(135deg, #FF8FB3 0%, #FFB3D1 100%);
}

.hero-play-computer {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EDDD6 50%, #4ECDC4 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.1s, heroButtonPulse 3s ease-in-out infinite 0.15s;
}

.hero-play-computer .play-icon {
    background: linear-gradient(135deg, #6EDDD6 0%, #8EE8E1 100%);
}

.hero-play-tutorial {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #5865F2 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.2s, heroButtonPulse 3s ease-in-out infinite 0.3s;
}

.hero-play-tutorial .play-icon {
    background: linear-gradient(135deg, #7289DA 0%, #99AAB5 100%);
}

@keyframes titlePulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 5px 20px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 1),
            0 5px 20px rgba(0, 0, 0, 0.7),
            0 0 70px rgba(255, 255, 255, 0.7);
    }
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: featureFloat 4s ease-in-out infinite;
    cursor: pointer;
    width: 100%;
}

.feature-badge:nth-child(1) {
    animation-delay: 0s;
}

.feature-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-badge:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes featureFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.feature-badge:hover {
    transform: translateY(-12px) scale(1.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.2);
    animation: none;
}

.feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.feature-badge:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.feature-number {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    color: #FFD966;
    text-shadow: 
        0 0 20px rgba(255, 217, 102, 0.9),
        0 3px 12px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Desktop Main Content */
.desktop-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-physical-section {
    width: 100%;
    max-width: 600px;
}


/* Desktop Physical Game Card */
.desktop-physical-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.desktop-physical-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.6s;
}

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

.desktop-physical-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 20px 55px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 45px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.physical-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 29px 29px 0 0;
    position: relative;
}

.physical-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.desktop-physical-card:hover .physical-cover img {
    transform: scale(1.1);
}

.physical-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.physical-info h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 18px;
    margin: 8px 0;
}

.price-old {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 600;
}

.price-new {
    font-size: 2.4rem;
    color: #FFD966;
    font-weight: 900;
    text-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(255, 217, 102, 0.5);
}

.discount-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.discount-tag {
    font-size: 0.9rem;
    font-weight: 900;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: #ffffff;
    border-radius: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.discount-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin: 0;
}

.discount-section strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buy-btn {
    align-self: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
    border-radius: 28px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(255, 201, 60, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
    font-family: 'Nunito', sans-serif;
}

.desktop-physical-card:hover .buy-btn {
    transform: scale(1.12);
    box-shadow: 
        0 8px 25px rgba(255, 201, 60, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* Desktop Footer */
.desktop-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    margin: 50px auto 0;
    padding: 30px 40px;
    text-align: center;
}

.desktop-footer .alpha-notice {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.desktop-footer .alpha-notice strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.desktop-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.desktop-footer .footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.desktop-footer .footer-links a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   MOBILE LAYOUT - PORTRAIT DESIGN
   ============================================ */

/* Mobile Header - Completely Revamped Hero */
.mobile-header {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 35px 15px 30px;
    animation: fadeInDown 0.8s ease;
    margin-top: 60px;
}

.mobile-hero-wrapper {
    width: 100%;
    position: relative;
}

.mobile-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.mobile-logo-container {
    max-width: 260px;
    padding: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

.mobile-hero-logo {
    width: 100%;
    height: auto;
    filter: 
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.8))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 80px rgba(255, 255, 255, 0.4));
}

.mobile-hero-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.mobile-hero-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    line-height: 1.2;
    animation: titlePulseMobile 3s ease-in-out infinite;
}

@keyframes titlePulseMobile {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 25px rgba(255, 255, 255, 0.8),
            0 4px 15px rgba(0, 0, 0, 0.7),
            0 0 45px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 
            0 0 35px rgba(255, 255, 255, 1),
            0 4px 15px rgba(0, 0, 0, 0.7),
            0 0 60px rgba(255, 255, 255, 0.7);
    }
}

.mobile-hero-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.3);
    margin: 0;
    padding: 0 10px;
}

/* Mobile Hero Quick Play Buttons */
.mobile-hero-quick-play {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
}

.mobile-hero-play-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 26px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 10px 32px rgba(0, 0, 0, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    animation: mobileHeroButtonPulse 3s ease-in-out infinite;
    width: 100%;
}

.mobile-hero-play-btn:nth-child(2) {
    animation-delay: 0.15s;
}

@keyframes mobileHeroButtonPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 28px rgba(0, 0, 0, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% { 
        box-shadow: 
            0 10px 32px rgba(0, 0, 0, 0.6),
            0 0 0 6px rgba(255, 255, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
}

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

.mobile-hero-play-btn:hover::before,
.mobile-hero-play-btn:active::before {
    left: 100%;
}

.mobile-hero-play-btn:hover,
.mobile-hero-play-btn:active {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 
        0 14px 40px rgba(0, 0, 0, 0.6),
        0 0 0 7px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 38px rgba(255, 255, 255, 0.4);
    animation: none;
}

.mobile-play-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 18px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.mobile-hero-play-btn:hover .mobile-play-icon,
.mobile-hero-play-btn:active .mobile-play-icon {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 
        0 7px 22px rgba(0, 0, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.mobile-play-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.mobile-play-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mobile-play-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.mobile-play-arrow {
    font-size: 1.8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.mobile-hero-play-btn:hover .mobile-play-arrow,
.mobile-hero-play-btn:active .mobile-play-arrow {
    transform: translateX(6px) scale(1.15);
    color: #ffffff;
}

.mobile-play-local {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, mobileHeroButtonPulse 3s ease-in-out infinite;
}

.mobile-play-local .mobile-play-icon {
    background: linear-gradient(135deg, #FF8FB3 0%, #FFB3D1 100%);
}

.mobile-play-computer {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EDDD6 50%, #4ECDC4 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.1s, mobileHeroButtonPulse 3s ease-in-out infinite 0.15s;
}

.mobile-play-computer .mobile-play-icon {
    background: linear-gradient(135deg, #6EDDD6 0%, #8EE8E1 100%);
}

.mobile-play-tutorial {
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #5865F2 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.2s, mobileHeroButtonPulse 3s ease-in-out infinite 0.3s;
}

.mobile-play-tutorial .mobile-play-icon {
    background: linear-gradient(135deg, #7289DA 0%, #99AAB5 100%);
}

.mobile-play-install {
    background: linear-gradient(135deg, #9B59B6 0%, #BB6BD9 50%, #9B59B6 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.3s, mobileHeroButtonPulse 3s ease-in-out infinite 0.45s;
}

.mobile-play-install .mobile-play-icon {
    background: linear-gradient(135deg, #BB6BD9 0%, #D4A5E8 100%);
}

.mobile-hero-features {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.mobile-feature-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: featureFloatMobile 4s ease-in-out infinite;
    flex: 1;
    min-width: 90px;
    max-width: 120px;
}

.mobile-feature-badge:nth-child(1) {
    animation-delay: 0s;
}

.mobile-feature-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-feature-badge:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes featureFloatMobile {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

.mobile-feature-badge:active {
    transform: translateY(-10px) scale(1.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
    animation: none;
}

.mobile-feature-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.mobile-feature-badge:active .mobile-feature-icon {
    transform: scale(1.2) rotate(10deg);
}

.mobile-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.mobile-feature-number {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.4rem;
    color: #FFD966;
    text-shadow: 
        0 0 15px rgba(255, 217, 102, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.6);
    line-height: 1;
}

.mobile-feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Mobile Main Content */
.mobile-main {
    width: 100%;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-section {
    width: 100%;
}


/* Mobile Physical Game Card */
.mobile-physical-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.mobile-physical-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.6s;
}

.mobile-physical-card:hover::before,
.mobile-physical-card:active::before {
    left: 100%;
}

.mobile-physical-card:hover,
.mobile-physical-card:active {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 14px 42px rgba(0, 0, 0, 0.6),
        0 0 0 7px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        0 0 35px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.mobile-physical-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 21px 21px 0 0;
    position: relative;
}

.mobile-physical-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mobile-physical-card:hover .mobile-physical-image img,
.mobile-physical-card:active .mobile-physical-image img {
    transform: scale(1.08);
}

.mobile-physical-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.mobile-physical-info h3 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.4rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 5px 12px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.mobile-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin: 6px 0;
}

.mobile-price-old {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 600;
}

.mobile-price-new {
    font-size: 1.7rem;
    color: #FFD966;
    font-weight: 900;
    text-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(255, 217, 102, 0.5);
}

.mobile-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.mobile-discount-badge {
    font-size: 0.8rem;
    font-weight: 900;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: #ffffff;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.mobile-discount p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin: 0;
}

.mobile-discount strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-buy-btn {
    align-self: center;
    padding: 12px 28px;
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
    border-radius: 22px;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 5px 18px rgba(255, 201, 60, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 8px;
    width: fit-content;
}

.mobile-physical-card:hover .mobile-buy-btn,
.mobile-physical-card:active .mobile-buy-btn {
    transform: scale(1.1);
    box-shadow: 
        0 7px 22px rgba(255, 201, 60, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* Mobile Footer */
.mobile-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 25px 15px;
    text-align: center;
}

.mobile-footer .mobile-alpha {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.mobile-footer .mobile-alpha strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mobile-footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
}

.mobile-footer-links a:hover,
.mobile-footer-links a:active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   TUTORIAL MODAL
   ============================================ */

.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.tutorial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tutorial-container {
    position: relative;
    z-index: 2001;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.tutorial-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tutorial-close:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(255, 107, 53, 0.2) 100%);
    border-color: rgba(255, 107, 53, 0.6);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.tutorial-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tutorial-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 5px 20px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.tutorial-progress {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tutorial-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 50px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-slide {
    display: none;
    flex-direction: column;
    gap: 25px;
    text-align: center;
    animation: slideFadeIn 0.4s ease;
}

.tutorial-slide.active {
    display: flex;
}

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

.slide-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    color: #FFD966;
    margin: 0;
    text-shadow: 
        0 0 25px rgba(255, 217, 102, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 217, 102, 0.6);
    letter-spacing: 2px;
    line-height: 1.2;
}

.slide-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
}

.tutorial-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tutorial-cta-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 
        0 6px 20px rgba(255, 201, 60, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tutorial-cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(255, 201, 60, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.tutorial-navigation {
    padding: 25px 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tutorial-nav-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tutorial-nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.tutorial-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.tutorial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.tutorial-dot.active {
    background: #FFD966;
    border-color: #FFD966;
    box-shadow: 
        0 0 15px rgba(255, 217, 102, 0.8),
        0 0 25px rgba(255, 217, 102, 0.5);
    transform: scale(1.3);
}

/* Mobile Tutorial Styles */
@media (max-width: 767px) {
    .tutorial-container {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 24px;
    }

    .tutorial-close {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
        top: 15px;
        right: 15px;
    }

    .tutorial-header {
        padding: 25px 20px 15px;
    }

    .tutorial-title {
        font-size: 1.8rem;
    }

    .tutorial-content {
        padding: 30px 25px;
        min-height: 250px;
    }

    .slide-title {
        font-size: 1.6rem;
    }

    .slide-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tutorial-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .tutorial-cta-btn {
        width: 100%;
        padding: 12px 28px;
        font-size: 1rem;
    }

    .tutorial-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .tutorial-nav-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .tutorial-dots {
        order: -1;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tutorial-dot {
        width: 10px;
        height: 10px;
    }
}

/* Instagram Link Tutorial */
.tutorial-instagram-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 40px 20px;
}

.tutorial-instagram-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.2rem;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.tutorial-instagram-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.tutorial-instagram-btn:hover::before {
    left: 100%;
}

.tutorial-instagram-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(228, 64, 95, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.tutorial-instagram-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.instagram-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.tutorial-instagram-btn:hover .instagram-icon {
    transform: scale(1.2) rotate(10deg);
}

.external-link-icon {
    font-size: 1.2rem;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.tutorial-instagram-btn:hover .external-link-icon {
    transform: translateX(5px) translateY(-5px);
}

@media (max-width: 768px) {
    .tutorial-instagram-link {
        padding: 30px 15px;
        gap: 25px;
    }

    .tutorial-instagram-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
    }

    .instagram-icon {
        font-size: 1.6rem;
    }
}

/* ============================================
   TUTORIAL ANIMATION STYLES
   ============================================ */

.tutorial-animation-area {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hand Demo */
.tutorial-hand-demo {
    width: 100%;
    text-align: center;
}

.tutorial-hand-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-hand-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.tutorial-card-demo {
    width: 80px;
    height: 110px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(0) scale(1);
    animation: cardDeal 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.tutorial-card-demo:hover {
    transform: translateY(-10px) scale(1.1);
    z-index: 10;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 217, 102, 0.5);
}

@keyframes cardDeal {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.tutorial-card-new {
    animation: newCardPulse 1.5s ease-in-out infinite;
}

@keyframes newCardPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 0 0 rgba(255, 217, 102, 0.7);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 0 8px rgba(255, 217, 102, 0);
    }
}

.tutorial-new-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #FFD966 0%, #FFC93C 100%);
    color: #2c3e50;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: badgeBounce 0.5s ease-out;
}

@keyframes badgeBounce {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Board Demo */
.tutorial-board-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tutorial-board-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-mini-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5/3;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tutorial-cell {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.tutorial-cell-highlight {
    background: rgba(255, 217, 102, 0.3);
    border-color: #FFD966;
    box-shadow: 
        0 0 15px rgba(255, 217, 102, 0.5),
        inset 0 0 10px rgba(255, 217, 102, 0.3);
    animation: cellPulse 1.5s ease-in-out infinite;
}

@keyframes cellPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(255, 217, 102, 0.5),
            inset 0 0 10px rgba(255, 217, 102, 0.3);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(255, 217, 102, 0.8),
            inset 0 0 15px rgba(255, 217, 102, 0.5);
    }
}

.tutorial-cell-with-card {
    padding: 2px;
    overflow: hidden;
}

.tutorial-board-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tutorial-cell-player .tutorial-board-card {
    border-color: rgba(87, 242, 135, 0.6);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(87, 242, 135, 0.4);
}

.tutorial-cell-opponent .tutorial-board-card {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 107, 53, 0.4);
}

.tutorial-card-stats-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px;
    font-size: 0.7rem;
    font-weight: 900;
    text-shadow: 
        0 0 4px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.tutorial-card-stats-small .stat-top {
    align-self: center;
    color: #ff4444;
}

.tutorial-card-stats-small .stat-right {
    align-self: flex-end;
    color: #ffdd44;
}

.tutorial-card-stats-small .stat-bottom {
    align-self: center;
    color: #4444ff;
}

.tutorial-card-stats-small .stat-left {
    align-self: flex-start;
    color: #44ff44;
}

/* Card Placement Demo */
.tutorial-card-placement-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tutorial-card-to-place {
    width: 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    border: 3px solid rgba(255, 217, 102, 0.8);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(255, 217, 102, 0.6);
    position: relative;
    animation: cardPlacementFloat 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes cardPlacementFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.tutorial-card-stats {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}

.tutorial-stat {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tutorial-stat.stat-top {
    align-self: center;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.tutorial-stat.stat-right {
    align-self: flex-end;
    background: linear-gradient(135deg, #ffdd44 0%, #ffaa00 100%);
    color: #2c3e50;
}

.tutorial-stat.stat-bottom {
    align-self: center;
    background: linear-gradient(135deg, #4444ff 0%, #0000cc 100%);
    color: white;
}

.tutorial-stat.stat-left {
    align-self: flex-start;
    background: linear-gradient(135deg, #44ff44 0%, #00cc00 100%);
    color: #2c3e50;
}

/* Card Comparison Demo */
.tutorial-capture-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tutorial-card-comparison {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tutorial-card-floating {
    width: 110px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: cardFloat 3s ease-in-out infinite;
}

.tutorial-card-floating:nth-child(3) {
    animation-delay: 0.5s;
}

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

.tutorial-card-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.tutorial-comparison-arrow {
    font-size: 3rem;
    color: #FFD966;
    text-shadow: 
        0 0 20px rgba(255, 217, 102, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.5);
    animation: arrowPulse 1.5s ease-in-out infinite;
}

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

.tutorial-comparison-text {
    margin-top: 10px;
}

.tutorial-stat-comparison {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.2) 0%, rgba(255, 217, 102, 0.1) 100%);
    border: 2px solid rgba(255, 217, 102, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tutorial-stat-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.tutorial-comparison-symbol {
    font-size: 1.5rem;
    color: #FFD966;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 217, 102, 0.8);
}

.tutorial-capture-result {
    font-size: 1.2rem;
    font-weight: 900;
    color: #57F287;
    text-shadow: 
        0 0 20px rgba(87, 242, 135, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
    animation: resultPulse 1.5s ease-in-out infinite;
}

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

/* Capture Animation */
.tutorial-cell-capturing {
    animation: captureFlash 1s ease-in-out infinite;
}

@keyframes captureFlash {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(87, 242, 135, 0.7),
            inset 0 0 10px rgba(87, 242, 135, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 10px rgba(87, 242, 135, 0),
            inset 0 0 20px rgba(87, 242, 135, 0.6);
    }
}

.tutorial-card-flipping {
    animation: cardFlip 1.5s ease-in-out;
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg) scale(1.1);
    }
    100% {
        transform: rotateY(180deg);
    }
}

.tutorial-capture-animation-text {
    margin-top: 15px;
}

.tutorial-capture-pulse {
    font-size: 1.5rem;
    font-weight: 900;
    color: #57F287;
    text-shadow: 
        0 0 25px rgba(87, 242, 135, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.6);
    animation: captureTextPulse 1.5s ease-in-out infinite;
}

@keyframes captureTextPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.tutorial-captured-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #57F287 0%, #4ECDC4 100%);
    color: #2c3e50;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(87, 242, 135, 0.6);
    animation: badgeAppear 0.6s ease-out;
    z-index: 5;
}

@keyframes badgeAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Turn Demo */
.tutorial-turn-demo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.tutorial-turn-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.tutorial-turn-arrow {
    font-size: 2rem;
    color: #FF6B35;
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.tutorial-turn-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Score Display */
.tutorial-score-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.tutorial-score-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.tutorial-score-winner {
    background: linear-gradient(135deg, rgba(255, 217, 102, 0.3) 0%, rgba(255, 217, 102, 0.15) 100%);
    border-color: rgba(255, 217, 102, 0.5);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 217, 102, 0.4);
}

.tutorial-score-label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.tutorial-score-value {
    font-weight: 900;
    color: #FFD966;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(255, 217, 102, 0.8);
}

.tutorial-winner-badge {
    font-size: 1.8rem;
    font-weight: 900;
    color: #FFD966;
    text-shadow: 
        0 0 30px rgba(255, 217, 102, 0.9),
        0 4px 15px rgba(0, 0, 0, 0.6);
    animation: winnerPulse 2s ease-in-out infinite;
    margin-top: 10px;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .tutorial-animation-area {
        padding: 15px;
        min-height: 150px;
    }

    .tutorial-card-demo {
        width: 60px;
        height: 85px;
    }

    .tutorial-mini-board {
        max-width: 100%;
        gap: 3px;
        padding: 6px;
    }

    .tutorial-card-to-place {
        width: 80px;
        height: 110px;
    }

    .tutorial-card-floating {
        width: 90px;
        height: 125px;
    }

    .tutorial-comparison-arrow {
        font-size: 2rem;
    }

    .tutorial-stat-comparison {
        padding: 12px 18px;
        gap: 10px;
    }

    .tutorial-stat-label {
        font-size: 0.85rem;
    }

    .tutorial-winner-badge {
        font-size: 1.4rem;
    }
}

/* Animated Background */
.menu-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0ABEFF 0%, #016DCB 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

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

.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* ============================================
   COMPLETE UI REDESIGN - PORTRAIT & LANDSCAPE
   ============================================ */

/* Header */
.menu-header {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInDown 0.8s ease;
}

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

.header-logo {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    animation: logoFloat 3s ease-in-out infinite;
}

.header-logo-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: 
        drop-shadow(0 0 50px rgba(255, 255, 255, 0.9))
        drop-shadow(0 15px 50px rgba(0, 0, 0, 0.7))
        drop-shadow(0 0 100px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
}

.header-logo:hover .header-logo-img {
    filter: 
        drop-shadow(0 0 70px rgba(255, 255, 255, 1))
        drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 130px rgba(255, 255, 255, 0.7));
    transform: scale(1.05);
}

/* Menu Container */
.menu-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeInUp 0.8s ease;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Content Wrapper - Portrait on Mobile, Landscape on Desktop */
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.section-title {
    font-family: 'Titan One', cursive;
    font-size: 1.6rem;
    color: #ffffff;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

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

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

.game-tagline {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.7),
        0 3px 10px rgba(0, 0, 0, 0.6);
}

/* Card Preview Section */
.card-preview-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    padding: 15px 0;
}

.card-fan-container {
    position: relative;
    height: 280px;
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card {
    position: absolute;
    width: 180px;
    height: 247px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(255, 255, 255, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    overflow: hidden;
}

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

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

.preview-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 168, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.preview-card.card-1 {
    transform: translateX(-110px) rotate(-20deg);
    z-index: 1;
    animation: cardBounce1 2.5s ease-in-out infinite;
}

.preview-card.card-2 {
    transform: translateX(0) rotate(0deg);
    z-index: 3;
    animation: cardBounce2 2.5s ease-in-out infinite 0.15s;
}

.preview-card.card-3 {
    transform: translateX(110px) rotate(20deg);
    z-index: 1;
    animation: cardBounce3 2.5s ease-in-out infinite 0.3s;
}

@keyframes cardBounce1 {
    0%, 100% { transform: translateX(-110px) rotate(-20deg) translateY(0); }
    50% { transform: translateX(-110px) rotate(-20deg) translateY(-12px); }
}

@keyframes cardBounce2 {
    0%, 100% { transform: translateX(0) rotate(0deg) translateY(0); }
    50% { transform: translateX(0) rotate(0deg) translateY(-18px); }
}

@keyframes cardBounce3 {
    0%, 100% { transform: translateX(110px) rotate(20deg) translateY(0); }
    50% { transform: translateX(110px) rotate(20deg) translateY(-12px); }
}

.card-fan-container:hover .preview-card.card-1 {
    transform: translateX(-130px) rotate(-25deg) translateY(-25px) scale(1.08);
}

.card-fan-container:hover .preview-card.card-2 {
    transform: translateX(0) rotate(0deg) translateY(-35px) scale(1.2);
    z-index: 5;
}

.card-fan-container:hover .preview-card.card-3 {
    transform: translateX(130px) rotate(25deg) translateY(-25px) scale(1.08);
}

/* Game Modes Container */
.game-modes-container {
    width: 100%;
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.mode-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 24px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.mode-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;
}

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

.mode-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 0 5px rgba(255, 255, 255, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

.mode-card:active {
    transform: translateY(-3px) scale(1.01);
}

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

.mode-button:hover::before {
    left: 100%;
}

.mode-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

.mode-button:active {
    transform: translateY(-4px) scale(1.02);
}

.mode-button:active {
    transform: translateY(-2px);
}

.mode-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.mode-card:hover .mode-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.mode-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mode-content h3 {
    font-family: 'Titan One', cursive;
    font-size: 1.8rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 3px 0 rgba(0, 0, 0, 0.3),
        0 5px 12px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.mode-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.offline-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.3) 0%, rgba(87, 242, 135, 0.2) 100%);
    border: 2px solid #57F287;
    border-radius: 12px;
    color: #57F287;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 
        0 2px 8px rgba(87, 242, 135, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mode-tag {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    margin-top: 4px;
}


/* Physical Game Container */
.physical-game-container {
    width: 100%;
}

.physical-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.physical-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.6s;
}

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

.physical-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.5),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        inset 0 3px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.physical-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    position: relative;
}

.physical-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.physical-card:hover .physical-image-wrapper img {
    transform: scale(1.08);
}

.physical-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.physical-details h3 {
    font-family: 'Titan One', cursive;
    font-size: 1.7rem;
    margin: 0;
    color: #ffffff;
    text-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.2;
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
}

.old-price {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-weight: 600;
}

.new-price {
    font-size: 2rem;
    color: #FFD966;
    font-weight: 900;
    text-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(255, 217, 102, 0.5);
}

.discount-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 5px 0;
}

.discount-badge {
    font-size: 0.85rem;
    font-weight: 900;
    padding: 6px 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: #ffffff;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 12px rgba(255, 107, 53, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.discount-info p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin: 0;
}

.discount-info strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.buy-button {
    align-self: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
    border-radius: 25px;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 6px 20px rgba(255, 201, 60, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 8px;
    width: fit-content;
}

.physical-card:hover .buy-button {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(255, 201, 60, 0.6),
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* Bright Mode Cards */
.mode-local {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.mode-local .mode-icon {
    background: linear-gradient(135deg, #FF8FB3 0%, #FFB3D1 100%);
}

.mode-local .mode-tag {
    background: linear-gradient(135deg, #FFD966 0%, #FFE699 100%);
    color: #2c3e50;
}

.mode-computer {
    background: linear-gradient(135deg, #4ECDC4 0%, #6EDDD6 50%, #4ECDC4 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.1s;
}

.mode-computer .mode-icon {
    background: linear-gradient(135deg, #6EDDD6 0%, #8EE8E1 100%);
}

.mode-computer .mode-tag {
    background: linear-gradient(135deg, #FFC93C 0%, #FFD966 100%);
    color: #2c3e50;
}

.mode-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.1);
}

.mode-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.mode-disabled .mode-badge.coming-soon {
    background: rgba(149, 165, 166, 0.2);
    border-color: #95a5a6;
    color: #95a5a6;
}

.mode-discord {
    border-left: 4px solid #5865F2;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.mode-discord:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(88, 101, 242, 0.1) 100%);
    border-color: #5865F2;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(88, 101, 242, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mode-badge.discord-badge {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3) 0%, rgba(88, 101, 242, 0.2) 100%);
    border-color: #5865F2;
    color: #ffffff;
    box-shadow: 
        0 4px 15px rgba(88, 101, 242, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mode-coming-soon {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 50%, #6c757d 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite 0.2s;
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
    filter: grayscale(0.3);
}

.mode-coming-soon .mode-icon {
    background: linear-gradient(135deg, #868e96 0%, #adb5bd 100%);
    opacity: 0.8;
}

.mode-coming-soon .mode-content h3 {
    color: rgba(255, 255, 255, 0.8);
}

.mode-coming-soon .mode-content p {
    color: rgba(255, 255, 255, 0.7);
}

.coming-soon-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.4) 0%, rgba(108, 117, 125, 0.3) 100%);
    border: 2px solid #868e96;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mode-coming-soon:hover {
    transform: translateY(-3px) scale(1.01);
    opacity: 0.75;
}

.coming-soon-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.coming-soon-logos img {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.coming-soon-logos .logo-separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 700;
}

.coming-soon-badge {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}


/* Footer */
.menu-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    margin: 35px auto 0;
    padding: 0 20px 20px;
    text-align: center;
}

.footer-content {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-alpha {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-alpha strong {
    color: #FFD966;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================
   DESKTOP LANDSCAPE LAYOUT (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .menu-header {
        padding: 30px 20px;
    }

    .header-logo {
        max-width: 600px;
    }

    .menu-container {
        padding: 40px 30px;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .game-tagline {
        font-size: 1.5rem;
    }

    .content-wrapper {
        flex-direction: row;
        align-items: start;
        gap: 50px;
    }

    .game-modes-container {
        flex: 1;
        max-width: 600px;
    }

    .physical-game-container {
        flex: 1;
        max-width: 500px;
    }

    .modes-grid {
        gap: 20px;
    }

    .mode-card {
        padding: 28px;
    }

    .mode-icon {
        width: 90px;
        height: 90px;
        font-size: 3.5rem;
    }

    .mode-content h3 {
        font-size: 2rem;
    }

    .mode-content p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .physical-details {
        padding: 28px;
    }

    .physical-details h3 {
        font-size: 1.9rem;
    }

    .new-price {
        font-size: 2.2rem;
    }

    .old-price {
        font-size: 1.4rem;
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-wrapper {
        gap: 40px;
    }

    .modes-grid {
        gap: 18px;
    }

    .mode-card {
        padding: 24px;
    }

    .mode-icon {
        width: 85px;
        height: 85px;
        font-size: 3.2rem;
    }

    .mode-content h3 {
        font-size: 1.9rem;
    }
}

/* ============================================
   MOBILE PORTRAIT LAYOUT (< 768px)
   ============================================ */
@media (max-width: 767px) {
    .menu-header {
        padding: 15px 10px;
    }

    .header-logo {
        max-width: 100%;
        padding: 8px;
    }

    .menu-container {
        padding: 20px 15px;
    }

    .hero-section {
        gap: 12px;
        margin-bottom: 25px;
    }

    .game-tagline {
        font-size: 0.95rem;
        letter-spacing: 2px;
    }

    .content-wrapper {
        gap: 30px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
        letter-spacing: 1.5px;
    }

    .modes-grid {
        gap: 14px;
    }

    .mode-card {
        padding: 20px;
        gap: 16px;
        border-radius: 22px;
    }

    .mode-icon {
        width: 70px;
        height: 70px;
        font-size: 2.8rem;
        border-radius: 18px;
    }

    .mode-content {
        gap: 6px;
    }

    .mode-content h3 {
        font-size: 1.5rem;
    }

    .mode-content p {
        font-size: 0.9rem;
    }

    .offline-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .mode-tag {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .coming-soon-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .coming-soon-logos {
        gap: 8px;
        margin-top: 6px;
    }

    .coming-soon-logos img {
        height: 20px;
    }

    .physical-card {
        border-radius: 24px;
    }

    .physical-image-wrapper {
        border-radius: 21px 21px 0 0;
    }

    .physical-details {
        padding: 20px;
        gap: 10px;
    }

    .physical-details h3 {
        font-size: 1.4rem;
    }

    .new-price {
        font-size: 1.7rem;
    }

    .old-price {
        font-size: 1.2rem;
    }

    .discount-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .discount-info p {
        font-size: 0.85rem;
    }

    .buy-button {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .footer-content {
        padding: 18px 20px;
    }

    .footer-alpha {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 10px;
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 300px;
    }
}

.mode-multiplayer {
    border-left: 4px solid #57F287;
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.1) 0%, rgba(87, 242, 135, 0.05) 100%);
}

.mode-multiplayer:hover {
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.2) 0%, rgba(87, 242, 135, 0.1) 100%);
    border-color: #57F287;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(87, 242, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mode-badge.multiplayer-badge {
    background: linear-gradient(135deg, rgba(87, 242, 135, 0.3) 0%, rgba(87, 242, 135, 0.2) 100%);
    border-color: #57F287;
    color: #ffffff;
    box-shadow: 
        0 4px 15px rgba(87, 242, 135, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   GAME VIEW - UNIFIED DESIGN
   ============================================ */

#game-view {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: #0a0e27;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    transition: background 0.5s ease;
    transform-origin: center center;
}

/* Ensure pattern is visible on game-view even with gradient backgrounds */
#game-view.turn-player1::after,
#game-view.turn-player2::after,
#game-view.turn-computer::after {
    opacity: 0.2 !important;
}

/* Background Motion Effect for Streaks */
#game-view.streak-motion {
    animation: streakBackgroundMotion var(--motion-duration, 1000ms) ease-out;
    will-change: background-position, filter;
}

@keyframes streakBackgroundMotion {
    0% {
        background-position: 50% 50%;
        filter: blur(0px);
    }
    10% {
        background-position: calc(50% + var(--motion-intensity, 0.5) * 2%) calc(50% + var(--motion-intensity, 0.5) * 1%);
        filter: blur(1px);
    }
    20% {
        background-position: calc(50% - var(--motion-intensity, 0.5) * 1.5%) calc(50% - var(--motion-intensity, 0.5) * 1.2%);
        filter: blur(0.8px);
    }
    30% {
        background-position: calc(50% + var(--motion-intensity, 0.5) * 1.2%) calc(50% + var(--motion-intensity, 0.5) * 0.8%);
        filter: blur(0.6px);
    }
    40% {
        background-position: calc(50% - var(--motion-intensity, 0.5) * 1%) calc(50% - var(--motion-intensity, 0.5) * 0.6%);
        filter: blur(0.4px);
    }
    50% {
        background-position: calc(50% + var(--motion-intensity, 0.5) * 0.8%) calc(50% + var(--motion-intensity, 0.5) * 0.4%);
        filter: blur(0.3px);
    }
    60% {
        background-position: calc(50% - var(--motion-intensity, 0.5) * 0.6%) calc(50% - var(--motion-intensity, 0.5) * 0.3%);
        filter: blur(0.2px);
    }
    70% {
        background-position: calc(50% + var(--motion-intensity, 0.5) * 0.4%) calc(50% + var(--motion-intensity, 0.5) * 0.2%);
        filter: blur(0.1px);
    }
    80% {
        background-position: calc(50% - var(--motion-intensity, 0.5) * 0.2%) calc(50% - var(--motion-intensity, 0.5) * 0.1%);
        filter: blur(0px);
    }
    100% {
        background-position: 50% 50%;
        filter: blur(0px);
    }
}

/* Pass-and-Play: Rotate entire view for player 2's turn on desktop */
@media (min-width: 1024px) {
    #game-view.pass-and-play-rotate {
        transform: rotate(180deg);
        transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    /* Reverse text direction when rotated so it's readable */
    #game-view.pass-and-play-rotate .nav-btn,
    #game-view.pass-and-play-rotate .score-badge,
    #game-view.pass-and-play-rotate #turn-indicator,
    #game-view.pass-and-play-rotate .scoreboard-content {
        transform: rotate(180deg);
    }
    
    /* Ensure hands are visible and properly positioned when rotated */
    #game-view.pass-and-play-rotate .player-hand-section {
        transform: rotate(180deg);
    }
    
    #game-view.pass-and-play-rotate .player-hand-top {
        transform: rotate(180deg);
    }
}

/* Discord Player 2 Perspective Rotation (similar to pass-and-play) */
#game-view.discord-player2-perspective {
    transform: rotate(180deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reverse text direction when rotated so it's readable */
#game-view.discord-player2-perspective .nav-btn,
#game-view.discord-player2-perspective .score-badge,
#game-view.discord-player2-perspective #turn-indicator,
#game-view.discord-player2-perspective .scoreboard-content {
    transform: rotate(180deg);
}

/* Ensure hands are visible and properly positioned when rotated */
#game-view.discord-player2-perspective .player-hand-section {
    transform: rotate(180deg);
}

#game-view.discord-player2-perspective .player-hand-top {
    transform: rotate(180deg);
}

/* Navigation Button */
.nav-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Game Layout */
.game-main-area {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
    padding: 200px 20px 20px 20px;
    gap: 20px;
    overflow: hidden;
    max-width: 100vw;
    position: relative;
}

/* Desktop: Scoreboard on the right side */
@media (min-width: 1024px) {
    .scoreboard-panel {
        position: fixed;
        top: 80px;
        right: 30px;
        left: auto;
        width: 280px;
        min-width: 260px;
        z-index: 100;
    }
    
    .scoreboard-content {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Adjust game area to account for scoreboard on right */
    .game-main-area {
        padding-right: 330px; /* Scoreboard width (280px) + gap (30px) + margin (20px) */
    }
    
    /* Desktop Computer Mode: Fixed layout with no scrolling */
    body:has(#game-view:has(#player2-hand.player-hand-top)) {
        overflow: hidden;
        height: 100vh;
    }
    
    #game-view:has(#player2-hand.player-hand-top) {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
    }
    
    /* Computer cards fixed at top - small size - EXACTLY match player's hand dimensions */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand.player-hand-top {
        position: fixed;
        top: 0;
        left: 90px !important; /* EXACTLY match player's hand left position */
        right: 330px !important; /* EXACTLY match player's hand right position */
        width: auto !important; /* Let left/right determine width */
        height: 110px;
        min-height: 110px;
        max-height: 110px;
        padding: 12px 20px !important; /* EXACTLY match player's hand padding (12px 20px) */
        margin: 0 !important;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border: none !important; /* Match player's hand - no border on top container */
        border-radius: 0 0 15px 15px;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible; /* Allow cards to be visible */
        box-sizing: border-box !important; /* Ensure padding is included in width calculation */
    }
    
    /* Ensure the hand container itself centers the cards properly - match player's hand styling */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand {
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important; /* Remove any extra padding that causes misalignment - override base padding: 0 60px */
        max-width: 100% !important;
        white-space: nowrap;
        box-sizing: border-box;
    }
    
    /* Ensure menu button stays on top */
    #game-view:has(#player2-hand.player-hand-top) .nav-btn {
        z-index: 105;
    }
    
    /* Make computer cards smaller */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand .card {
        width: 60px;
        height: 82px;
        margin-left: -12px;
        flex-shrink: 0;
    }
    
    /* Reset first card margin to prevent left offset - must come after general card rule */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand .card:first-child {
        margin-left: 0 !important;
    }
    
    /* Ensure computer card backs stay rotated */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand .card.back {
        transform: rotate(180deg);
    }
    
    /* Reduce hover effect for computer cards */
    #game-view:has(#player2-hand.player-hand-top) #player2-hand .card:hover {
        transform: rotate(180deg) translateY(-5px) scale(1.1);
        z-index: 95;
    }
    
    /* Player cards fixed at bottom - EXACTLY match opponent's hand dimensions */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-section {
        position: fixed;
        bottom: 20px; /* Add margin from bottom */
        left: 90px !important; /* EXACTLY match opponent's hand left position */
        right: 330px !important; /* EXACTLY match opponent's hand right position */
        width: auto !important; /* Let left/right determine width */
        height: 190px;
        min-height: 190px;
        max-height: none; /* Allow expansion for selected cards */
        padding: 12px 20px !important; /* EXACTLY match opponent's hand padding */
        margin: 0 !important;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 15px;
        z-index: 90;
        overflow: visible; /* Allow cards to overlap when selected */
        clip-path: none; /* Remove any clipping */
        box-sizing: border-box !important; /* Ensure padding is included in width calculation */
        display: flex; /* Match opponent's hand flex display */
        align-items: center;
        justify-content: center;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-section .player-hand {
        min-height: auto;
        height: auto;
        overflow: visible; /* Allow cards to extend beyond container */
        align-items: flex-end; /* Align cards to bottom of container */
        justify-content: center; /* Center the cards horizontally */
        margin: 0 !important; /* Remove any margins */
        padding: 0 !important; /* Remove any padding - override base padding: 0 60px */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Ensure selected cards can extend beyond container */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-section .card.selected {
        position: relative;
        z-index: 1000;
    }
    
    /* Scoreboard fixed at right - ensure it stays below computer cards */
    #game-view:has(#player2-hand.player-hand-top) .scoreboard-panel {
        position: fixed;
        top: 120px; /* Below computer cards (110px) + gap (10px) */
        right: 30px;
        z-index: 100;
    }
    
    /* Make board bigger - fill available space */
    #game-view:has(#player2-hand.player-hand-top) .game-main-area {
        flex: 1;
        padding: 130px 330px 240px 90px; /* Top: computer cards (110px) + gap (20px), Right: scoreboard, Bottom: player cards (190px) + margin (20px) + gap (30px), Left: menu button (90px) */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        min-height: 0;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .game-board-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    #game-view:has(#player2-hand.player-hand-top) canvas {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
}

/* Mobile: Scoreboard at the top */
@media (max-width: 1023px) {
    .scoreboard-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        z-index: 100;
    }
    
    .scoreboard-content {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 15px;
    }
    
    .score-badge {
        flex: 1;
        min-width: 0;
        padding: 16px 18px;
    }
    
    .score-badge span {
        font-size: 2rem;
    }
    
    #turn-indicator {
        flex: 1;
        min-width: 0;
        padding: 14px 18px;
        font-size: 0.85rem;
    }
    
    /* Adjust game area padding for top scoreboard */
    .game-main-area {
        padding-top: 180px;
    }
}

/* Game Board Container */
.game-board-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 20px;
    position: relative;
    z-index: 10;
}

canvas {
    border-radius: 20px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 168, 255, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

canvas:hover {
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(0, 168, 255, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Scoreboard Panel - Enhanced Design */
.scoreboard-panel {
    width: 280px;
    min-width: 260px;
    background: #000000;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 80px;
    right: 30px;
    z-index: 100;
    overflow: hidden;
    animation: scoreboardFloat 4s ease-in-out infinite;
}

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

.scoreboard-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.scoreboard-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Turn Indicator Wrapper */
.turn-indicator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Mode Toggle Button with Icons */
.mode-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 40px;
    height: 32px;
}

.mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.mode-toggle-btn .mode-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Pass & Play Icon - Hidden by default, shown when active */
.mode-toggle-btn .pass-play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
}

/* Face to Face Icon - Hidden by default, shown when active */
.mode-toggle-btn .face-to-face-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

/* Active state for Pass & Play mode - Show pass-play icon */
.mode-toggle-btn.active-pass-play .pass-play-icon {
    opacity: 1;
    color: rgba(0, 168, 255, 1);
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(0, 168, 255, 0.6));
}

.mode-toggle-btn.active-pass-play .face-to-face-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
}

/* Active state for Face to Face mode - Show face-to-face icon */
.mode-toggle-btn.active-face-to-face .face-to-face-icon {
    opacity: 1;
    color: rgba(232, 65, 24, 1);
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(232, 65, 24, 0.6));
}

.mode-toggle-btn.active-face-to-face .pass-play-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
}

/* Morphing animation - both icons animate during transition */
.mode-toggle-btn.morphing .pass-play-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-toggle-btn.morphing .face-to-face-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Background highlight for active mode */
.mode-toggle-btn.active-pass-play {
    background: rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.3);
    transition: all 0.4s ease;
}

.mode-toggle-btn.active-face-to-face {
    background: rgba(232, 65, 24, 0.15);
    border-color: rgba(232, 65, 24, 0.4);
    box-shadow: 0 0 12px rgba(232, 65, 24, 0.3);
    transition: all 0.4s ease;
}

/* Hide toggle on desktop */
@media (min-width: 1024px) and (pointer: fine) {
    .mode-toggle-btn {
        display: none;
    }
}

.score-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.score-badge:hover::before {
    left: 100%;
}

.score-badge.p1 {
    border-color: #0ABEFF;
    color: #0ABEFF;
    background: linear-gradient(135deg, rgba(10, 190, 255, 0.25) 0%, rgba(10, 190, 255, 0.15) 100%);
    box-shadow: 
        0 8px 30px rgba(10, 190, 255, 0.4),
        0 0 40px rgba(10, 190, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(10, 190, 255, 0.2);
    animation: player1Glow 3s ease-in-out infinite;
}

@keyframes player1Glow {
    0%, 100% { 
        box-shadow: 
            0 8px 30px rgba(10, 190, 255, 0.4),
            0 0 40px rgba(10, 190, 255, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 0 0 3px rgba(10, 190, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 10px 35px rgba(10, 190, 255, 0.5),
            0 0 50px rgba(10, 190, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(10, 190, 255, 0.3);
    }
}

.score-badge.p2 {
    border-color: #FA7343;
    color: #FA7343;
    background: linear-gradient(135deg, rgba(250, 115, 67, 0.25) 0%, rgba(250, 115, 67, 0.15) 100%);
    box-shadow: 
        0 8px 30px rgba(250, 115, 67, 0.4),
        0 0 40px rgba(250, 115, 67, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(250, 115, 67, 0.2);
    animation: player2Glow 3s ease-in-out infinite;
}

@keyframes player2Glow {
    0%, 100% { 
        box-shadow: 
            0 8px 30px rgba(250, 115, 67, 0.4),
            0 0 40px rgba(250, 115, 67, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.3),
            0 0 0 3px rgba(250, 115, 67, 0.2);
    }
    50% { 
        box-shadow: 
            0 10px 35px rgba(250, 115, 67, 0.5),
            0 0 50px rgba(250, 115, 67, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            0 0 0 4px rgba(250, 115, 67, 0.3);
    }
}

.score-badge {
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.score-badge:hover {
    transform: translateY(-4px) scale(1.03);
    border-width: 4px;
}

.score-badge span {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    margin-top: 10px;
    text-shadow: 
        0 0 20px currentColor,
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 30px currentColor;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.score-badge:hover span {
    transform: scale(1.1);
    text-shadow: 
        0 0 30px currentColor,
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 40px currentColor;
}

#turn-indicator {
    background: linear-gradient(135deg, #FFD966 0%, #FFC93C 50%, #FFD966 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, turnIndicatorPulse 2s ease-in-out infinite;
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 6px 20px rgba(255, 217, 102, 0.5),
        0 0 30px rgba(255, 217, 102, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Titan One', cursive;
    min-width: 50px;
}

#turn-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: turnShimmer 2s ease-in-out infinite;
}

@keyframes turnShimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

@keyframes turnIndicatorPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 8px 30px rgba(255, 217, 102, 0.5),
            0 0 40px rgba(255, 217, 102, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 10px 35px rgba(255, 217, 102, 0.6),
            0 0 50px rgba(255, 217, 102, 0.5),
            inset 0 3px 0 rgba(255, 255, 255, 0.5),
            inset 0 -3px 0 rgba(0, 0, 0, 0.25);
    }
}

/* Player Hands */
.player-hand-section {
    padding: 20px 60px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow-x: visible;
    overflow-y: visible;
    max-width: 100vw;
    position: relative;
    z-index: 20;
}

.player-hand-section::-webkit-scrollbar {
    height: 6px;
}

.player-hand-section::-webkit-scrollbar-track {
    background: transparent;
}

.player-hand-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.player-hand-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.player-hand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -30px;
    min-height: 180px;
    flex-wrap: nowrap;
    flex-direction: row;
    perspective: 1000px;
    overflow-x: visible;
    overflow-y: visible;
    max-width: 100%;
    padding: 0 60px;
    white-space: nowrap;
    position: relative;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.player-hand::-webkit-scrollbar {
    height: 6px;
}

.player-hand::-webkit-scrollbar-track {
    background: transparent;
}

.player-hand::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.player-hand::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Uno-style card fan effect on hand hover - subtle lift */
.player-hand:hover .card:not(:hover):not(.selected) {
    transform: translateY(-8px) scale(1.03);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Spread cards when hovering over hand - Uno fan effect */
#player1-hand:hover .card:not(:hover):nth-child(1) {
    transform: translateX(-25px) translateY(-12px) rotate(-10deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand:hover .card:not(:hover):nth-child(2) {
    transform: translateX(-12px) translateY(-10px) rotate(-5deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand:hover .card:not(:hover):nth-child(3) {
    transform: translateY(-8px) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand:hover .card:not(:hover):nth-child(4) {
    transform: translateX(12px) translateY(-10px) rotate(5deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand:hover .card:not(:hover):nth-child(5) {
    transform: translateX(25px) translateY(-12px) rotate(10deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand:hover .card:not(:hover):nth-child(n+6) {
    transform: translateY(-5px) scale(1.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Player 2 hand spread (with proper 3D perspective) */
/* Player 2 hand spread (with proper 3D perspective) - mirror Player 1 spread */
#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(1) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateX(-25px) translateY(-12px) rotate(-10deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(2) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateX(-12px) translateY(-10px) rotate(-5deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(3) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateY(-8px) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(4) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateX(12px) translateY(-10px) rotate(5deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(5) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateX(25px) translateY(-12px) rotate(10deg) scale(1.08);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player2-hand:hover .player2-perspective:not(:hover):not(.selected):nth-child(n+6) {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateY(-5px) scale(1.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-hand-top {
    position: absolute;
    top: 120px;
    left: 20px;
    right: 20px;
    padding: 8px 60px 60px 60px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-height: 220px;
    max-height: 220px;
    overflow-y: visible;
    overflow-x: visible;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

/* In local mode, position player 2 hand below scoreboard */
#game-view:has(#player2-hand.player-hand-top) .player-hand-top {
    top: 170px;
    margin-bottom: 40px;
}

/* Ensure player 2 hand has same flex properties as player 1 hand */
#player2-hand {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: -30px;
    min-height: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    perspective: 1000px;
    overflow-x: visible;
    overflow-y: visible;
    max-width: 100%;
    padding: 0 60px;
    white-space: nowrap;
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    margin-top: 0;
    align-self: flex-start;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.player-hand-top::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.player-hand-top::-webkit-scrollbar-track {
    background: transparent;
}

.player-hand-top::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.player-hand-top::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hide player 2 hand in computer mode */
#player2-hand:not(.player-hand-top) {
    display: none;
}

/* Cards - Bigger and Uno-style */
.card {
    width: 150px;
    height: 206px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    margin-left: -20px;
    overflow: visible;
    transform-origin: center bottom;
    will-change: transform;
    flex-shrink: 0;
}

/* Only animate on initial deal */
.card.initial-deal {
    animation: cardDeal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

/* Uno-style card hover lift effect - overrides hand spread */
.card:hover {
    transform: translateY(-35px) scale(1.2) rotate(5deg) !important;
    z-index: 100 !important;
    position: relative !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 168, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9) !important;
    animation: cardHoverBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: -20px !important;
}

/* Player 2 cards hover with perspective - mirror Player 1 hover */
#player2-hand .player2-perspective:hover {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateY(-35px) scale(1.2) rotate(5deg) !important;
    z-index: 100 !important;
    position: relative !important;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(232, 65, 24, 0.8),
        0 0 70px rgba(232, 65, 24, 0.6),
        0 0 90px rgba(232, 65, 24, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: #e84118 !important;
    animation: cardHoverBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: -20px !important;
}

/* Player 2 cards active state */
#player2-hand .player2-perspective:active {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateY(-30px) scale(1.15) rotate(3deg) !important;
    z-index: 100 !important;
    position: relative !important;
}

@keyframes cardHoverBounce {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) scale(1.25) rotate(8deg);
    }
    100% {
        transform: translateY(-35px) scale(1.2) rotate(5deg);
    }
}

/* Player 1 cards - Blue glow on hover */
#player1-hand .card:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(0, 168, 255, 0.8),
        0 0 70px rgba(0, 168, 255, 0.6),
        0 0 90px rgba(0, 168, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    border-color: #00a8ff !important;
}

/* Player 2 cards - Red glow on hover */

/* Uno-style card dealing animation */
@keyframes cardDeal {
    0% {
        opacity: 0;
        transform: translateY(150px) rotate(-15deg) scale(0.5);
        filter: blur(10px);
    }
    40% {
        opacity: 0.8;
        transform: translateY(-15px) rotate(5deg) scale(1.1);
        filter: blur(2px);
    }
    70% {
        transform: translateY(5px) rotate(-2deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
        filter: blur(0px);
    }
}

/* Card draw animation - Uno style */
@keyframes cardDraw {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(-360deg) translateY(50px);
        filter: blur(15px);
    }
    30% {
        opacity: 0.5;
        transform: scale(0.8) rotate(-180deg) translateY(-20px);
        filter: blur(5px);
    }
    60% {
        transform: scale(1.15) rotate(10deg) translateY(-5px);
        filter: blur(1px);
    }
    80% {
        transform: scale(0.95) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
        filter: blur(0px);
    }
}

.card.new-card {
    animation: cardDraw 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card click/tap feedback */
.card:active {
    transform: translateY(-25px) scale(1.1) rotate(2deg) !important;
    transition: all 0.1s ease !important;
}

/* Card entrance stagger for multiple cards - only for new cards */
.player-hand .card.new-card:nth-child(1) { animation-delay: 0s; }
.player-hand .card.new-card:nth-child(2) { animation-delay: 0.1s; }
.player-hand .card.new-card:nth-child(3) { animation-delay: 0.2s; }
.player-hand .card.new-card:nth-child(4) { animation-delay: 0.3s; }
.player-hand .card.new-card:nth-child(5) { animation-delay: 0.4s; }
.player-hand .card.new-card:nth-child(6) { animation-delay: 0.5s; }
.player-hand .card.new-card:nth-child(7) { animation-delay: 0.6s; }

/* Only animate cards that are actually new */
.card:not(.new-card):not(.initial-deal) {
    animation: none !important;
}

/* Remove initial-deal class after animation completes */
.card.initial-deal {
    animation: cardDeal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Remove initial-deal class after animation */
@keyframes removeInitialDeal {
    to {
        animation: none;
    }
}

/* Player 2 perspective - flipped from opponent's view with proper 3D */
.player2-perspective {
    transform: rotateY(180deg) rotateZ(180deg);
    transform-style: preserve-3d;
    backface-visibility: visible;
    position: relative;
    transform-origin: center center;
    align-self: flex-start;
}

/* Swap yellow and green positions for player 2 cards in hand */
/* Since cards are rotated 180deg, yellow (right) appears on left and green (left) appears on right */
/* Add horizontal flip to swap left and right, correcting yellow/green positions */
#player2-hand .player2-perspective {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1);
}

/* Grey out cards when it's opponent's turn - based on card owner, not position */
body.turn-player2 .card[data-owner="player1"]:not(.selected),
body.turn-computer .card[data-owner="player1"]:not(.selected),
#game-view.turn-player2 .card[data-owner="player1"]:not(.selected),
#game-view.turn-computer .card[data-owner="player1"]:not(.selected) {
    filter: grayscale(0.7) brightness(0.6) !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

body.turn-player1 .card[data-owner="player2"]:not(.selected),
#game-view.turn-player1 .card[data-owner="player2"]:not(.selected) {
    filter: grayscale(0.7) brightness(0.6) !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.card:first-child {
    margin-left: 0;
}

/* Floating card during drag/swipe */
.floating-card {
    cursor: grabbing !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    will-change: transform;
}

.card:hover {
    transform: translateY(-25px) scale(1.15) rotate(2deg);
    z-index: 10;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(0, 168, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    animation: cardHover 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) scale(1.2) rotate(3deg);
    }
    100% {
        transform: translateY(-25px) scale(1.15) rotate(2deg);
    }
}

.card.selected {
    transform: translateY(-45px) scale(1.25) rotate(-5deg) !important;
    z-index: 1000 !important;
    position: relative !important;
    border-color: #f1c40f !important;
    border-width: 4px !important;
    box-shadow: 
        0 0 0 8px rgba(241, 196, 15, 0.8),
        0 0 60px rgba(241, 196, 15, 0.8),
        0 0 100px rgba(241, 196, 15, 0.6),
        0 35px 70px rgba(0, 0, 0, 0.9),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    animation: selectedBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Player 2 selected card with perspective - mirror Player 1 selected */
#player2-hand .player2-perspective.selected {
    transform: rotateY(180deg) rotateZ(180deg) scaleX(-1) translateY(-45px) scale(1.25) rotate(-5deg) !important;
    z-index: 1000 !important;
    position: relative !important;
    border-color: #f1c40f !important;
    border-width: 4px !important;
    box-shadow: 
        0 0 0 8px rgba(241, 196, 15, 0.8),
        0 0 60px rgba(241, 196, 15, 0.8),
        0 0 100px rgba(241, 196, 15, 0.6),
        0 35px 70px rgba(0, 0, 0, 0.9),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    animation: selectedBounce 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@keyframes selectedBounce {
    0%, 100% {
        transform: translateY(-45px) scale(1.25) rotate(-5deg);
        box-shadow: 
            0 0 0 8px rgba(241, 196, 15, 0.8),
            0 0 60px rgba(241, 196, 15, 0.8),
            0 0 100px rgba(241, 196, 15, 0.6),
            0 35px 70px rgba(0, 0, 0, 0.9),
            inset 0 0 40px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: translateY(-50px) scale(1.3) rotate(-6deg);
        box-shadow: 
            0 0 0 10px rgba(241, 196, 15, 1),
            0 0 80px rgba(241, 196, 15, 1),
            0 0 120px rgba(241, 196, 15, 0.8),
            0 40px 80px rgba(0, 0, 0, 1),
            inset 0 0 50px rgba(255, 255, 255, 0.6);
    }
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 5px rgba(241, 196, 15, 0.6),
            0 0 40px rgba(241, 196, 15, 0.5),
            0 25px 50px rgba(0, 0, 0, 0.7),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 6px rgba(241, 196, 15, 0.8),
            0 0 50px rgba(241, 196, 15, 0.7),
            0 30px 60px rgba(0, 0, 0, 0.8),
            inset 0 0 35px rgba(255, 255, 255, 0.4);
    }
}

#player1-hand .card {
    border-color: #00a8ff;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 168, 255, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#player1-hand .card:active {
    transform: translateY(-30px) scale(1.15) rotate(3deg) !important;
    transition: all 0.1s ease;
}

/* Player 2 cards base styling - use player2-perspective class */
#player2-hand .player2-perspective {
    border-color: #e84118;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(232, 65, 24, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.back {
    background-color: #2c3e50;
    background-image: url('assets/Card_Back_v2.png');
    background-size: cover;
}

/* Capture Effect Text */
.capture-effect {
    font-family: 'Titan One', cursive;
    font-size: 3rem;
    color: #f1c40f;
    text-shadow: 
        0 0 20px rgba(241, 196, 15, 1),
        0 0 40px rgba(241, 196, 15, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    user-select: none;
    transform: translate(-50%, -50%);
    animation: captureEffect 1s ease-out forwards;
    z-index: 10000;
    white-space: nowrap;
    font-weight: 900;
    letter-spacing: 3px;
}

/* Responsive capture effect text */
@media (max-width: 767px) {
    .capture-effect {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .capture-effect {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

@keyframes captureEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2) rotate(-25deg);
        filter: blur(15px) brightness(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.4) rotate(8deg);
        filter: blur(0px) brightness(1.5);
    }
    35% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg);
        filter: blur(0px) brightness(1.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15) rotate(3deg);
        filter: blur(0px) brightness(1);
    }
    65% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -90%) scale(0.6) rotate(20deg);
        filter: blur(10px) brightness(0.8);
    }
}

/* Streak Indicator Animation */
@keyframes streakEffect {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.5);
        filter: blur(10px);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1.2);
        filter: blur(0px);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateX(-50%) translateY(0) scale(1.05);
    }
    80% {
        transform: translateX(-50%) translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.8);
        filter: blur(5px);
    }
}

.streak-indicator {
    animation: streakEffect 1.5s ease-out forwards;
}

/* Particle Burst Animation */
@keyframes particleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: translate(calc(var(--end-x) * 0.3), calc(var(--end-y) * 0.3)) scale(1.4) rotate(180deg);
        filter: blur(0.5px);
    }
    60% {
        opacity: 0.7;
        transform: translate(calc(var(--end-x) * 0.7), calc(var(--end-y) * 0.7)) scale(1.1) rotate(360deg);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.2) rotate(540deg);
        filter: blur(2px);
    }
}

.capture-particle {
    animation: particleBurst 0.9s ease-out forwards;
}

/* Ripple Effect Animation */
@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.9;
        border-width: 3px;
    }
    30% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
        border-width: 1px;
    }
}

.capture-ripple {
    animation: rippleEffect 0.9s ease-out forwards;
}

/* Shockwave Effect Animation */
@keyframes shockwaveEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 3px;
    }
    20% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
        border-width: 1px;
    }
}

.shockwave-effect {
    animation: shockwaveEffect 0.8s ease-out forwards;
}

/* Energy Burst Animation */
@keyframes energyBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: translate(calc(var(--end-x) * 0.3), calc(var(--end-y) * 0.3)) scale(1.5);
        filter: blur(1px);
    }
    60% {
        opacity: 0.8;
        transform: translate(calc(var(--end-x) * 0.7), calc(var(--end-y) * 0.7)) scale(1.2);
        filter: blur(2px);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.1);
        filter: blur(4px);
    }
}

.energy-particle {
    animation: energyBurst 0.8s ease-out forwards;
}

/* Card Selection Glow Animation */
@keyframes selectionGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.card-selection-glow {
    animation: selectionGlow 1.5s ease-in-out infinite;
}

/* Sparkle Burst Animation for New Cards */
@keyframes sparkleBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(var(--end-x), var(--end-y)) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.2);
    }
}

.card-sparkle {
    animation: sparkleBurst 1s ease-out forwards;
}

/* Placement Impact Animation */
@keyframes placementImpact {
    0% {
        width: 0;
        height: 0;
        opacity: 0.9;
        border-width: 4px;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        border-width: 2px;
    }
}

.placement-impact {
    animation: placementImpact 0.6s ease-out forwards;
}

/* Background Particle Animation */
@keyframes backgroundParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: translate(calc(var(--end-x) * 0.3), calc(var(--end-y) * 0.3)) scale(1.3);
    }
    50% {
        opacity: 0.9;
        transform: translate(calc(var(--end-x) * 0.6), calc(var(--end-y) * 0.6)) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(0.2);
        filter: blur(2px);
    }
}

.background-particle {
    animation: backgroundParticle 0.8s ease-out forwards;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.98) 0%, rgba(15, 22, 41, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    padding: 45px;
    text-align: center;
    max-width: 90%;
    width: 450px;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 168, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    font-family: 'Titan One', cursive;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 168, 255, 0.5);
}

.modal-score {
    font-size: 1.5rem;
    color: #a0aec0;
    margin-bottom: 30px;
    font-weight: 700;
}

.modal-btn {
    display: inline-block;
    padding: 16px 38px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    box-shadow: 
        0 6px 20px rgba(231, 76, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    }

.modal-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 12px 30px rgba(231, 76, 60, 0.5),
        0 0 30px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.modal-btn.secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.modal-btn.secondary:hover {
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN - ALL SCREEN SIZES
   ============================================ */

/* Ultra-wide Desktop (2560px+) */
@media (min-width: 2560px) {
    .menu-container {
        max-width: 1600px;
        gap: 80px;
    }

    .game-tagline {
        font-size: 1.6rem;
    }

    .preview-card {
        width: 200px;
        height: 275px;
    }

    .mode-button {
        padding: 35px 40px;
    }

    .mode-icon {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }

    .mode-info h3 {
        font-size: 2.2rem;
    }

    .scoreboard-panel {
        width: 280px;
        min-width: 260px;
    }

    .card {
        width: 160px;
        height: 220px;
        margin-left: -18px;
    }
    
    .player-hand { 
        min-height: 240px;
    }
    
    /* In local mode, position player 2 hand below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 180px;
        max-height: 200px;
        max-width: calc(100vw - 300px);
        z-index: 50;
    }
    
    .player-hand-top {
        top: 15px;
        max-height: 200px;
        max-width: calc(100vw - 300px);
        z-index: 50;
    }
    
    .game-main-area {
        padding: 220px 20px 20px 20px;
    }
}

/* Large Desktop (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .menu-container {
        max-width: 1400px;
        gap: 60px;
    }

    .preview-card {
        width: 180px;
        height: 247px;
    }

    .scoreboard-panel {
        width: 240px;
        min-width: 220px;
    }
    
    .card { 
        width: 150px;
        height: 206px;
        margin-left: -20px;
    }
    
    .player-hand {
        min-height: 220px;
    }
    
    /* In local mode, position player 2 hand below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 180px;
        max-height: 200px;
        max-width: calc(100vw - 280px);
        z-index: 50;
    }
    
    .player-hand-top {
        top: 15px;
        max-height: 200px;
        max-width: calc(100vw - 280px);
        z-index: 50;
    }
    
    .game-main-area {
        padding: 220px 20px 20px 20px;
    }
}

/* Standard Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .game-title {
        font-size: 3.5rem;
    }

    .scoreboard-panel {
        width: 220px;
        min-width: 200px;
    }

    .card {
        width: 140px;
        height: 193px;
        margin-left: -20px;
    }
    
    .player-hand {
        min-height: 210px;
    }
    
    /* In local mode, position player 2 hand below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 180px;
        max-height: 200px;
        max-width: calc(100vw - 260px);
        z-index: 50;
    }
    
    .player-hand-top {
        top: 15px;
        max-height: 200px;
        max-width: calc(100vw - 260px);
        z-index: 50;
    }

    .game-main-area {
        padding: 220px 20px 20px 20px;
    }
}

/* Small Desktop / Large Tablet (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .menu-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 30px;
    }

    .game-tagline {
        font-size: 1.2rem;
    }

    .card-fan-container {
        height: 240px;
        max-width: 450px;
    }

    .preview-card {
        width: 150px;
        height: 206px;
    }

    .mode-button {
        padding: 22px 28px;
    }

    .mode-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .mode-info h3 {
        font-size: 1.6rem;
    }

    .scoreboard-panel {
        width: 200px;
        min-width: 180px;
        padding: 20px;
    }

    .card {
        width: 130px;
        height: 179px;
        margin-left: -18px;
    }
    
    .player-hand {
        min-height: 200px;
    }

    /* In local mode, position player 2 hand below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 180px;
        right: 20px;
        left: 20px;
        max-height: 240px;
        max-width: calc(100vw - 260px);
    }
    
    .player-hand-top {
        top: 15px;
        right: 220px;
        max-height: 240px;
        max-width: calc(100vw - 260px);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .menu-container {
        gap: 30px;
        padding: 20px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .game-tagline {
        font-size: 1rem;
    }

    .card-fan-container {
        height: 150px;
        max-width: 300px;
    }

    .preview-card {
        width: 90px;
        height: 124px;
    }

    .preview-card.card-1 {
        transform: translateX(-80px) rotate(-18deg);
    }

    .preview-card.card-3 {
        transform: translateX(80px) rotate(18deg);
    }

    .mode-button {
        padding: 20px 25px;
        gap: 15px;
    }

    .mode-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .mode-info h3 {
        font-size: 1.4rem;
    }

    .mode-info p {
        font-size: 0.9rem;
    }

    .game-main-area {
        flex-direction: column;
        padding: 140px 15px 15px 15px;
    }
    
    .player-hand-top {
        top: 5px;
        max-height: 200px;
    }

    .scoreboard-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        z-index: 100;
        padding: 20px;
    }

    .scoreboard-content {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 12px;
    }
    
    .score-badge {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .score-badge span {
        font-size: 1.8rem;
    }
    
    #turn-indicator {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .card {
        width: 110px;
        height: 151px;
        margin-left: -15px;
    }
    
    .player-hand {
        min-height: 170px;
    }

    .player-hand-top {
        top: 10px;
        right: 15px;
        left: 15px;
        max-height: 200px;
        max-width: calc(100vw - 30px);
        top: 70px;
    }
}

/* Mobile Landscape (481px - 767px landscape) */
@media (min-width: 481px) and (max-width: 767px) and (orientation: landscape) {
    .menu-container {
        gap: 20px;
        padding: 15px;
    }

    .logo-wrapper {
        margin-bottom: 10px;
    }

    .main-logo {
        max-width: 300px;
    }

    .game-title {
        font-size: 2rem;
    }

    .game-tagline {
        font-size: 0.9rem;
    }

    .card-fan-container {
        height: 100px;
        max-width: 250px;
    }

    .preview-card {
        width: 60px;
        height: 82px;
    }

    .preview-card.card-1 {
        transform: translateX(-60px) rotate(-15deg);
    }

    .preview-card.card-3 {
        transform: translateX(60px) rotate(15deg);
    }

    .modes-section {
        gap: 12px;
    }

    .mode-button {
        padding: 15px 20px;
        gap: 12px;
    }

    .mode-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .mode-info h3 {
        font-size: 1.2rem;
    }

    .mode-info p {
        font-size: 0.8rem;
    }

    .mode-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .game-main-area {
        flex-direction: row;
        padding: 60px 10px 10px 10px;
        gap: 10px;
    }

    .scoreboard-panel {
        width: 140px;
        min-width: 120px;
        padding: 12px;
        gap: 12px;
    }

    .score-badge {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .score-badge span {
        font-size: 1.2rem;
    }

    #turn-indicator {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .card {
        width: 95px;
        height: 131px;
        margin-left: -12px;
    }
    
    .player-hand {
        min-height: 150px;
    }

    .player-hand-top {
        top: 10px;
        right: 150px;
        padding: 10px;
        max-height: 180px;
        max-width: calc(100vw - 180px);
    }
}

/* Mobile Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .menu-container {
        gap: 25px;
        padding: 15px;
    }

    .main-logo {
        max-width: 350px;
    }

    .game-title {
        font-size: 2.2rem;
    }

    .game-tagline {
        font-size: 0.95rem;
    }

    .card-fan-container {
        height: 120px;
        max-width: 280px;
    }

    .preview-card {
        width: 70px;
        height: 96px;
    }

    .preview-card.card-1 {
        transform: translateX(-70px) rotate(-16deg);
    }

    .preview-card.card-3 {
        transform: translateX(70px) rotate(16deg);
    }

    .mode-button {
        padding: 18px 22px;
        gap: 15px;
    }

    .mode-icon {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }

    .mode-info h3 {
        font-size: 1.3rem;
    }

    .mode-info p {
        font-size: 0.85rem;
    }

    /* Adjust padding in computer mode since scoreboard is fixed at top */
    #game-view:not(:has(#player2-hand.player-hand-top)) .game-main-area {
        flex-direction: column;
        padding: 120px 10px 10px 10px;
    }
    
    .game-main-area {
        flex-direction: column;
        padding: 140px 10px 10px 10px;
    }
    
    .player-hand-top {
        top: 10px;
        max-height: 200px;
        max-width: calc(100vw - 20px);
    }

    /* Scoreboard at top on mobile */
    .scoreboard-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        z-index: 100;
        padding: 20px;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 170px;
        margin-bottom: 50px;
    }
    
    .scoreboard-content {
        flex-direction: row;
        width: 100%;
        gap: 12px;
        justify-content: space-around;
    }

    .score-badge {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .score-badge span {
        font-size: 1.8rem;
    }

    #turn-indicator {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    /* Adjust game area padding for top scoreboard */
    .game-main-area {
        padding-top: 180px;
    }
    
    .game-board-container {
        padding: 10px;
    }

    .card {
        width: 100px;
        height: 138px;
        margin-left: -12px;
    }
    
    .player-hand {
        min-height: 160px;
    }
    
    .player-hand-top {
        top: 10px;
        max-height: 200px;
        max-width: calc(100vw - 20px);
    }

    /* In local mode, adjust player 2 hand position below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        right: 10px;
        left: 10px;
        top: 170px;
        margin-bottom: 50px;
    }
    
    .player-hand-top {
        right: 10px;
        left: 10px;
        top: 140px;
    }
}

/* Small Mobile (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    #menu-view {
        padding: 10px;
    }

    .menu-container {
        gap: 20px;
        padding: 10px;
    }

    .main-logo {
        max-width: 280px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-tagline {
        font-size: 0.85rem;
    }

    .card-fan-container {
        height: 100px;
        max-width: 240px;
    }

    .preview-card {
        width: 60px;
        height: 82px;
    }

    .preview-card.card-1 {
        transform: translateX(-60px) rotate(-14deg);
    }

    .preview-card.card-3 {
        transform: translateX(60px) rotate(14deg);
    }

    .modes-section {
        gap: 12px;
    }

    .mode-button {
        padding: 15px 18px;
        gap: 12px;
        border-radius: 15px;
    }

    .mode-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        border-radius: 12px;
    }

    .mode-info h3 {
        font-size: 1.1rem;
    }

    .mode-info p {
        font-size: 0.75rem;
    }

    .mode-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .nav-btn {
        top: 10px;
        left: 10px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    /* Adjust padding in computer mode since scoreboard is fixed at top */
    #game-view:not(:has(#player2-hand.player-hand-top)) .game-main-area {
        flex-direction: column;
        padding: 110px 8px 8px 8px;
        gap: 10px;
    }
    
    .game-main-area {
        flex-direction: column;
        padding: 130px 8px 8px 8px;
        gap: 10px;
    }

    /* In local mode, position scoreboard above player 2 cards on small mobile */
    #game-view:has(#player2-hand.player-hand-top) .scoreboard-panel {
        width: 100%;
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        flex-direction: row;
        padding: 10px;
        gap: 8px;
        border-radius: 0 0 18px 18px;
        border-left: none;
        border-right: none;
        border-top: none;
        z-index: 60;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 170px;
        margin-bottom: 50px;
    }
    
    /* Scoreboard in computer mode - fixed at top */
    /* Scoreboard at top on mobile */
    .scoreboard-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 500px;
        z-index: 100;
        padding: 18px;
    }

    .scoreboard-content {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        justify-content: space-around;
    }

    .score-badge {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .score-badge span {
        font-size: 1.6rem;
    }

    #turn-indicator {
        flex: 1;
        min-width: 0;
        padding: 10px 14px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    /* Adjust game area padding for top scoreboard */
    .game-main-area {
        padding-top: 170px;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 170px;
        margin-bottom: 50px;
    }

    .card {
        width: 90px;
        height: 124px;
        margin-left: -10px;
    }
    
    .player-hand {
        min-height: 150px;
    }
    
    .player-hand-top {
    top: 10px;
        max-height: 180px;
        max-width: calc(100vw - 20px);
    }

    .player-hand-section {
        padding: 15px 10px;
    }

    .player-hand {
        min-height: 110px;
    }

    /* In local mode, adjust player 2 hand position below scoreboard */
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        right: 8px;
        left: 8px;
        top: 170px;
        margin-bottom: 50px;
        padding: 10px;
    }
    
    .player-hand-top {
        right: 8px;
        left: 8px;
        top: 130px;
        padding: 10px;
    }
    
    .game-board-container {
        padding: 8px;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 1.8rem;
    }

    .modal-score {
        font-size: 1.2rem;
    }

    .modal-btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Very Small Mobile (< 320px) */
@media (max-width: 319px) {
    .main-logo {
        max-width: 220px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .game-tagline {
        font-size: 0.75rem;
    }

    .card-fan-container {
        height: 80px;
        max-width: 200px;
    }

    .preview-card {
        width: 50px;
        height: 69px;
    }

    .preview-card.card-1 {
        transform: translateX(-50px) rotate(-12deg);
    }

    .preview-card.card-3 {
        transform: translateX(50px) rotate(12deg);
    }

    /* Adjust padding in computer mode since scoreboard is fixed at top */
    #game-view:not(:has(#player2-hand.player-hand-top)) .game-main-area {
        flex-direction: column;
        padding: 100px 6px 6px 6px;
    }
    
    .game-main-area {
        flex-direction: column;
        padding: 120px 6px 6px 6px;
    }

    /* In local mode, position scoreboard above player 2 cards on very small mobile */
    #game-view:has(#player2-hand.player-hand-top) .scoreboard-panel {
        width: 100%;
        position: absolute;
        top: 10px;
        left: 0;
        right: 0;
        flex-direction: row;
        padding: 8px;
        gap: 6px;
        border-radius: 0 0 15px 15px;
        border-left: none;
        border-right: none;
        border-top: none;
        z-index: 60;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 170px;
        margin-bottom: 50px;
    }
    
    /* Scoreboard in computer mode - fixed at top */
    #game-view:not(:has(#player2-hand.player-hand-top)) .game-main-area .scoreboard-panel {
        width: 100%;
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        flex-direction: row;
        padding: 8px;
        gap: 6px;
        border-radius: 0 0 15px 15px;
        border-left: none;
        border-right: none;
        border-top: none;
        z-index: 60;
        transform: none;
    }
    
    /* Scoreboard at top on very small mobile */
    .scoreboard-panel {
        position: fixed;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 450px;
        z-index: 100;
        padding: 16px;
    }

    .scoreboard-content {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        justify-content: space-around;
    }

    .score-badge {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .score-badge span {
        font-size: 1.4rem;
    }

    #turn-indicator {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 0.7rem;
        border-radius: 18px;
    }
    
    /* Adjust game area padding for top scoreboard */
    .game-main-area {
        padding-top: 160px;
    }
    
    #game-view:has(#player2-hand.player-hand-top) .player-hand-top {
        top: 170px;
        margin-bottom: 50px;
    }

    .player-hand-top {
        right: 6px;
        left: 6px;
        top: 120px;
        padding: 8px;
    }

    .mode-button {
        padding: 12px 15px;
        gap: 10px;
    }

    .mode-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .mode-info h3 {
        font-size: 1rem;
    }

    .mode-info p {
        font-size: 0.7rem;
    }

    .card {
        width: 80px;
        height: 110px;
        margin-left: -8px;
    }
    
    .player-hand {
        min-height: 140px;
    }
    
    .player-hand-top {
        top: 5px;
        max-height: 160px;
    }
}

/* Landscape Mobile Menu Optimization */
@media (max-width: 900px) and (orientation: landscape) {
    #menu-view {
        padding: 10px;
    }

    .menu-container {
        flex-direction: row;
        max-width: 100%;
        gap: 20px;
    align-items: center;
    }

    .logo-section {
        flex: 1;
        max-width: 300px;
    }

    .main-logo {
        max-width: 200px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-tagline {
        font-size: 0.8rem;
    }

    .card-preview-section {
        display: none;
    }

    .modes-section {
        flex: 1;
        max-width: 400px;
    }

    .mode-button {
        padding: 12px 18px;
    }

    .mode-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .mode-info h3 {
        font-size: 1rem;
    }

    .mode-info p {
        font-size: 0.75rem;
    }
}

/* ============================================
   INDEX PAGE - REMOVE ANIMATED BACKGROUNDS, ADD BLUE BACKGROUND
   ============================================ */

/* Hide animated logo pattern backgrounds on index page */
body.index-page::before,
body.index-page::after {
    display: none !important;
}

/* Apply blue game background to index page */
body.index-page {
    background: radial-gradient(circle at center, #0ABEFF 0%, #016DCB 100%) !important;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

