* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #f0f0f0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1 {
    margin-top: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    gap: 10px;
}

.drawing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.stats-separator {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 5px 0;
}

.timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#timer-display {
    font-family: sans-serif;
    font-weight: normal;
    font-size: inherit;
    color: #555;
    padding-left: 35px;
}

.zen-mode-container {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 35px;
}

.lotus-icon {
    font-size: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.toggle-switch:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(138, 43, 226, 0.3);
}

.toggle-slider {
    position: absolute;
    left: 2px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
    background: rgba(138, 43, 226, 0.8);
    border-color: rgba(138, 43, 226, 1);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(20px);
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.zen-mode-container:hover .lotus-icon {
    opacity: 1;
}

.leaderboard-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.streak-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.info-icon {
    font-size: 0.75em;
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    background-color: #666;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-style: italic;
}

.info-icon:hover {
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 125%;
    right: 0;
    background-color: #333;
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.75em;
    line-height: 1.3;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 15px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Timelapse section styling */
.timelapse-section {
    margin: 15px 0;
    text-align: center;
}

.timelapse-display {
    margin-top: 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#timelapse-canvas {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    border: none;
    box-shadow: none;
    background: transparent;
}

.timelapse-canvas svg {
    max-width: 250px;
    max-height: 250px;
    width: 100%;
    height: auto;
    background: white;
}

.timelapse-controls {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 0;
    width: 100%;
}

.timelapse-play,
.timelapse-download,
.timelapse-share {
    color: #6b6b6b;
    background: #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 0.8;
    font-family: 'Arial Black', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.timelapse-play:hover,
.timelapse-download:hover,
.timelapse-share:hover {
    transform: translateY(-2px);
    background: rgba(138, 43, 226, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.timelapse-play:active,
.timelapse-download:active,
.timelapse-share:active {
    transform: translateY(0);
}

.timelapse-download:disabled,
.timelapse-share:disabled {
    background: #e0e0e0 !important;
    color: #b0b0b0 !important;
    opacity: 0.7;
}

/* Fun fact styling */
.fun-fact-display {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-size: 0.95em;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fun-fact-display:before {
    content: "💡 ";
    font-size: 1.2em;
    margin-right: 8px;
}

/* Tomorrow reminder styling */
.tomorrow-reminder {
    margin: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tomorrow-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.tomorrow-text {
    font-weight: 400;
}

#drawing-area {
    width: 90vw;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 400px;
    max-height: 400px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

#drawing-area svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Remove focus outline from SVG sections */
#drawing-area svg [id^="section-"] {
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
    cursor: pointer;
}

#drawing-area svg [id^="section-"]:focus {
    outline: none;
}

/* Prevent text selection on SVG text elements (numbers) */
#drawing-area svg text {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Default (Portrait) Color Palette Styles */
#color-palette {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;     
    justify-content: center; 
    gap: 10px;
    margin-top: 10px;
    padding: 6px 0; 
    /* Remove landscape-specific styles that were incorrectly placed here */
    /* box-sizing, margin-left, padding-top, height, max-height, overflow-y are for landscape */
}

.color-swatch {
    width: 50px;
    height: 50px;
    /* border: 1px solid #000; */ /* Border removed */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.selected-swatch {
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
}

/* Shake animation for wrong section feedback */
.shake {
    animation: shake 0.15s ease-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    50% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Reduced top margin for better positioning */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    max-height: 90vh; /* Ensure it doesn't exceed viewport height */
    overflow-y: auto; /* Allow scrolling within modal if needed */
    text-align: center;
    border-radius: 8px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/*
#play-again-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#play-again-button:hover {
    background-color: #45a049;
}
*/

/* Landscape mode adjustments */
@media (orientation: landscape) {
    .container {
        flex-direction: row; 
        align-items: flex-start; 
        justify-content: center; 
        gap: 20px; 
    }

    .drawing-wrapper {
        gap: 10px; 
    }

    #drawing-area {
        width: auto; 
        height: 80vh; 
        max-height: 400px; 
    }

    #color-palette {
        flex-direction: column; 
        flex-wrap: wrap;        
        align-content: flex-start; 
        box-sizing: border-box;
        margin-top: 0;          
        margin-left: 20px;      
        padding: 10px; /* General padding for shadow space */
        padding-top: calc(1.2em + 10px + 10px); /* Original alignment + general top padding */
        gap: 10px;
        height: calc( min(3vh, 300px) + (1.2em + 10px) + 20px ); 
        overflow-y: auto; 
        width: auto; 
    }

    .stats-bar {
        max-width: 350px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    
    .tooltip {
        width: 180px;
        right: -50px;
        font-size: 0.7em;
    }
    
    .tooltip::after {
        right: 50%;
        margin-right: -5px;
    }
}

.download-container {
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.3);
}

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

.download-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.timelapse-download {
    background: #e0e0e0 !important;
    color: #6b6b6b !important;
}

.timelapse-download:disabled {
    background: #e0e0e0 !important;
    color: #b0b0b0 !important;
    opacity: 0.7;
}

.timelapse-download:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.timelapse-play:hover {
    background: #e0e0e0 !important;
    color: #6b6b6b !important;
}

#leaderboardModal .modal-content {
    max-width: 600px;
    padding: 20px;
}

#leaderboardList table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

#leaderboardList th,
#leaderboardList td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#leaderboardList th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#leaderboardList tr:hover {
    background-color: #f9f9f9;
}

#leaderboardForm {
    margin: 20px 0;
    text-align: center;
}

#playerName {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#submitScore {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submitScore:hover {
    background-color: #45a049;
}

