:root {
    --primary-color: #ffd700;
    /* Gold */
    --secondary-color: #4b6e2e;
    /* Jungle Green */
    --accent-color: #8b4513;
    /* Wood Brown */
    --bg-dark: #1a1a0d;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 215, 0, 0.3);
    --text-color: #ffffff;
    --font-heading: 'Carter One', cursive;
    /* Cartoonish/Jungle font */
    --font-heading: 'Carter One', cursive;
    /* Cartoonish/Jungle font */
    --font-body: 'Rajdhani', sans-serif;
    --card-bg: #ffe0b2;
    --card-back: linear-gradient(135deg, #FF6F00, #FFD54F);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* iOS Safari: disables callout like copy/paste */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Dynamic Background Image - REMOVED from full screen */
.background-animation {
    display: none;
}


@keyframes bg-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }

    /* Subtle zoom */
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1a0d;
    /* Dark Green */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.loader-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.loader-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000;
}

.progress-bar {
    width: 100%;
    height: 15px;
    background: #2e1a0b;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff8c00, #ffd700);
    box-shadow: 0 0 5px #ffd700;
    transition: width 0.1s linear;
}

.loading-text {
    font-family: var(--font-body);
    color: #aebfab;
    font-size: 1rem;
    font-weight: bold;
}

/* Menu Container */
.menu-container {
    /* Background Image REMOVED from here to allow separate blurring */
    /* background: url('assets/bg.png') no-repeat center center; */
    /* background-size: 100% 100%; */

    text-align: center;
    position: relative;

    /* Full Screen Sizing */
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100%;

    overflow: hidden;
    /* NO SCROLLBARS */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center the wrapper vertically */
    /* Center content vertically */
    gap: 0;
    /* We will use margins/padding for control */
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg-mobile.png') no-repeat center center;
    background-size: cover;
    z-index: 0;
    /* Behind content */
}

/* Landscape Background */
@media (orientation: landscape) {
    .menu-bg {
        background: url('assets/bg.png') no-repeat center center;
        background-size: cover;
    }
}

/* Blur State Classes */
.settings-active .menu-bg,
.settings-active .menu-center-wrapper,
.settings-active #btn-settings {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Wrapper to lock Logo and Button together */
.menu-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: auto;
    /* Shift entire group down 20px */
    z-index: 10;
    /* Above background */
    position: relative;
}

.menu-container.hidden {
    display: none;
}

/* Logo Styling */
.logo-container {
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    /* Prevent logo from shrinking/squashing */
    z-index: 10;
    /* Optional: Give it a debug border if you want to see the "frame" */
    /* border: 1px dashed red; */
}

.game-logo {
    max-width: 90%;
    height: auto;
    max-height: 290px;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.8));
    animation: float-logo 4s ease-in-out infinite;
    margin-top: 45px;
}

.blurred {
    filter: blur(5px);
    pointer-events: none;
    /* Prevent clicking blurred elements */
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Explorer Badge (Name Display) */
.explorer-badge {
    background: #fdf5e6;
    /* Old Lace / Parchment */
    color: #3e2723;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    border: 2px solid #8b4513;
    margin: 10px auto 20px auto;
    /* Increased bottom margin */
    cursor: pointer;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 20;
    max-width: 90%;
}

#player-name-text {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    /* Aligns nicely with icon */
}

.explorer-badge:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.explorer-badge .edit-icon {
    font-size: 0.9rem;
    opacity: 0.5;
}

.explorer-badge:hover .edit-icon {
    opacity: 1;
    color: #d35400;
}

