:root {
    --bg-red: #B71C1C;
    --bg-gradient: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    --card-bg: #FFF8E1;
    --primary-gold: #FFD700;
    --gold-shadow: #FFA000;
    --text-dark: #3E2723;
    --text-red: #D32F2F;
    --dice-white: #FFFFFF;
    --dice-shadow: #E0E0E0;
    --font-main: 'Noto Sans TC', sans-serif;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #D32F2F;
    /* Festive Red */
    color: #333;
    height: 100dvh;
    /* Dynamic Height for Mobile */
    overflow: hidden;
    /* Prevent body scroll, let wrapper scroll */
}

.app-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Main App Container */
.app-container {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 2px, transparent 2.5px),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 2px, transparent 2.5px);
    background-size: 40px 40px;
    display: flex;
    flex-direction: column;
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 0px #800000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-sub {
    font-size: 1.2rem;
    color: #FFCDD2;
    font-weight: 700;
    letter-spacing: 5px;
}

.screen {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 1.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screen.active {
    display: flex;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Setup Card */
.setup-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    border: 2px solid var(--primary-gold);
    margin: auto 0;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #FFF;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #FFE082;
}

.input-group input {
    border: none;
    font-size: 1.8rem;
    text-align: center;
    width: 60px;
    font-weight: 900;
    color: var(--text-red);
    background: transparent;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--text-red);
    color: #FFF;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 0 #800000;
}

.btn-icon:active {
    transform: translateY(3px);
    box-shadow: none;
}

.pot-preview {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pot-preview span:last-child {
    color: var(--text-red);
    font-size: 1.5rem;
}

/* Main Buttons */
.btn-primary,
.btn-action {
    background: linear-gradient(to bottom, #FFD700, #FFC107);
    color: #800000;
    border: 2px solid #FFF;
    padding: 1rem 3rem;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #B38F00, 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
    width: 100%;
}

.btn-text-small {
    /* Fancy "炫懶" UI */
    background: linear-gradient(135deg, #FFD700, #FFA000);
    /* Gold Gradient */
    border: 2px solid #FFF;
    color: #8B0000;
    /* Dark Red Text */
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    /* Ensure it's not hidden */
    display: inline-block;
    white-space: nowrap;
}

.btn-text-small:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6), inset 0 2px 5px rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #FFE57F, #FFC107);
}

.btn-text-small:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:active,
.btn-action:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #B38F00, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 2rem;
}

