:root {
    --primary-color: #FF9A9E;
    --secondary-color: #FECFEF;
    --accent-color: #A18CD1;
    --hint-color: #fff3cd;
    --hint-text: #856404;
    --text-color: #555;
    --card-bg: #fff;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Animation Shapes */
/* Background Animation Shapes */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-animation span {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    font-size: 30px;
    animation: moveUp 25s linear infinite;
    bottom: -150px;
    opacity: 0.6;
}

.background-animation span:nth-child(1) {
    left: 25%;
    animation-delay: 0s;
    content: "🌟";
}

.background-animation span:nth-child(1)::before {
    content: "🌟";
}

.background-animation span:nth-child(2) {
    left: 10%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.background-animation span:nth-child(2)::before {
    content: "🎈";
}

.background-animation span:nth-child(3) {
    left: 70%;
    animation-delay: 4s;
}

.background-animation span:nth-child(3)::before {
    content: "🧸";
}

.background-animation span:nth-child(4) {
    left: 40%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.background-animation span:nth-child(4)::before {
    content: "📚";
}

.background-animation span:nth-child(5) {
    left: 65%;
    animation-delay: 0s;
}

.background-animation span:nth-child(5)::before {
    content: "🌸";
}

.background-animation span:nth-child(6) {
    left: 75%;
    animation-delay: 3s;
}

.background-animation span:nth-child(6)::before {
    content: "🎨";
}

.background-animation span:nth-child(7) {
    left: 35%;
    animation-delay: 7s;
}

.background-animation span:nth-child(7)::before {
    content: "🚀";
}

.background-animation span:nth-child(8) {
    left: 50%;
    animation-delay: 15s;
    animation-duration: 45s;
}

.background-animation span:nth-child(8)::before {
    content: "🌈";
}

.background-animation span:nth-child(9) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 35s;
}

.background-animation span:nth-child(9)::before {
    content: "🦄";
}

.background-animation span:nth-child(10) {
    left: 85%;
    animation-delay: 0s;
    animation-duration: 11s;
}

.background-animation span:nth-child(10)::before {
    content: "🍭";
}

/* Mascot Styles */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s;
}

.mascot-container:hover {
    transform: scale(1.1) rotate(5deg);
}

.mascot-emoji {
    font-size: 80px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    animation: floatMascot 3s ease-in-out infinite;
}

.mascot-text {
    position: absolute;
    top: -50px;
    right: 50px;
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    border: 2px solid #FF9A9E;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.2rem;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.mascot-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #FF9A9E transparent transparent transparent;
}

.mascot-container:hover .mascot-text {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatMascot {

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

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

/* Cursor Trail */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    z-index: 9999;
    animation: fadeOutParticle 1s forwards;
}

@keyframes fadeOutParticle {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border: 5px solid #fff;
    animation: slideUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 2px dashed #fff;
}

.nav-item {
    text-decoration: none;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    color: #FF9A9E;
    background: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(255, 154, 158, 0.2);
    color: #e73c7e;
}

.nav-item.active {
    background: #FF9A9E;
    color: white;
    box-shadow: 0 4px 0 #e73c7e;
}

.header {
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H22v-2h-2z' fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    padding: 30px;
    text-align: center;
    color: white;
    border-bottom: 5px dashed #fff;
}

/* Game Styles (Star Hunt) */
.game-info {
    text-align: center;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 15px;
    border: 2px dashed #FF9A9E;
}

.game-board-whack {
    width: 600px;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: 1 0 33.33%;
    overflow: hidden;
    position: relative;
    border-radius: 50%;
    height: 150px;
    /* Ensure hole has height */
}

.hole:after {
    display: block;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><path d="M0 50 C20 0 80 0 100 50 Z" fill="%238D6E63"/></svg>') bottom center no-repeat;
    background-size: contain;
    content: '';
    width: 100%;
    height: 70px;
    position: absolute;
    z-index: 2;
    /* Dirt on top */
    bottom: -15px;
    /* Adjust position */
}

.star {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 100%;
    /* Initially hidden below */
    width: 80px;
    height: 80px;
    left: 50%;
    margin-left: -40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,5 61,35 95,35 68,57 79,91 50,70 21,91 32,57 5,35 39,35" fill="%23FFD700" stroke="%23FF9800" stroke-width="5"/></svg>') center no-repeat;
    background-size: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    cursor: pointer;
    z-index: 1;
    /* Behind dirt */
}

.hole.up .star {
    top: 30px;
    /* Moves up into view */
}

/* Leaderboard Styles */
.leaderboard-section {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Quicksand', sans-serif;
    background: white;
}

#leaderboard-table th,
#leaderboard-table td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: center;
}

#leaderboard-table th {
    background-color: #FF9A9E;
    color: white;
}