/* Score Board Box */
.score-board {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    /* Rounded corners */
    padding: 0.5rem 2rem;
    /* Reduced vertical padding */
    margin: 0 auto 20px auto;
    /* Removed negative top margin */
    /* Positioning */
    text-align: center;
    width: auto;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.score-item {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin: 5px 0;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.score-item span {
    color: var(--primary-color);
    margin-left: 5px;
}

/* Image Buttons */
.menu-btn-image {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s;
    padding: 0;
    display: block;
    margin: -30px auto 0 auto;
    /* Shift UP 30px total */
    z-index: 50;
    /* Top Layer */
    position: relative;
    /* Ensure z-index works */
}

.menu-btn-image img {
    display: block;
    width: 190px;
    /* Increased ~25% from 150px */
    height: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.menu-btn-image:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.menu-btn-image:active {
    transform: scale(0.95);
}

.menu-btn-image-small {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s;
    padding: 0;
    display: block;

    /* Absolute Positioning Top-Left of Container */
    position: absolute;
    top: 5px;
    left: 5px;
    margin: 0;

    z-index: 60;
    /* Higher than Play button (50) */
}

.menu-btn-image-small img {
    display: block;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.menu-btn-image-small:hover {
    transform: rotate(45deg) scale(1.1);
    /* Rotate effect for gear */
    filter: brightness(1.2);
}

.menu-btn-image-small:active {
    transform: rotate(45deg) scale(0.95);
}

/* Footer */
.game-version {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ccc;
    text-shadow: 1px 1px 2px #000;
}

/* Overlays/Modals */
.hidden {
    display: none !important;
}

#overlay,
#username-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
}

/* Settings Modal - Global */
#settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    /* Higher than game z-indexes */
    backdrop-filter: blur(5px);
}

/* Specific styling for the Settings Modal Box to be smaller */
#settings-modal-overlay .modal {
    max-width: 300px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4e342e, #3e2723);
    /* Slightly darker/different to distinguish */
}

.modal {
    background: linear-gradient(135deg, #3e2723, #5d4037);
    border: 3px solid var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px #000;
    color: #fff;
}

.modal h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px #000;
}

/* Settings Items */
.setting-item {
    margin: 1.5rem 0;
    text-align: left;
    width: 100%;
}

.setting-item label {
    display: block;
    font-family: var(--font-heading);
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-shadow: 1px 1px 1px #000;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    /* Standard property */
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: url('assets/btn-settings.png') no-repeat center center;
    /* Use gear as thumb? or just gold */
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border: 2px solid #fff;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 5px #000;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #3e2723;
    border-radius: 5px;
    border: 1px solid #8b4513;
}

input[type=range]:focus {
    outline: none;
}

/* Username Input specific */
#username-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    color: #333;
    font-family: var(--font-body);
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    font-weight: bold;
}

#username-input:focus {
    box-shadow: 0 0 10px var(--primary-color);
    border-color: var(--primary-color);
}

.menu-btn-confirm {
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    border: 2px solid #8b4500;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #3e2723;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 0 #8b4500;
    transition: all 0.1s;
}

.menu-btn-confirm:hover {
    background: linear-gradient(to bottom, #ffe066, #ffac33);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8b4500;
}

.menu-btn-confirm:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8b4500;
}