#viewLeaderboardButton {
    background: rgba(255, 255, 255, 0.8);  /* Match stats bar background */
    color: #555;  /* Softer text color */
    padding: 10px 20px;  /* Match stats bar padding */
    border: none;
    border-radius: 10px;  /* Match stats bar border radius */
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;  /* Match stats bar max-width */
    font-weight: 500;
    margin: 2px auto;
    display: block;
    backdrop-filter: blur(10px);  /* Match stats bar blur effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);  /* Match stats bar shadow */
}

#viewLeaderboardButton:hover {
    background: rgba(255, 255, 255, 0.9);  /* Slightly more opaque on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);  /* Enhanced shadow on hover */
}

#controls {
    text-align: center;
    margin-top: 10px;
}

#leaderboardModal .modal-content {
    max-width: 600px;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#leaderboardModal h2 {
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

#leaderboardList table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#leaderboardList th {
    background-color: #f5f5f5;
    color: #555;
    font-weight: bold;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

#leaderboardList td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #555;
}

#leaderboardList tr:hover {
    background-color: #f9f9f9;
}

#leaderboardList tr:nth-child(even) {
    background-color: #f8f8f8;
}

#closeLeaderboard {
    background-color: #666;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    display: block;
    margin: 20px auto 0;
}

#closeLeaderboard:hover {
    background-color: #555;
}

#leaderboardList p {
    text-align: center;
    padding: 20px;
    color: #555;
    font-size: 16px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin: 20px 0;
}

