body {
    margin: 0;
    overflow: hidden;
}

/* --- STYLES WW2 --- */
.theme-ww2 {
    font-family: 'Courier Prime', monospace;
    background-color: #2c2c2c;
    color: #dcdcdc;
}

.theme-ww2 .font-title {
    font-family: 'Special Elite', cursive;
}

.theme-ww2 .paper-texture {
    background-color: #f4e4bc;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.theme-ww2 .vignette {
    box-shadow: inset 0 0 150px rgba(62, 53, 41, 0.8);
    pointer-events: none;
    z-index: 5;
}

.theme-ww2 .map-bg {
    background-color: #c2b280;
}

/* --- STYLES SIMPLE --- */
.theme-simple {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    font-size: 16px;
}

.theme-simple .font-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.theme-simple .paper-texture {
    background-color: #a5d6f8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.theme-simple .vignette {
    display: none;
}

.theme-simple .map-bg {
    background-color: #a5d6f8;
}

.theme-simple button,
.theme-simple input,
.theme-simple select {
    font-size: 1rem;
}

.theme-simple .text-xs {
    font-size: 0.875rem;
}

.theme-simple .text-sm {
    font-size: 1rem;
}

/* Common */
.map-container {
    overflow: hidden;
}

.retro-select select {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    cursor: pointer;
}

.retro-select::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.feedback-tooltip {
    position: absolute;
    padding: 6px 12px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    z-index: 50;
    white-space: nowrap;
    font-size: 0.85rem;
    border-radius: 4px;
}

.theme-ww2 .feedback-tooltip {
    background: rgba(139, 0, 0, 0.9);
    color: white;
    border: 2px solid #f4e4bc;
    font-family: 'Special Elite', cursive;
}

.theme-simple .feedback-tooltip {
    background: #ef4444;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar {
    width: 8px;
}

.theme-ww2 ::-webkit-scrollbar-track {
    background: #2c2c2c;
}

.theme-ww2 ::-webkit-scrollbar-thumb {
    background: #555;
}

.theme-simple ::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.theme-simple ::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 4px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.theme-ww2 .loader {
    border-top: 4px solid #8b0000;
}

.theme-simple .loader {
    border-top: 4px solid #3b82f6;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.recording-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 20, 60, 0.95);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    font-family: 'Courier Prime', monospace;
}

.recording-dot {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

path.country-path {
    transition: fill 0.5s ease-out;
}

.phase-badge {
    font-size: 10px;
    font-weight: bold;
    fill: white;
    stroke: black;
    stroke-width: 2px;
    paint-order: stroke;
    pointer-events: none;
}

.color-input-wrapper input[type="color"] {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}