#leaderboard-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Helper for Start Screen Input */
.input-field {
    padding: 10px;
    border: 2px solid #FF9A9E;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    outline: none;
    width: 200px;
}

.input-field:focus {
    box-shadow: 0 0 5px rgba(255, 154, 158, 0.5);
}

h1 {
    font-family: 'Patrick Hand', cursive;
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

    60% {
        transform: translateY(-5px);
    }
}

.week-select {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    padding: 10px 25px;
    border-radius: 50px;
    border: 4px solid #fff;
    background: #FFECB3;
    color: #e67e22;
    cursor: pointer;
    margin-top: 15px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: bold;
}

.week-select:hover {
    transform: scale(1.1) rotate(-2deg);
    background: #FFF;
    border-color: #FF9A9E;
}

.content-wrapper {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Reading Options Buttons */
.reading-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.reading-option-btn {
    background: white;
    border: 2px solid #FF9A9E;
    color: #FF9A9E;
    padding: 12px 24px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.reading-option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(255, 154, 158, 0.3);
    background: #FF9A9E;
    color: white;
}

.reading-option-btn.active {
    background: #FF9A9E;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 0 4px #ffe3e3;
    font-weight: bold;
}

/* Bài đọc */
.reading-section {
    background-color: #fff4e6;
    border: 3px dashed #ffd8a8;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.reading-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(255, 146, 43, 0.2);
}

.reading-section::before {
    content: "📖 Bài đọc tuần này";
    position: absolute;
    top: -18px;
    left: 20px;
    background: linear-gradient(45deg, #ff922b, #ffa94d);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reading-text {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.6rem;
    line-height: 1.8;
    margin-top: 20px;
    white-space: pre-line;
    color: #495057;
}

/* Form câu hỏi */
.worksheet-section {
    background-color: #e3fafc;
    border: 3px solid #99e9f2;
    border-radius: 20px;
    padding: 25px;
    transition: transform 0.3s;
}

.worksheet-section:hover {
    transform: scale(1.01);
}

.form-group {
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #1098ad;
    font-size: 1.2rem;
}

.hint-btn {
    background: linear-gradient(45deg, #ffd43b, #fcc419);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #f08c00;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hint-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #fcc419, #fab005);
}

.hint-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #f08c00;
}

.answer-btn {
    background: linear-gradient(45deg, #22b8cf, #15aabf);
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 0 #1098ad;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.answer-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #15aabf, #1098ad);
}

.answer-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #1098ad;
}

.hint-box {
    display: none;
    background-color: var(--hint-color);
    color: var(--hint-text);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px dashed #ffeeba;
    font-size: 1.1rem;
    font-family: 'Patrick Hand', cursive;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hint-box::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent var(--hint-color) transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

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

.answer-box {
    display: none;
    background-color: #dbf2f2;
    color: #0b7285;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px dashed #66d9e8;
    font-size: 1.1rem;
    font-family: 'Patrick Hand', cursive;
    animation: fadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.answer-box::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 60px;
    /* Adjusted position for answer button location */
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #dbf2f2 transparent;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    background: #f8f9fa;
    border-radius: 10px;
    font-family: 'Patrick Hand', cursive;
    font-size: 1.4rem;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s;
}

textarea {
    line-height: normal;
    height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    background: white;
    border-color: #FF9A9E;
    box-shadow: 0 0 0 4px rgba(255, 154, 158, 0.2);
}

/* Rating */
.rating {
    display: flex;
    gap: 15px;
    font-size: 2.5rem;
    cursor: pointer;
    justify-content: center;
}

.rating-star {
    color: #e9ecef;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-star:hover {
    transform: scale(1.2) rotate(15deg);
}

.rating-star.active {
    color: #fcc419;
    text-shadow: 0 0 10px rgba(252, 196, 25, 0.5);
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(45deg, #51cf66, #40c057);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.4rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 0 #2b8a3e;
    transition: all 0.2s;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #2b8a3e;
    background: linear-gradient(45deg, #40c057, #37b24d);
}

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

.footer {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #868e96;
    font-weight: 500;
}

/* Modal Confetti */
#celebration {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

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

    80% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.close-btn {
    background: #FF9A9E;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.05);
    background: #ff878d;
}

/* Modal Overlay (Shared) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

#print-area {
    display: none;
    position: fixed;
    /* Fixed to cover viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    overflow-y: auto;
    /* Allow scrolling */
    z-index: 9999;
    /* Ensure strictly on top */
    background: white;
    padding: 20px;
    box-sizing: border-box;
}

#print-area.visible-for-pdf {
    display: block !important;
}

/* Print Styles */
@media print {

    /* Hide all main app elements */
    .background-animation,
    .container,
    #celebration,
    .modal-overlay {
        display: none !important;
    }

    /* Reset body */
    body {
        margin: 0;
        padding: 0;
        background: white !important;
        height: auto;
        overflow: visible;
    }

    /* Show only print area */
    #print-area {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }


    #print-area * {
        visibility: visible;
    }
}

/* Print Content Styling (Global for PDF generation) */
.print-container {
    font-family: 'Times New Roman', Times, serif;
    /* Readable font for print */
    padding: 2cm;
    color: #000;
    /* Ensure text is black */
    background: #fff;
    width: 100%;
    /* Ensure full width */
    box-sizing: border-box;
}

.print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.print-header h1 {
    font-size: 24pt;
    margin: 0;
    animation: none;
    text-shadow: none;
    font-family: inherit;
    color: #000;
}

.student-info {
    font-size: 14pt;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

.print-content {
    font-size: 13pt;
    line-height: 1.5;
    text-align: justify;
}

.print-questions {
    margin-top: 20px;
}

.print-question-item {
    margin-bottom: 15px;
}

.print-answer {
    font-style: italic;
    font-weight: bold;
    margin-left: 20px;
}

/* Game Lobby Styles */
#game-lobby {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lobby-card {
    background: white;
    width: 250px;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
}

.lobby-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #FF9A9E;
    box-shadow: 0 15px 30px rgba(255, 154, 158, 0.3);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.lobby-card h3 {
    color: #e73c7e;
    font-family: 'Patrick Hand', cursive;
    margin: 10px 0;
    font-size: 1.5rem;
}

.lobby-card p {
    color: #888;
    font-size: 1rem;
}

/* Math Quiz Styles */
.math-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.math-question {
    font-size: 4rem;
    font-family: 'Patrick Hand', cursive;
    color: #1098ad;
    margin-bottom: 40px;
    text-shadow: 2px 2px 0px rgba(16, 152, 173, 0.2);
}

.math-answers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.math-btn {
    background: white;
    border: 3px solid #1098ad;
    color: #1098ad;
    font-size: 2rem;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    transition: all 0.2s;
}

.math-btn:hover {
    background: #1098ad;
    color: white;
    transform: scale(1.1);
}

.math-btn:active {
    transform: scale(0.95);
}

/* Start Overlay Styles */
#start-overlay {
    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: 50;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.start-btn {
    background: linear-gradient(45deg, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    margin: 10px;
    padding: 20px 50px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 50px;
    display: block;
    border: none;
    font-family: 'Patrick Hand', cursive;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    animation: pulse-btn 2s infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.start-btn:hover {
    background-position: right center;
    color: #fff;
    transform: scale(1.1) rotate(-2deg);
}

@keyframes pulse-btn {
    0% {
        box-shadow: 0 0 0 0 rgba(221, 36, 118, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(221, 36, 118, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(221, 36, 118, 0);
    }
}

/* Bomb Distractor */
.bomb {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="1em" font-size="80">💣</text></svg>') bottom center no-repeat;
    background-size: contain;
    width: 80%;
    height: 80%;
    position: absolute;
    top: 100%;
    left: 10%;
    transition: all 0.4s;
}

.hole.up .bomb {
    top: 20px;
}