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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===== BACKGROUND GAME ===== */
.bg-game {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b0764 50%, #581c87 100%);
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.bg-game::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

.bg-game::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent);
    background-size: 200% 200%;
    animation: sparkle 3s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* ===== CHARACTERS===== */
.character-container-left {
    position: fixed;
    left: -34%;
    bottom: 0;
    width: 150%;
    max-width: 2000px;
    height: 115vh;
    z-index: 2;
    pointer-events: none;
    background-image: url('../images/character-left.png');
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.6));
    animation: floatLeft 6s ease-in-out infinite;
}

@keyframes floatLeft {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-15px) translateX(8px); }
}

.character-container-right {
    position: fixed;
    right: -30%;
    bottom: 0;
    width: 180%;
    max-width: 2000px;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background-image: url('../images/character-right.png');
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.6));
    animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(-8px); }
}

/* ===== CARD STYLES ===== */
.game-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.game-card h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #111827 !important;
}

/* ===== SHOP MODAL ===== */
.game-modal {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.95) 0%,
        rgba(168, 85, 247, 0.95) 50%,
        rgba(236, 72, 153, 0.95) 100%
    );
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    overflow: visible;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 800px;
    width: 90%;
    padding: clamp(24px, 4vw, 40px);
}

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

/* Gradient border animation */
.game-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        rgba(251, 191, 36, 0.5),
        rgba(139, 92, 246, 0.5),
        rgba(236, 72, 153, 0.5),
        rgba(251, 191, 36, 0.5)
    );
    background-size: 300% 300%;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.6;
    animation: gradientShift 4s ease infinite;
    filter: blur(10px);
}

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

/* Inner glow */
.game-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(251, 191, 36, 0.15),
        transparent 70%
    );
    border-radius: 24px;
    pointer-events: none;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(16px, 2.5vw, 24px);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.shop-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    text-align: center;
    text-shadow: 0 2px 20px rgba(251, 191, 36, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
}

.shop-description {
    font-size: clamp(13px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: clamp(14px, 2.5vw, 20px);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.points-display {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: clamp(10px, 2vw, 16px) clamp(16px, 3vw, 24px);
    margin-bottom: clamp(14px, 2.5vw, 24px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.points-display p {
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.points-display .points-value {
    color: #fbbf24;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
}

.guide-section {
    margin-bottom: clamp(16px, 2.5vw, 28px);
    position: relative;
    z-index: 2;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(12px, 2vw, 16px);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: #ff5722 !important;
    color: white !important;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: none;
}

.btn-primary::before {
    display: none !important;
}

.btn-primary:hover {
    background: #f4511e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

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

.btn-game {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    font-weight: 800;
    padding: clamp(14px, 2vw, 18px) clamp(40px, 6vw, 56px);
    border-radius: 50px;
    border: 3px solid #fff;
    cursor: pointer;
    font-size: clamp(18px, 2.5vw, 22px);
    transition: all 0.3s ease;
    box-shadow:
        0 6px 25px rgba(251, 191, 36, 0.7),
        0 0 0 4px rgba(251, 191, 36, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-game:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow:
        0 10px 35px rgba(251, 191, 36, 0.9),
        0 0 0 5px rgba(251, 191, 36, 0.3);
}

.btn-game:active {
    transform: scale(1.03);
}

.btn-game:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-game:disabled:hover {
    transform: none !important;
    box-shadow:
        0 6px 25px rgba(251, 191, 36, 0.7),
        0 0 0 4px rgba(251, 191, 36, 0.2);
}

/* ===== GIFT CODE BUTTON ===== */
.gift-code-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    font-weight: 800;
    padding: clamp(14px, 2.5vw, 20px) clamp(18px, 3vw, 24px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: clamp(15px, 2vw, 18px);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

/* Gradient overlay on hover */
.gift-code-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.6) 0%,
        rgba(236, 72, 153, 0.6) 50%,
        rgba(249, 115, 22, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 14px;
}

/* Shine effect */
.gift-code-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.gift-code-btn:hover::before {
    opacity: 1;
}

.gift-code-btn:hover::after {
    left: 100%;
}

.gift-code-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 28px rgba(168, 85, 247, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.gift-code-btn:active {
    transform: translateY(-2px) scale(1);
}

.gift-code-btn span {
    position: relative;
    z-index: 1;
    display: block;
}

.gift-code-btn .code-cost {
    font-size: clamp(11px, 1.5vw, 13px);
    opacity: 0.9;
    font-weight: 600;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== GUIDE BUTTON ===== */
.guide-btn {
    background: rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(15px);
    color: white;
    font-weight: 800;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 36px);
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: clamp(14px, 2vw, 16px);
    transition: all 0.35s ease;
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.guide-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(99, 102, 241, 0.6));
    opacity: 0;
    transition: opacity 0.35s;
    border-radius: 12px;
}

.guide-btn:hover::before {
    opacity: 1;
}

.guide-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 6px 24px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.guide-btn span {
    position: relative;
    z-index: 1;
    font-size: 13px
}

/* ===== BACK BUTTON  ===== */
.back-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2.5vw, 18px);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-size: clamp(13px, 2vw, 15px);
    transition: all 0.3s ease;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateX(-4px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== GIFT CARD ===== */
.gift-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.98) 0%, rgba(245, 158, 11, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 5px solid #fbbf24;
    border-radius: 28px;
    padding: clamp(24px, 5vw, 48px);
    box-shadow:
        0 0 70px rgba(251, 191, 36, 0.8),
        0 30px 80px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.5s ease;
    max-width: 90%;
    margin: 0 auto;
}

.gift-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 28px;
    z-index: -1;
    animation: borderGlow 2s linear infinite;
}

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

/* ===== INPUT STYLES ===== */
input[type="text"],
input[type="password"] {
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    min-height: 56px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    color: #374151;
}

.show-code {
    padding: 0px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    min-height: 30px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    color: #374151;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
    font-size: 15px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
    background: white;
}

/* ===== TEXT OVERLAY ===== */
.text-overlay {
    position: relative;
    z-index: 2;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(30, 58, 138, 0.3);
}

/* ===== INFO BOX ===== */
.info-box-overlay {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 0 3px rgba(251, 191, 36, 0.1);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.5s ease;
}

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

/* ===== LOGO COLLABORATION ===== */
.collab-logo-outer {
    position: relative;
    z-index: 120;
    margin-bottom: 20px;
    display: inline-block;
    animation: fadeInDown 0.8s ease;
}

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

.collab-logo-outer img {
    height: auto !important;
    width: clamp(280px, 70vw, 800px) !important;
    max-width: 90vw;
    display: block;
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.5));
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

#logo-funtap {
    height: 5.5rem;
}

#logo-ml {
    height: 4.5rem;
}

#logo-mobifone {
    height: 4.5rem;
}

header img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.5));
}