/* Mobile styles */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100vw;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    #desktop-leaderboard {
        display: none;  /* Hide desktop leaderboard on mobile */
    }
    
    #week-tracker {
        max-width: 400px;
        padding: 5px 10px;
    }
    
    #drawing-area {
        max-width: 100%;
        overflow: hidden;
    }
    
    #drawing-area svg {
        max-width: 100%;
        height: auto;
    }
    
    #color-palette {
        max-width: 100%;
        overflow-x: hidden;
        padding: 6px 0;
    }
    
    #mobile-leaderboard {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding-top: 20px;
        margin: 10px 0;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    #mobile-leaderboard h3 {
        margin: 0 0 15px 0;
        color: #555;
        font-size: 18px;
        text-align: center;
    }
    
    #mobile-leaderboard-list {
        max-height: none;
        overflow-y: visible;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #mobile-leaderboard-list table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }
    
    #mobile-leaderboard-list th,
    #mobile-leaderboard-list td {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #eee;
        color: #555;
    }
    
    #mobile-leaderboard-list th {
        background-color: #f5f5f5;
        font-weight: bold;
        color: #555;
    }
    
    #mobile-leaderboard-list tr:hover {
        background-color: #f9f9f9;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    #mobile-leaderboard {
        display: none;  /* Hide mobile leaderboard on desktop */
    }
    
    .container {
        display: grid;
        grid-template-columns: 1fr 260px; /* Two columns: main content and leaderboard */
        grid-template-rows: auto auto auto; /* Three rows: drawing area, color palette, theme guess */
        gap: 10px 8px; /* Further reduced horizontal gap */
        max-width: 800px; /* Reduced from 1200px to bring content closer */
        margin: 0 auto;
        padding: 20px 0; /* No horizontal padding */
        align-items: start;
    }
    
    .drawing-wrapper {
        grid-column: 1;
        grid-row: 1 / 2; /* Span first row */
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    #week-tracker {
        margin: 0 !important;
        padding: 5px 0px 5px 0px !important; /* Completely override base padding */
        max-width: none;
        justify-content: flex-start; /* Align to left edge */
    }
    
    #color-palette {
        grid-column: 1;
        grid-row: 2; /* Below the drawing area */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
        margin: 0;
    }
    
    .theme-guess-container {
        grid-column: 1;
        grid-row: 3; /* Below the color palette */
    }
    
    #desktop-leaderboard {
        grid-column: 2;
        grid-row: 1 / 3; /* Span both rows */
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 10px;
        margin: 0;
    }
    
    #desktop-leaderboard h3 {
        margin: 0 0 15px 0;
        color: #555;
        font-size: 18px;
    }
    
    #desktop-leaderboard-list {
        max-height: 400px;
        overflow-y: auto;
    }
    
    #desktop-leaderboard-list table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }
    
    #desktop-leaderboard-list th,
    #desktop-leaderboard-list td {
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #eee;
        color: #555;
    }
    
    #desktop-leaderboard-list th {
        background-color: #f5f5f5;
        font-weight: bold;
        color: #555;
    }
    
    #desktop-leaderboard-list tr:hover {
        background-color: #f9f9f9;
    }
}

/* PWA Install Prompt */
#pwa-install-prompt {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 500px !important;
    background: linear-gradient(135deg, #2c3e50, #4ca1af) !important;
    color: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    z-index: 2000 !important;
    overflow: hidden !important;
    animation: fade-in-up 0.5s ease-out !important;
}

#pwa-install-prompt .pwa-prompt-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 20px !important;
}

#pwa-install-prompt .pwa-prompt-text {
    font-size: 0.9em !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    padding-right: 15px !important;
    color: white !important;
}

#pwa-install-prompt .pwa-prompt-buttons {
    display: flex !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

#pwa-install-prompt .pwa-prompt-button {
    border: none !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 0.9em !important;
    font-weight: bold !important;
    transition: background-color 0.2s !important;
}

#pwa-install-prompt .pwa-prompt-button:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

#pwa-install-prompt .pwa-prompt-button.dismiss {
    background-color: transparent !important;
}

#pwa-install-prompt .pwa-prompt-button.dismiss:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#pwa-install-prompt .pwa-instructions {
    font-size: 0.85em !important;
    line-height: 1.5 !important;
    color: white !important;
    width: 100% !important;
}

#pwa-install-prompt .pwa-instructions p {
    color: white !important;
    font-size: 0.9em !important;
}

#pwa-install-prompt .pwa-instructions strong {
    color: white !important;
    font-weight: 600 !important;
}

#pwa-install-prompt .pwa-instructions .icon {
    font-size: 1.2em !important;
    font-weight: bold !important;
    color: white !important;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 450px) {
    #pwa-install-prompt {
        bottom: 15px !important;
        width: 90% !important;
    }
    
    #pwa-install-prompt .pwa-prompt-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 20px !important;
        align-items: stretch !important;
    }
    
    #pwa-install-prompt .pwa-prompt-text {
        padding-right: 0 !important;
        margin-bottom: 5px !important;
        font-size: 1em !important;
    }
    
    #pwa-install-prompt .pwa-instructions {
        text-align: left !important;
        margin: 10px 0 !important;
        padding: 0 !important;
    }
    
    #pwa-install-prompt .pwa-instructions p {
        margin: 6px 0 !important;
        font-size: 0.9em !important;
    }
    
    #pwa-install-prompt .pwa-prompt-buttons {
        justify-content: center !important;
        width: 100% !important;
    }
    
    #pwa-install-prompt .pwa-prompt-button {
        flex: 1 !important;
        max-width: 120px !important;
    }
}

/* Week Tracker Styles */
#week-tracker {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.day-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.droplet {
    width: 42px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    background-color: #e0e0e0; /* Faded gray */
    transition: background-color 0.4s ease, transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.droplet.has-miniature {
    background-color: white;
    padding: 0;
}

