* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/background.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.skyline-background {
    display: none;
}

.start-screen.hidden {
    display: none;
}


.start-screen-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.game-title {
    font-size: 96px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.game-subtitle {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 1;
    letter-spacing: 1.5px;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.daily-info {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #FFD700;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Instructions */
.instructions {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 45px;
    margin-bottom: 40px;
    max-width: 650px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.instructions-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 1);
}

.instructions-text {
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
    opacity: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 1);
}

.color-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-example {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.color-example svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Start button */
.start-button {
    padding: 22px 65px;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.start-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    border-color: rgba(255, 255, 255, 0.7);
}

.start-button:active {
    transform: translateY(-2px);
}

#map {
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
}

/* View Toggle Container */
.view-toggle-container {
    position: absolute;
    bottom: 440px;
    left: 20px;
    z-index: 1001;
}

.view-toggle-button {
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Night view button - black with white stars */
.view-toggle-button.night-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 255, 255, 0.1);
}

.view-toggle-button.night-mode:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Day view button - blue with yellow sun */
.view-toggle-button.day-mode {
    background: linear-gradient(135deg, #4da6ff 0%, #1e90ff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
}

.view-toggle-button.day-mode:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.7), 0 0 30px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
}

.view-toggle-button:active {
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

/* Special styling for sun */
.toggle-icon.sun {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Special styling for moon/stars */
.toggle-icon.moon {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.toggle-text {
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Zoom Control Positioning */
.leaflet-bottom.leaflet-right {
    bottom: 80px; /* Position above the toggle button */
}

/* Make zoom controls bigger */
.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

/* Hint Buttons */
.hint-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hint-button {
    padding: 16px 28px;
    font-size: 20px;
    font-weight: 600;
    background-color: #ffffff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 220px;
    text-align: left;
}

.hint-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hint-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hint-button:disabled {
    cursor: not-allowed;
    transform: none;
}

.hint-button:disabled:not(.expanded) {
    opacity: 0.5;
}

.give-up-button {
    background-color: #ff6b6b;
    color: white;
    border-color: #ff5252;
}

.give-up-button:hover:not(:disabled) {
    background-color: #ff5252;
}

.give-up-button.confirm {
    background-color: #ff3838;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Star Markers */
.star-marker {
    background: none;
    border: none;
}

.star-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Remove Leaflet attribution for cleaner look */
.leaflet-control-attribution {
    display: none;
}

/* Guess Container */
.guess-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.guess-input {
    width: 500px;
    padding: 18px 24px;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: all 0.3s ease;
}

.guess-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.submit-button {
    padding: 18px 32px;
    font-size: 20px;
    font-weight: 600;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #357abd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

/* Autocomplete List */
.autocomplete-list {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 500px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 14px 24px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.autocomplete-item.selected {
    background-color: #e3f2fd;
}

/* Guesses List */
.guesses-list {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 260px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.guesses-title {
    display: none;
}

#guesses-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guess-item {
    padding: 12px 18px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 18px;
    color: #555;
    border-left: 5px solid #800080;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

/* Distance-based colors */
.guess-item.far {
    border-left-color: #800080;
    background-color: #f3e8f8;
}

.guess-item.medium {
    border-left-color: #ffff00;
    background-color: #fffef0;
}

.guess-item.close {
    border-left-color: #ff8800;
    background-color: #fff4e6;
}

.guess-item.very-close {
    border-left-color: #ff0000;
    background-color: #ffe6e6;
}

.guess-item.goal {
    background-color: #e8f5e9;
    border-left-color: #00ff00;
    color: #2e7d32;
    font-weight: 600;
}

.guess-name {
    flex: 1;
    font-size: 18px;
}

.guess-distance {
    font-weight: 700;
    font-size: 18px;
    color: #666;
    white-space: nowrap;
}

.more-guesses-indicator {
    padding: 10px 18px;
    text-align: center;
    font-size: 14px;
    color: #999;
    font-style: italic;
    background-color: #fafafa;
    border-radius: 4px;
    margin-top: 8px;
}

.guess-item.goal .guess-distance {
    color: #2e7d32;
    font-size: 20px;
}

/* Congratulations Popup */
.congrats-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.congrats-popup.active {
    display: flex;
}

.congrats-content {
    background: url('/endscreen2.avif') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    max-width: 900px;
    width: 90vw;
    max-height: 95vh;
    animation: popupSlideIn 0.4s ease-out;
}

.congrats-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    z-index: 0;
}

.congrats-content > * {
    position: relative;
    z-index: 1;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-popup-btn:hover {
    opacity: 1;
}

.congrats-message {
    font-size: 72px;
    font-weight: 900;
    color: white;
    margin: 0 0 30px 0;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.congrats-city-name {
    font-size: 64px;
    font-weight: 900;
    color: #ffeb3b;
    margin: 20px 0 30px 0;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.congrats-city-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.4);
    display: block;
}

.play-again-btn {
    display: none;
}

/* Confetti Animation */
.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9998;
    pointer-events: none;
    animation: confetti-fall 2s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--delta-x), var(--delta-y)) rotate(var(--rotation));
        opacity: 0;
    }
}

/* Guess count display */
.congrats-guesses {
    font-size: 24px;
    color: white;
    margin: 20px 0;
    font-weight: 600;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 1);
}

.daily-challenge-reminder {
    font-size: 22px;
    color: #FFD700;
    margin: 20px 0;
    font-weight: 700;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ad container */
.ad-container {
    margin-top: 30px;
    padding-top: 20px;
    width: 100%;
}

.ad-placeholder {
    display: none;
}

/* Info Buttons (Help and About) */
.info-button {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.help-button {
    top: 20px;
    right: 20px;
    background: #667eea;
    color: white;
}

.about-button {
    top: 80px;
    right: 20px;
    background: #764ba2;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.modal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-content li {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

.help-color-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.help-color-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #555;
}

.help-color-item svg {
    flex-shrink: 0;
}

/* Modal Legal Links */
.legal-links {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.legal-links li {
    margin-bottom: 10px;
}

.modal-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.modal-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Inline Cities Display */
.hint-button.expanded {
    height: auto;
    padding: 20px;
    cursor: default;
}

.cities-inline-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cities-inline-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
    color: #333;
    text-align: center;
}

.city-inline-item {
    background: white;
    color: #667eea;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid white;
}

.city-inline-item:hover {
    background: white;
    color: #764ba2;
    border-color: white;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .game-title {
        font-size: 64px;
    }
    
    .game-subtitle {
        font-size: 24px;
    }
    
    .instructions {
        max-width: 500px;
        padding: 25px 30px;
    }
    
    .instructions-title {
        font-size: 32px;
    }
    
    .instructions-text {
        font-size: 16px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    /* Start screen - make it scrollable within viewport */
    .start-screen {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .start-screen-content {
        padding: 20px 15px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .game-title {
        font-size: 36px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .game-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .instructions {
        max-width: 90vw;
        padding: 15px 20px;
        margin-bottom: 20px;
    }

    .instructions-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .instructions-text {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .color-examples {
        gap: 8px;
    }

    .color-example {
        font-size: 12px;
        gap: 8px;
    }

    .color-example svg {
        width: 20px;
        height: 20px;
    }

    .start-button {
        padding: 14px 40px;
        font-size: 18px;
        margin-top: 10px;
    }
    
    /* Game controls */
    .hint-buttons {
        top: 8px;
        left: 8px;
        gap: 5px;
        flex-direction: row;
        flex-wrap: wrap;
        max-width: calc(100% - 60px);
    }

    .hint-button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: auto;
        flex: 1;
        min-width: 100px;
    }

    #picture-hint-image {
        max-width: 90vw !important;
        width: auto !important;
        cursor: pointer !important;
    }

    .view-toggle-container {
        top: 96px;
        right: 8px;
        left: auto;
        bottom: auto;
    }

    .view-toggle-button {
        padding: 6px;
        font-size: 18px;
        min-width: auto;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }

    .toggle-text {
        display: none;
    }

    .toggle-icon {
        margin: 0;
    }

    .guess-container {
        bottom: 8px;
        right: 8px;
        left: auto;
        transform: none;
        flex-direction: row;
        gap: 6px;
        width: auto;
    }

    .guess-input {
        width: 200px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-button {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    .autocomplete-list {
        width: 200px;
        bottom: 50px;
        right: 90px;
        left: auto;
        max-height: 100px;
    }

    .autocomplete-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Previous guesses button (collapsed state) */
    .guesses-toggle-btn {
        display: none;
    }

    .guesses-list.mobile-hidden {
        display: none;
    }

    .guesses-toggle-btn {
        display: block;
        position: fixed;
        bottom: 8px;
        left: 8px;
        right: 290px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .guesses-toggle-btn:hover {
        background: rgba(255, 255, 255, 1);
    }

    /* Previous guesses expanded state */
    .guesses-list {
        position: fixed;
        bottom: 8px;
        left: 8px;
        right: 8px;
        max-width: none;
        max-height: 60vh;
        padding: 8px;
        overflow-y: auto;
        z-index: 1001;
    }

    .guesses-close-btn {
        display: block;
        width: 100%;
        padding: 8px;
        margin-bottom: 8px;
        background: #667eea;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .guesses-title {
        font-size: 14px;
        margin-bottom: 8px;
        font-weight: 600;
    }

    .guess-item {
        padding: 8px 10px;
        font-size: 13px;
        margin-bottom: 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        border-left: 4px solid;
        border-radius: 4px;
    }

    .guess-name {
        flex: 1;
    }

    .guess-distance {
        font-size: 13px;
        font-weight: 600;
    }

    .guess-item .circle-marker {
        width: 14px;
        height: 14px;
        min-width: 14px;
        min-height: 14px;
    }

    /* Map zoom controls */
    .leaflet-bottom.leaflet-right {
        bottom: 52px !important;
        right: 8px !important;
    }

    .leaflet-control-zoom a {
        width: 32px !important;
        height: 32px !important;
        line-height: 32px !important;
        font-size: 18px !important;
    }
    
    /* End screen */
    .congrats-content {
        padding: 40px 30px;
        max-width: 95vw;
        width: 95vw;
    }
    
    .congrats-message {
        font-size: 48px;
    }
    
    .congrats-city-name {
        font-size: 40px;
    }
    
    .congrats-city-image {
        max-width: 100%;
    }
    
    .congrats-guesses {
        font-size: 18px;
    }
    
    /* Info buttons */
    .help-button {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .about-button {
        top: 50px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .start-screen-content {
        padding: 15px 10px;
    }

    .game-title {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .game-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .instructions {
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    .instructions-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .instructions-text {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .color-examples {
        gap: 6px;
    }

    .color-example {
        font-size: 11px;
        gap: 6px;
    }

    .color-example svg {
        width: 18px;
        height: 18px;
    }

    .start-button {
        padding: 12px 32px;
        font-size: 16px;
        margin-top: 5px;
    }
    
    .hint-button {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 160px;
    }
    
    .view-toggle-button {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .congrats-message {
        font-size: 36px;
    }
    
    .congrats-city-name {
        font-size: 32px;
    }
    
    .congrats-guesses {
        font-size: 16px;
    }
    
    .guess-item {
        font-size: 14px;
    }
    
    .guess-distance {
        font-size: 14px;
    }
}

/* Very wide screens */
@media (min-width: 1920px) {
    .instructions {
        max-width: 800px;
    }
    
    .congrats-content {
        max-width: 1100px;
    }
}
