.section-id {
    display: none;
}
.section-title {
    font-weight: bold;
    font-size: 22px;
    text-align: center;
    text-align: center;
    width: 100%;
}
@media (max-width: 800px) {
    .section-title {
        font-size: 18px; /* Further reduce font size for section titles */
    }
    .recipe-book-content .recipe-drink-name {
        font-size: 18px; /* Adjust recipe title size */
    }
    .recipe-book-content li {
        font-size: 14px; /* Adjust recipe list item size */
    }
}
.hidden {
    display: none !important;
}
.recipe-book-icon {
    width: 40px;
    height: 50px;
    border: 1px solid #000;
    background-color: transparent; /* Transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    text-align: center;
}
.recipe-book-icon::before { content: "📖"; font-size: 24px; color: #000;}
.item-number {
    display: none; /* Hidden by default on desktop */
}
.item-label {
    font-size: 12px;
    margin-top: 3px;
    max-width: 50px; /* Prevent long labels from breaking layout */
    word-wrap: break-word;
}
.fridge-item:has([data-item-code="S3_12"]) .item-label,
.fridge-item:has([data-item-code="S3_13"]) .item-label {
    max-width: 70px;
}
@media (max-width: 768px) {
    .backbar-item .item-label {
        font-size: 12px;
    }
}
.recipe-book-content {
    padding: 15px;
    background-color: transparent;
    /* border-top removed as it's now in a modal */
}
.recipe-book-content .recipe-drink-name {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.recipe-book-content ul {
    list-style-type: disc;
    padding-left: 40px;
    margin: 0;
}
.recipe-book-content li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #000000;
}
/* Display Circle Styles */
.display-circle {
    width: 80px; /* Default width */
    height: 80px; /* Default height */
    font-weight: 700;         /* Bold text */
    border: 2px solid #ae7f00;
    border-radius: 50%;
    background-color: transparent;
    display: flex; /* For centering text if needed, or managing content flow */
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
/* Specific styling for the bottom circle to display ingredients */
.display-circle[data-display-area="bottom_circle"] {
    width: 300px; /* Significantly wider to accommodate long ingredient lists */
    min-height: 180px; /* Increased min-height for better proportions */
    font-weight: 800;         /* Bold text */
    height: auto; /* Allow height to adjust to content */
    border-radius: 50%; /* Keep circular when content is minimal */
    padding: 20px; /* More padding for better text spacing */
    font-size: clamp(14px, 2.5vw, 18px); /* Fluid font size */
    line-height: 1.4;
    overflow-wrap: break-word; 
    word-break: break-word; /* Better word breaking for ingredient names */
    text-align: center; /* Ensure text stays centered */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 250px; /* Prevent it from getting too wide on larger screens */
}
@media (max-width: 800px) {
    .display-circle {
        width: 60px;
        height: 60px;
    }
    .display-circle[data-display-area="bottom_circle"] {
        width: 180px;
        min-height: 150px;
        font-size: 14px;
        padding: 15px;
    }
    .drink-order-name {
        font-size: 14px;
        padding: 6px 10px;
    }
    #bartender-game .progress-bar-info {
        font-size: 16px;
        color: #FDFBF5 !important; /* Ensure off-white color on mobile */
    }
    .modal-content, .section-modal-content {
        width: 95%;
        padding: 15px;
    }
    .section-modal-header .section-id {
        font-size: 22px;
    }
    .section-modal-header .section-title {
        font-size: 26px;
    }
}
/* Info Panel Component Styles */
.drink-order-name {
    border: 1px solid #000;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    background-color: #f5db67; /* Darker peach/light brown for drink order name */
}
#bartender-game .progress-bar-info {
    font-size: clamp(16px, 4vw, 24px); /* Fluid font size */
    font-weight: 500;
    text-align: center; /* Centered text */
    line-height: 1.5; /* Adjusted line height */
    flex-grow: 1; /* Allow it to take available space */
    padding: 8px 12px; /* Match drink order padding */
    color: #FDFBF5 !important; /* Off-white text for readability, !important to override conflicting styles */
}
.progress-bar-info .highlight-keyword {
    font-weight: bold;
    color: #FFD835;
}
/* Method Modal Styles */
.modal-overlay {
    position: fixed;
    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: 1000;
}
.modal-content {
    background: #FFDAB9;
    border: 3px solid #000;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    font-size: clamp(16px, 2.5vw, 20px);
    text-align: center;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}