header .flex {
    padding: 0.75rem 1rem;
}

/* ===== UTILITY ===== */
.hidden {
    display: none;
}

a {
    transition: all 0.3s ease;
}
.text-blue-600 {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    margin-top: -10px;
}
a:hover {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ===== GAME CONTAINER ===== */
.game-container {
    position: relative;
    max-width: 440px;
    width: 88%;
    padding: 20px 18px;
    margin: 0 auto;
    background-image: url('../images/Asset4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 100;
    border-radius: 18px;
    border: 3px solid rgba(251, 191, 36, 0.6);
    box-shadow:
        0 0 50px rgba(251, 191, 36, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: none !important;
    animation: fadeInUp 0.6s ease;
}

.game-container::before {
    display: none !important;
}

.game-container > * {
    position: relative;
    z-index: 2;
}

.shop-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 101;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.game-title {
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 10px;
    text-shadow:
        0 0 30px rgba(0, 0, 0, 1),
        0 0 20px rgba(251, 191, 36, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.8),
        3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.game-subtitle {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

.game-info-box {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(251, 191, 36, 0.4);
}

.info-text {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

.info-text strong {
    color: #1f2937;
    font-weight: 700;
}

/* ===== CARD BOARD  ===== */
.card-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px !important;
    justify-items: center;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 300px;
}

.start-game-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e40af;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.start-game-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.start-game-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6);
}

/* ===== MEMORY CARD  ===== */
.memory-card {
    width: 90px;
    height: 90px;
    background: transparent;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.4),
        0 0 0 2.5px rgba(251, 191, 36, 0.3);
    border: 2.5px solid #fff;
}

.card-front {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-color: #fbbf24;
    transform: rotateY(180deg);
}

.memory-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.memory-card.matched .card-face {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    animation: matchPulse 0.6s ease;
}

@keyframes matchPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 30px rgba(34, 197, 94, 0.8); }
}

/* ===== PARTICLES ===== */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particleFall 3s ease-out forwards;
}

@keyframes particleFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== FOOTER ===== */
.game-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    margin-top: auto;
    z-index: 3;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #fbbf24;
}

.footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    line-height: 1.5;
}

.footer-info strong {
    color: #fbbf24;
    font-weight: 700;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

#loginScreen {
    padding-top: 120px;
    padding-bottom: 40px;
}

#gameScreen .container.mx-auto.px-4.py-8 {
    padding-top: 120px !important;
    padding-bottom: 3rem !important;
}

#gameScreen .collab-logo-outer {
    margin-bottom: 24px !important;
}

/* SHOP SCREEN */
#shopScreen {
    padding-top: 0;
}