.close-btn {
    background: linear-gradient(to bottom, #d32f2f, #b71c1c);
    /* Red Gradient Variant */
    border: 2px solid #5d0000;
    padding: 0.8rem 2rem;
    color: white;
    font-family: var(--font-heading);
    font-weight: normal;
    /* Font heading is bold enough */
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 1rem auto;
    /* Center button */
    width: 50%;
    /* Half width */
    box-shadow: 0 4px 0 #5d0000;
    transition: all 0.1s;
    text-shadow: 1px 1px 2px #000;
}

.close-btn:hover {
    background: linear-gradient(to bottom, #e53935, #c62828);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #5d0000;
}

.close-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5d0000;
}

/* Media Queries for Responsiveness */

/* Mobile */
@media (max-width: 768px) {
    .menu-container {
        width: 100%;
        padding: 0;
    }

    .game-logo {
        max-height: 280px;
        /* Increased from 180px to be closer to desktop */
    }

    .menu-btn-image img {
        width: 170px;
        /* Slight adjustment for mobile */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .game-logo {
        max-height: 220px;
        /* Increased from 140px */
    }

    .menu-btn-image img {
        width: 150px;
    }

    .modal {
        padding: 1.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .menu-container {
        flex-direction: row;
        gap: 2rem;
        max-width: 800px;
        align-items: center;
        justify-content: center;
        height: auto;
    }

    .logo-container {
        width: 50%;
        margin-bottom: 0;
    }

    .main-menu {
        width: 50%;
    }
}

/* === GAME INTERFACE === */
/* #game-container inherits .menu-container styles now */

/* Remove standard padding for game container to allow full width header */
#game-container {
    padding-top: 3rem;
    /* Restore padding so content isn't hidden, header will pull up */
    justify-content: flex-start;
    overflow: hidden;
    /* Hide header overflow */
}

/* Game Header Block */
/* Game Header Block */
.game-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    display: flex;
    justify-content: center; /* Center items on desktop */
    align-items: center;
    padding: 0 1rem;
    gap: 4rem; /* Wide gap for neat desktop layout */

    background: linear-gradient(to bottom, rgba(93, 64, 55, 0.7), rgba(62, 39, 35, 0.7));
    backdrop-filter: blur(8px);
    /* Wood Theme */
    border-bottom: 4px solid rgba(45, 27, 22, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);

    z-index: 20;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Mobile Header Override */
@media (max-width: 768px) {
    .game-nav {
        justify-content: space-between;
        gap: 5px;
        padding: 0 10px;
    }
}

/* Responsive adjustments for smaller header elements */
@media (max-width: 360px) {

    .level-display,
    .timer-display,
    .score-display-small {
        font-size: 0.9rem !important;
        /* Shrink text */
        padding: 4px 8px !important;
        /* Shrink padding */
        min-width: auto !important;
        /* Allow shrinking width */
    }

    .nav-btn img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Spacer for Absolute Header & Centering */
#game-container {
    padding-top: 80px !important;
    /* Match header height exactly */
    display: flex;
    /* Use flexbox */
    flex-direction: column;
    justify-content: center;
    /* Center content Vertically */
    align-items: center;
    /* Center content Horizontally */
}

/* Wooden Beam Divider Removed */

.nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s;
}

.nav-btn img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.nav-btn:hover {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

.nav-btn:active {
    transform: scale(0.9);
}

.level-display,
.timer-display,
.score-display-small {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ffd700;
    text-shadow: 1px 1px 1px #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.level-display {
    color: #ffd700;
    /* Gold for Level */
    min-width: 60px;
    text-align: center;
}

.stars-display {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #ffd700;
}

.star-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.dimmed {
    opacity: 0.8;
    /* Higher opacity to see shape */
    filter: grayscale(100%) brightness(0.7);
    /* Standard gray */
}

/* Power-ups Section */
/* Power-ups Section */
.power-ups {
    display: flex;
    justify-content: center;
    gap: 15px;

    position: absolute;
    /* Stick to bottom */
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.power-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom, #FF9800, #F57C00);
    border: 2px solid #E65100;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* For badge */
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

/* Lucky Draw Styles */
.draw-wheel {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #ffd700;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.draw-item {
    font-size: 3rem;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.drawing-anim {
    animation: bounce 0.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.power-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2);
}

.power-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.power-btn:disabled {
    filter: grayscale(100%);
    cursor: default;
    opacity: 0.6;
}

.modal-stars {
    font-size: 3.5rem;
    /* Slightly smaller than 4rem to fit better */
    margin: 10px 0;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* Stagger stars for arc effect: Center one higher, sides lower */
.modal-stars span:nth-child(1),
.modal-stars span:nth-child(3) {
    transform: translateY(4px);
    /* Lower sides by 4px */
    font-size: 3rem;
    /* Make side stars slightly smaller too? Optional, keeping scale */
}

.modal-stars span:nth-child(2) {
    transform: translateY(-4px);
    /* Raise center */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.timer-display {
    min-width: 80px;
    text-align: center;
}

/* Modal Overlays (Reuse styles) */
#pause-modal-overlay,
#level-complete-modal,
#game-over-modal,
#lucky-draw-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 20px;
    backdrop-filter: blur(5px);

    /* Center Fix matching Game Container */
    padding-top: 80px;
    padding-bottom: 70px;
    /* Offset for PowerUp buttons to be perfect center of grid? Or just 0. Let's try balanced first.*/
    /* Actually simple padding-top 80px shifts center down by 40px, but effective space starts at 80. */
}

#pause-modal-overlay .modal,
#level-complete-modal .modal,
#game-over-modal .modal,
#lucky-draw-modal .modal {
    max-width: 300px;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4e342e, #3e2723);
}

/* Match Close button width to Resume/Confirm button in these specific modals */
#pause-modal-overlay .close-btn,
#level-complete-modal .close-btn,
#game-over-modal .close-btn,
#lucky-draw-modal .close-btn {
    width: 100%;
}

/* Card Grid - 4x4 Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    aspect-ratio: 1;
    z-index: 5;
    /* Limit grid size to not overflow */
    max-width: 400px;
}

/* Card Styling */
.memory-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    aspect-ratio: 1;
    position: relative;
    transition: transform 0.2s ease;
    /* Smooth hover transition */
}

/* Hover Effect for Card */
.memory-card:hover {
    transform: scale(1.05);
    /* Slight zoom */
    filter: brightness(1.1);
    /* Brighter */
    z-index: 10;
    /* Pop above others */
}

/* Remove hover effect if already matched or flipped to avoid confusion */
.memory-card.flipped:hover,
.memory-card.matched:hover {
    transform: none;
    filter: none;
    z-index: auto;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    /* Emoji size */
    border: 2px solid #3e2723;
}

.memory-card-front {
    background-color: #f0f0f0;
    color: #333;
    transform: rotateY(180deg);
    overflow: hidden;
}

.memory-card-back {
    background: linear-gradient(135deg, #FF6F00, #FFD54F);
    color: white;
}

.memory-card-back::after {
    content: '?';
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(62, 39, 35, 0.4);
}

/* Matched State */
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card.matched .memory-card-front {
    background-color: #a5d6a7;
    /* Green tint */
    /* Green tint */
    border-color: #2e7d32;
    animation: match-pop 0.5s ease-out forwards;
}

@keyframes match-pop {
    0% {
        transform: rotateY(180deg) scale(1);
    }

    50% {
        transform: rotateY(180deg) scale(1.15);
    }

    100% {
        transform: rotateY(180deg) scale(1);
    }
}