#recipeBookModal .modal-content {
    background: #FFDAB9; /* Same as method modal for consistency */
    max-width: 400px; /* Consistent width */
}
.modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.welcome-modal .modal-content {
    background-color: #e67e22; /* Match game background */
    color: #000000; /* White text for contrast */
    max-width: 500px; /* Make it larger */
    font-size: clamp(20px, 3vw, 24px); /* Increase font size */
    line-height: 1.6;
}
.welcome-modal h3 {
    font-size: clamp(24px, 4vw, 28px);
    margin-bottom: 15px;
}
.welcome-modal p {
    margin: 10px 0;
}
.welcome-modal .popup-hint {
    font-size: 0.9em;
    font-style: italic;
    color: #000000; /* Lighter text color */
    margin-top: 20px;
}
#game-mode-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    align-items: center;
}
.game-mode-button {
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #000;
    cursor: pointer;
    width: 80%;
    max-width: 300px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.game-mode-button:hover {
    transform: scale(1.05);
}
.game-mode-button[data-mode="training"] { background-color: #2d9646; color: rgb(0, 0, 0); }
.game-mode-button[data-mode="barPractice"] { background-color: #ffc107; color: black; }
.game-mode-button[data-mode="liveBar"] { background-color: #dc3545; color: rgb(0, 0, 0); }
/* Locked mode styling */
.game-mode-button.locked-mode {
    opacity: 0.8;
    cursor: pointer; /* Keep clickable for redirect */
    position: relative;
    filter: grayscale(0.3);
}
.game-mode-button.locked-mode:hover {
    opacity: 0.9;
    transform: scale(1.02); /* Reduced hover effect */
}
.premium-label {
    font-size: 0.8rem;
    font-weight: normal;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    text-shadow: none;
}
@media (max-width: 768px) {
    .game-mode-button {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .premium-label {
        font-size: 0.7rem;
        padding: 1px 4px;
        margin-left: 6px;
    }
}
.continue-button-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.training-info-modal .modal-content {
    background-color: #179c4e; /* A darker, more accessible green */
    color: #000000;
    max-width: 450px;
}
.training-info-modal h3 {
    font-size: clamp(22px, 4vw, 26px);
    margin-bottom: 15px;
}
.training-info-modal p {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 20px;
}
.training-info-modal ul {
    list-style-type: '✓  ';
    padding-left: 25px;
    text-align: left;
    margin-bottom: 25px;
}
.training-info-modal li {
    margin-bottom: 12px;
    font-size: clamp(15px, 2.5vw, 17px);
}
.training-info-modal .modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.8);
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}
.training-info-modal .modal-close-button:hover {
    color: #000000;
}
/* Bar Practice Info Modal Styles */
.bar-practice-info-modal .modal-content {
    background-color: #ffc107; /* A vibrant yellow */
    color: #000;
    max-width: 450px;
}
.bar-practice-info-modal h3 {
    font-size: clamp(22px, 4vw, 26px);
    margin-bottom: 15px;
}
.bar-practice-info-modal p {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 20px;
}
.bar-practice-info-modal ul {
    list-style-type: '★  ';
    padding-left: 25px;
    text-align: left;
    margin-bottom: 25px;
}
.bar-practice-info-modal li {
    margin-bottom: 12px;
    font-size: clamp(15px, 2.5vw, 17px);
}
.bar-practice-info-modal .modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.7);
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}
.bar-practice-info-modal .modal-close-button:hover {
    color: #000;
}
/* Live Bar Info Modal Styles */
.live-bar-info-modal .modal-content {
    background-color: #dc3545; /* A strong red */
    color: #000000;
    max-width: 450px;
}
.live-bar-info-modal h3 {
    font-size: clamp(22px, 4vw, 26px);
    margin-bottom: 15px;
}
.live-bar-info-modal p {
    font-size: clamp(16px, 3vw, 18px);
    margin-bottom: 20px;
}
.live-bar-info-modal ul {
    list-style-type: '🔥  ';
    padding-left: 25px;
    text-align: left;
    margin-bottom: 25px;
}
.live-bar-info-modal li {
    margin-bottom: 12px;
    font-size: clamp(15px, 2.5vw, 17px);
}
.live-bar-info-modal .modal-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.8);
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}
.live-bar-info-modal .modal-close-button:hover {
    color: #fff;
}
/* Section Modal Styles */
.section-modal-content {
    background: #b7873a;
    border: 3px solid #000;
    padding: 20px;
    width: 95%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.section-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}
