body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ecf0f1;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.home-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    
    text-decoration: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    background: #333;
    border-radius: 8px;
    transition: 0.2s;
}

.zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(44, 62, 80, 0.8);
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.zoom-btn:hover {
    background-color: #9b59b6;
}

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


.stats-bar {
    margin-bottom: 20px;
    background: #2c3e50;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    color: #bdc3c7;
}

.stat-box span#score {
    color: #fff;
}

.progress-container {
    height: 12px;
    background-color: #34495e;
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 0.3s ease;
}

.input-area {
    position: relative;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #2c2c2c;
    color: #fff;
    border: 2px solid #444;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
}

input:focus {
    border-color: #9b59b6;
}

.suggestions-list {
    position: absolute;
    background: #2c2c2c;
    border: 1px solid #444;
    border-top: none;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    color: #ecf0f1;
}

.suggestion-item:hover, 
.suggestion-item.active {
    background-color: #9b59b6;
    color: #fff;
}

.map-container {
    width: 100%;
    height: 500px;
    background-color: #1c2833;
    border: 1px solid #444;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.map-container:active {
    cursor: grabbing;
}

.tooltip {
    position: fixed;
    display: none;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;
    border: 1px solid #9b59b6;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.1s ease-out; 
    transform-origin: 0 0;
}

#world-map path, 
#world-map g {
    fill: #4a4a4a;
    stroke: #1c2833;
    stroke-width: 1px;
    transition: fill 0.3s ease;
    vector-effect: non-scaling-stroke; 
}

#world-map path:hover {
    fill: #5a5a5a;
}

#world-map .found {
    fill: #2ecc71 !important;
}

#world-map .found path {
    fill: #2ecc71 !important;
}

#world-map .last-found {
    fill: #9b59b6 !important;
    stroke: #fff;
    z-index: 100;
}

#world-map .last-found path {
    fill: #9b59b6 !important;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;
}

.continent-column h3 {
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.continent-column ul {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.continent-column ul::-webkit-scrollbar {
    width: 5px;
}

.continent-column ul::-webkit-scrollbar-track {
    background: #2c2c2c;
}

.continent-column ul::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.continent-column li {
    padding: 4px 0;
    font-size: 14px;
    color: #27ae60;
    font-weight: 600;
    border-bottom: 1px dashed #333;
}
.give-up-btn {
    padding: 10px 15px;
    margin-left: 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.give-up-btn:hover {
    background-color: #c82333;
}

.give-up-btn:disabled {
    background-color: #e2e6ea;
    color: #6c757d;
    cursor: not-allowed;
}

#world-map path.missed,
#world-map g.missed path,
#world-map g.missed {
    fill: #ff4d4d;
    transition: fill 0.3s ease;
}

#world-map path.missed:hover,
#world-map g.missed:hover path,
#world-map g.missed:hover {
    fill: #ff0000;
    stroke: #333;
    stroke-width: 1px;
}