#shopScreen > div.flex-1 {
    padding-top: 120px !important;
    padding-bottom: 3rem;
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 1400px) {
    .character-container-left,
    .character-container-right {
        width: 42%;
        max-width: 650px;
    }
}

@media (max-width: 1280px) {
    .character-container-left,
    .character-container-right {
        width: 38%;
        max-width: 550px;
    }

    .game-modal {
        max-width: 95%;
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #loginScreen {
        padding-top: 110px;
    }

    #gameScreen .container.mx-auto.px-4.py-8 {
        padding-top: 110px !important;
    }

    .character-container-left,
    .character-container-right {
        width: 32%;
        max-width: 450px;
    }

    #shopScreen > div.flex-1 {
        padding-top: 110px !important;
    }

    #logo-funtap {
        height: 4.5rem;
    }

    #logo-ml {
        height: 3.5rem;
    }

    #logo-mobifone {
        height: 3.5rem;
    }
}

@media (max-width: 768px) {
    #loginScreen {
        padding-top: 100px;
        padding-bottom: 30px;
    }

    #gameScreen .container.mx-auto.px-4.py-8 {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
    }

    #gameScreen .collab-logo-outer {
        margin-bottom: 20px !important;
    }

    #shopScreen > div.flex-1 {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
    }

    .character-container-left,
    .character-container-right {
        display: none;
    }

    .game-container {
        max-width: 92%;
        padding: 18px 16px;
    }

    .game-modal {
        max-width: 96%;
        border-width: 2px;
        padding: clamp(18px, 3vw, 24px);
    }

    #logo-funtap {
        height: 3.5rem;
    }

    #logo-ml {
        height: 2.8rem;
    }

    #logo-mobifone {
        height: 2.8rem;
    }

    header .flex {
        gap: 1rem;
        padding: 0.5rem;
    }

    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .back-btn {
        align-self: flex-start;
    }

    .shop-title {
        order: -1;
        margin-bottom: 12px;
    }

    .gift-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-btn {
        width: 100%;
        justify-content: center;
    }

    .game-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .game-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .game-info-box {
        padding: 10px 14px;
        margin-bottom: 12px;
    }

    .info-text {
        font-size: 14px;
    }

    .card-board {
        gap: 8px;
        max-width: 100%;
        min-height: 250px;
    }

    .memory-card {
        width: 75px;
        height: 75px;
    }

    .card-face {
        font-size: 28px;
        border-width: 2px;
    }

    .start-game-btn {
        padding: 11px 36px;
        font-size: 15px;
    }

    .shop-btn {
        top: 10px;
        right: 10px;
        padding: 7px 16px;
        font-size: 12px;
    }

    .game-card {
        padding: 20px !important;
    }

    .gift-card {
        max-width: 95%;
        padding: 20px;
        border-width: 3px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 14px 18px;
        font-size: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-info p {
        font-size: 12px;
        margin-bottom: 3px;
    }

    .game-footer {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .game-footer .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    #loginScreen {
        padding-top: 90px;
    }

    #gameScreen .container.mx-auto.px-4.py-8 {
        padding-top: 90px !important;
        padding-bottom: 1.5rem !important;
    }

    #shopScreen > div.flex-1 {
        padding-top: 90px !important;
        padding-bottom: 1.5rem !important;
    }

    .game-container {
        max-width: 94%;
        padding: 16px 14px;
    }

    .game-modal {
        max-width: 98%;
        padding: 18px;
    }

    .gift-card {
        max-width: 96%;
        padding: 16px;
        border-width: 2px;
    }

    #logo-funtap {
        height: 3rem;
    }

    #logo-ml {
        height: 2.4rem;
    }

    #logo-mobifone {
        height: 2.4rem;
    }

    header .flex {
        gap: 0.5rem;
        padding: 0.4rem;
    }

    .footer-grid {
        gap: 16px;
    }

    .footer-logo img {
        height: 3rem !important;
    }

    .game-title {
        font-size: 18px;
    }

    .game-subtitle {
        font-size: 10px;
    }

    .card-board {
        gap: 7px;
        min-height: 220px;
    }

    .memory-card {
        width: 68px;
        height: 68px;
    }

    .card-face {
        font-size: 24px;
    }
}

@media (max-width: 380px) {
    .gift-code-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .shop-header {
        margin-bottom: 14px;
    }

    #logo-funtap {
        height: 2.5rem;
    }

    #logo-ml {
        height: 2rem;
    }

    #logo-mobifone {
        height: 2rem;
    }

    .footer-info p {
        font-size: 11px;
    }

    .footer-title {
        font-size: 13px;
    }
}

.minigame-logout {
    font-size: 16px;
    color: red;
    cursor: pointer;
}