.section-modal-header .section-id {
    font-size: 28px;
    font-weight: bold;
}
.section-modal-header .section-title {
    font-size: clamp(26px, 5vw, 32px);
    font-weight: bold;
}
.section-modal-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.section-modal-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}
.section-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
}
.section-modal-item .item-number {
    display: none;
}
.section-modal-item .item-button {
    min-width: 50px;
    min-height: 70px;
    font-size: 12px;
}
.section-modal-item .item-label {
    font-size: 12px;
    margin-top: 5px;
    max-width: 60px;
    word-wrap: break-word;
    font-weight: bold;
}
#timer-display {
    position: absolute;
    top: 300px; /* Position below score */
    left: 380px;
    background-color: rgba(100, 149, 237, 0.85); /* Cornflower blue with transparency */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-size: 12px;
    font-weight: bold;
    z-index: 998; /* Below score */
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#score-display {
    position: absolute; /* Position relative to .top-panel */
    top: 300px; /* Position it vertically below the 'Next' button */
    left: 300px; /* Align with the left edge of the action buttons */
    background-color: rgba(255, 216, 53, 0.85); /* #FFD835 with some transparency */
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-size: 12px;
    font-weight: bold;
    z-index: 999;
    pointer-events: none; /* Make it non-interactive */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
@media (max-width: 800px) {
    #timer-display {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: auto;
        top: auto;
        font-size: 14px;
        padding: 5px 10px;
        z-index: 999;
    }

    #score-display {
        position: fixed;
        left: 12px;
        bottom: 12px;
        right: auto;
        top: auto;
        font-size: 14px;
        padding: 5px 10px;
        z-index: 999;
    }
}
.feedback-popup {
    position: fixed;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInOut 2.5s ease-in-out;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Measurement Mode Styles */
.measurement-active {
  pointer-events: none; /* Disable clicks on the whole body */
}
.measurement-active > * {
  pointer-events: all; /* Re-enable clicks on direct children */
}
.measurement-active .game-container > *:not(.info-panel-container) {
  pointer-events: none; /* Disable all sections except the info panel */
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.measurement-active .info-panel-container {
  pointer-events: all; /* Ensure info panel is clickable */
}
.measurement-active #measurement-area {
  pointer-events: auto !important; /* Explicitly allow clicks on measurement buttons */
  background-color: #ffd835;
  border-radius: 10px;
  box-shadow: 0 0 15px 5px #ffd835; /* Glow effect */
  padding: 10px;
  margin: 5px 0;
}
.feedback-speed {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}
/* .feedback-book styling removed as the popup is no longer used */
.feedback-perfect-serve {
    top: 60px; /* Position it below the speed bonus popup */
    left: 50%;
    transform: translateX(-50%);
    color: white; /* Ensure text is visible on colored backgrounds */
    font-size: 1em; /* Match speed bonus popup size */
}
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
#measurement-area {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    width: 100%;
}
.measure-btn {
    width: 52px;
    height: 52px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 50%;
    background-color: #e67e22;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.measure-btn:hover {
    background-color: #d35400; /* Darker orange on hover */
}
.measure-btn:active {
    transform: scale(0.95);
    background-color: #c0392b; /* Even darker orange when clicked */
}
.measure-btn.correct {
    background-color: #2ecc71; /* Green for correct */
    color: white;
    transition: background-color 0.1s ease-in-out;
}
.measure-btn.incorrect {
    background-color: #e74c3c; /* Red for incorrect */
    color: white;
    transition: background-color 0.1s ease-in-out;
}
.measure-btn:first-child {
    font-size: 24px; /* Make spoon icon larger */
    background-color: transparent;
    border-color: transparent;
    flex-shrink: 1; /* Allow the transparent button to shrink to prevent hitbox overlap */
}
.measure-btn:first-child:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle hover for spoon */
}
@media (max-width: 800px) {
    .measure-btn {
        width: 44px;
        height: 44px;
        font-size: 12px;
    }
    .measure-btn:first-child {
        font-size: 20px;
    }
}
/* Floating Recipe Display */
#floating-recipe-container {
    position: fixed;
    bottom: 130px;
    left: 220px;
    background-color: transparent;
    color: #d6d6c0; /* Hot pink text */
    padding: 15px;
    border-radius: 0; /* No rounded corners for a transparent box */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Add shadow for readability */
    width: 220px;
    max-height: 40vh;
    overflow-y: auto;
    z-index: 1001; /* Ensure it's above game UI but below modals */
    pointer-events: none; /* Make it non-interactive */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#floating-recipe-container:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}
#floating-recipe-container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#floating-recipe-container li {
    margin-bottom: 6px;
    font-size: 18px;
}
#floating-recipe-container .garnish-item {
    margin-top: 12px;
    border-top: 1px dashed rgba(255, 192, 203, 0.4);
    padding-top: 8px;
}