.btn-sub {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-msg {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Game Header */
/* Header Layout */
.header-buttons {
    display: flex;
    gap: 10px;
}

.header-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon-small {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.2rem;
    color: #FFF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.pot-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-red);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-red);
    width: 100px;
    text-align: left;
    outline: none;
}


.pot-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pot-label {
    color: #FFCDD2;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

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

.coin-icon {
    font-size: 2rem;
    animation: spin 3s infinite linear;
}

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

.pot-container h2 {
    font-size: 3rem;
    color: var(--primary-gold);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Game Board */
.game-header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: flex-start;
    /* Align to top */
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

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

.header-right {
    display: flex;
    justify-content: flex-end;
}

.pot-container {
    /* Ensure pot stays centered */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-board {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 12;
    /* Above header (10) so cup overlay shows */
}

/* Bowl Design */
.bowl-container {
    width: 100%;
    /* Allow it to fit content */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.dice-bowl {
    width: 90%;
    max-width: 320px;
    height: 240px;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;

    /* Desk Mat Image */
    background-image: url('desk_mat.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
}

/* Absolute Dice Positioning */
/* Pips (Dots) - Same as before */
.pip {
    background-color: #222;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin: auto;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* DIce Face Images (SVG) */
.die {
    width: 50px;
    height: 50px;
    position: absolute;
    border-radius: 12px;
    background-color: transparent !important;
    box-shadow: none !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Blank Die */
.die[data-value="0"] {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* Porcelain white */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

/* Map values to images */
.die[data-value="1"] {
    background-image: url('assets/die_face_1.svg');
}

.die[data-value="2"] {
    background-image: url('assets/die_face_2.svg');
}

.die[data-value="3"] {
    background-image: url('assets/die_face_3.svg');
}

.die[data-value="4"] {
    background-image: url('assets/die_face_4.svg');
}

.die[data-value="5"] {
    background-image: url('assets/die_face_5.svg');
}

.die[data-value="6"] {
    background-image: url('assets/die_face_6.svg');
}

/* Hide Pips */
.die .pip {
    display: none !important;
}

/* Bowl Shaking Animation */
.dice-bowl.shaking {
    animation: shakeBowl 0.5s infinite;
}

@keyframes shakeBowl {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-5px, 5px) rotate(-2deg);
    }

    50% {
        transform: translate(5px, -5px) rotate(2deg);
    }

    75% {
        transform: translate(-5px, -5px) rotate(-2deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(var(--rotation));
        opacity: 1;
    }
}

/* Layout Wrapper */
.game-layout-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Scrollable container */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    padding-bottom: 20px;
    /* Space at bottom for mobile */
}

.game-main-area {
    width: 100%;
    flex-shrink: 0;
    /* Prevent squeezing */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-side-area {
    width: 100%;
    padding: 1rem;
    flex-shrink: 0;
    /* Ensure log doesn't shrink to 0 */
}

/* Game Log Styling */
.game-log {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Mobile: Fixed Height or Max Height? */
    height: 200px;
    /* Fixed height for consistency on mobile to ensure visibility */
    display: flex;
    flex-direction: column;
}

.log-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-red);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.log-list {
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    /* Standard order, javascript inserts at top */
}

.log-entry {
    display: grid;
    grid-template-columns: 1fr 60px 80px;
    /* Name, Points, Amount */
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    gap: 10px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.placeholder {
    color: #999;
    text-align: center;
    display: block;
    margin-top: 10px;
}

.log-player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: #555;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Desktop Responsiveness - Sidebar Layout */
@media (min-width: 1024px) {

    /* Allow App Container to expand for sidebar */
    .app-container {
        max-width: 1200px;
        padding-bottom: 0;
    }

    .game-layout-wrapper {
        flex-direction: row;
        align-items: flex-start;
        padding-top: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .game-main-area {
        flex: 2;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }

    .game-side-area {
        flex: 1;
        height: 100%;
        padding: 0 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .game-log {
        max-height: 70vh;
        /* Taller log on desktop */
        height: 100%;
        margin-top: 0;
    }
}

.log-result {
    font-family: monospace;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    /* Center the points */
}

.log-amount {
    font-weight: 900;
    text-align: right;
}

/* Specific colors for amount */
.log-amount.positive {
    color: var(--text-red);
}

.log-amount.negative {
    color: #2E7D32;
}

.log-amount.win {
    color: #FFD700;
    text-shadow: 0 0 2px #000;
}



/* Turn Info Card */
.turn-info-card {
    background: var(--card-bg);
    padding: 0.8rem 2rem;
    border-radius: 15px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-gold);
    z-index: 5;
    margin-bottom: 50px;
    /* Space for fixed button */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.roll-result {
    min-height: 1.5em;
    /* Reserve space for one line of text */
    margin-top: 5px;
    font-weight: bold;
    color: var(--text-red);
    transition: all 0.2s;
}

/* Footer Controls */
.game-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

/* Overlay & Notifications */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: visible;
}

.overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-content {
    background: #FFF;
    border: 4px solid var(--text-red);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    /* Increased from 320px */
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay.hidden .overlay-content {
    transform: scale(0.8);
}


.overlay-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.overlay-content h2 {
    color: var(--text-red);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    /* Reduced from 2rem */
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-red);
    color: var(--text-red);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #FFEBEE;
}

/* Specific Event Styles */
.win-mode {
    border-color: var(--primary-gold);
}

.win-mode h2 {
    color: #F57F17;
}

.win-mode .overlay-icon {
    animation: spin 2s infinite linear;
}

/* Floating Text Animation */
.float-up-text {
    position: absolute;
    color: var(--primary-gold);
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    z-index: 50;
}

.float-up-text.negative {
    color: #FFCDD2;
    /* Light red */
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -100px) scale(1.5);
    }
}

/* Points Popup */
/* Points Popup */
.points-popup {
    /* Static Positioning */
    background: var(--text-red);
    color: #FFF;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-gold);
    display: inline-block;
}

/* Avatar Icons */
.avatar-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Firecracker Animation */
.firecracker-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
}

.firecracker {
    font-size: 6rem;
    animation: firecracker-pop 0.5s ease-in-out infinite alternate;
}

@keyframes firecracker-pop {
    0% {
        transform: scale(1) rotate(-10deg);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

/* Final Ranking Table */
.final-ranking {
    margin-top: 1rem;
    background: #FAFAFA;
    border-radius: 15px;
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #EEE;
}

.rank-row {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid #EEE;
    font-size: 1rem;
}

.rank-row:last-child {
    border-bottom: none;
}

.rank-row.winner {
    background: #FFF9C4;
    /* Light Gold */
    border-radius: 10px;
    font-weight: bold;
    border: 1px solid #FFD54F;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rank-medal {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}

.rank-avatar {
    font-size: 1.2rem;
    margin: 0 10px;
}

.rank-name {
    flex: 1;
    text-align: left;
    color: #333;
}

.rank-amount {
    font-weight: 800;
}

.rank-amount.positive {
    color: #D32F2F;
}

.rank-amount.negative {
    color: #388E3C;
}

.win-summary p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Snackbar Notification */
.snackbar {
    position: fixed;
    bottom: 120px;
    /* Move up to avoid covering Roll Button */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: auto;
    /* Let content dictate width */
    max-width: 320px;
    /* Prevent too wide */
    border: 2px solid #EEE;
    opacity: 1;
    cursor: pointer;
}

.snackbar:hover {
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.snackbar.hidden {
    bottom: 50px;
    /* Slide down slightly when hiding */
    opacity: 0;
    pointer-events: none;
}

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

.snackbar-content {
    display: flex;
    flex-direction: column;
}

.snackbar-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #333;
}

.snackbar-message {
    font-size: 0.9rem;
    color: #666;
}

/* Snackbar Types */
.snackbar.normal {
    border-color: #FFD700;
}

.snackbar.normal .snackbar-icon {
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.snackbar.bounce-back {
    border-color: #D32F2F;
    background: #FFEBEE;
}

.snackbar.bounce-back .snackbar-title {
    color: #D32F2F;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .snackbar {
        width: 90%;
        max-width: 90%;
        bottom: 100px;
    }
}

/* Dice Cup */
.dice-cup {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: auto;
    z-index: 50;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.dice-cup.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-100px);
}

.dice-cup.shaking {
    animation: cupShake 0.1s infinite;
}

.dice-cup.lift-up {
    animation: liftUp 0.8s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cupShake {
    0% {
        transform: translateX(-50%) rotate(0deg) translateY(0);
    }

    25% {
        transform: translateX(-52%) rotate(-5deg) translateY(-5px);
    }

    75% {
        transform: translateX(-48%) rotate(5deg) translateY(5px);
    }

    100% {
        transform: translateX(-50%) rotate(0deg) translateY(0);
    }
}

@keyframes liftUp {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-300px) rotate(-20deg);
        opacity: 0;
    }
}