.droplet svg,
.droplet img,
.droplet > div {
    width: 42px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    z-index: 1;
    object-fit: cover;
}

.droplet:hover {
    transform: scale(1.1);
}

.day-label {
    font-size: 14px;
    font-weight: normal;
    color: #888;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Selected State (currently viewing this day) */
.droplet.selected {
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.8);
}

.droplet.selected.has-miniature svg {
    /* Selected state styling without border */
}

/* Available States (faded colors for previous days) */
.droplet.available {
    color: rgba(0, 0, 0, 0.6);
}

.droplet.available + .day-label {
    color: #888;
}

/* Faded Rainbow Colors for Available Days (Sun-Sat) */
.droplet[data-day="0"].available:not(.has-miniature) { background-color: rgba(231, 76, 60, 0.15); } /* Sunday - Faded Red */
.droplet[data-day="1"].available:not(.has-miniature) { background-color: rgba(243, 156, 18, 0.15); } /* Monday - Faded Orange */
.droplet[data-day="2"].available:not(.has-miniature) { background-color: rgba(241, 196, 15, 0.15); } /* Tuesday - Faded Yellow */
.droplet[data-day="3"].available:not(.has-miniature) { background-color: rgba(46, 204, 113, 0.15); } /* Wednesday - Faded Green */
.droplet[data-day="4"].available:not(.has-miniature) { background-color: rgba(52, 152, 219, 0.15); } /* Thursday - Faded Blue */
.droplet[data-day="5"].available:not(.has-miniature) { background-color: rgba(91, 44, 111, 0.15); } /* Friday - Faded Indigo */
.droplet[data-day="6"].available:not(.has-miniature) { background-color: rgba(155, 89, 182, 0.15); } /* Saturday - Faded Violet */

/* Lit-up States */
.droplet.lit {
    color: white;
}

.droplet.lit + .day-label {
    color: #888;
}

/* Rainbow Colors (Sun-Sat) */
.droplet[data-day="0"].lit:not(.has-miniature) { background-color: #e74c3c; } /* Sunday - Red */
.droplet[data-day="1"].lit:not(.has-miniature) { background-color: #f39c12; } /* Monday - Orange */
.droplet[data-day="2"].lit:not(.has-miniature) { background-color: #f1c40f; } /* Tuesday - Yellow */
.droplet[data-day="3"].lit:not(.has-miniature) { background-color: #2ecc71; } /* Wednesday - Green */
.droplet[data-day="4"].lit:not(.has-miniature) { background-color: #3498db; } /* Thursday - Blue */
.droplet[data-day="5"].lit:not(.has-miniature) { background-color: #5b2c6f; } /* Friday - Indigo */
.droplet[data-day="6"].lit:not(.has-miniature) { background-color: #9b59b6; } /* Saturday - Violet */

/* Lit state for miniature drawings */
.droplet[data-day="0"].lit.has-miniature { /* Sunday - Red */ }
.droplet[data-day="1"].lit.has-miniature { /* Monday - Orange */ }
.droplet[data-day="2"].lit.has-miniature { /* Tuesday - Yellow */ }
.droplet[data-day="3"].lit.has-miniature { /* Wednesday - Green */ }
.droplet[data-day="4"].lit.has-miniature { /* Thursday - Blue */ }
.droplet[data-day="5"].lit.has-miniature { /* Friday - Indigo */ }
.droplet[data-day="6"].lit.has-miniature { /* Saturday - Violet */ } 

/* Theme Guess Button and Modal */
.theme-guess-container {
    text-align: center;
    margin: 5px 0 15px 0;
}

.theme-guess-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.theme-guess-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

#theme-guess-modal .modal-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

#theme-guess-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

#theme-guess-name,
#theme-guess-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#theme-guess-name:focus,
#theme-guess-input:focus {
    border-color: #667eea;
}

.theme-guess-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.theme-guess-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-theme-guess {
    background-color: #667eea;
    color: white;
}

#submit-theme-guess:hover {
    background-color: #5a67d8;
}

#cancel-theme-guess {
    background-color: #e2e8f0;
    color: #4a5568;
}

#cancel-theme-guess:hover {
    background-color: #cbd5e0;
} 