﻿:root {
    --bg: #eff6ff;
    --panel: #ffffff;
    --muted: #000000;
    --text: #000000;
    --accent: #2a9d8f;
    --accent-strong: #1f7a66;
    --focus-glow: rgba(42, 157, 143, 0.22);
    --border: #e6e8ea;
    --sidebar-panel: rgba(239, 246, 255, 0.92);
    --footer-panel: rgba(239, 246, 255, 0.92);
    --nav-hover: #f1f5f9;
    --nav-active-bg: #f1f5f9;
    --nav-active-text: #c026d3;
    --theme-button-bg: #f1f5f9;
    --theme-button-border: #e2e8f0;
    --theme-toggle-thumb-bg: #ffffff;
    --theme-toggle-thumb-color: #f59e0b;
    --theme-toggle-thumb-translate: 0.25rem;
    --cookie-backdrop: rgba(15, 23, 42, 0.55);
    --cookie-panel-border: rgba(226, 232, 240, 0.9);
    --cookie-panel-bg: rgba(255, 255, 255, 0.98);
    --cookie-panel-shadow: 0 25px 80px rgba(15, 23, 42, 0.25);
    --cookie-text: #0f172a;
    --cookie-muted: #475569;
    --cookie-border: rgba(203, 213, 225, 0.9);
    --cookie-surface: rgba(248, 250, 252, 0.92);
    --cookie-hover-surface: rgba(253, 244, 255, 0.4);
    --cookie-action-bg: #0f172a;
    --cookie-action-text: #ffffff;
    --game-surface: rgba(239, 246, 255, 0.92);
    --game-surface-alt: rgba(255, 255, 255, 0.98);
    --game-surface-subtle: rgba(255, 255, 255, 0.98);
    --game-surface-hover: rgba(249, 250, 251, 0.98);
    --game-border: rgba(168, 85, 247, 0.32);
    --game-border-strong: rgba(147, 51, 234, 0.5);
    --game-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
    --game-shadow-soft: 0 12px 30px rgba(148, 163, 184, 0.14);
    --game-text: #0f172a;
    --game-muted: #475569;
    --game-subtle: #94a3b8;
    --game-accent: #9333ea;
    --game-accent-strong: #7e22ce;
    --game-button-text: #ffffff;
    --game-success: #047857;
    --game-warning: #b45309;
    --game-danger-bg: rgba(244, 63, 94, 0.08);
    --game-danger-border: rgba(244, 63, 94, 0.28);
    --game-danger-text: #be123c;
}

html[data-theme="dark"] {
    --bg: #020617;
    --panel: #0f172a;
    --muted: #cbd5e1;
    --text: #f8fafc;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --focus-glow: rgba(56, 189, 248, 0.28);
    --border: #1e293b;
    --sidebar-panel: rgba(15, 23, 42, 0.95);
    --footer-panel: rgba(15, 23, 42, 0.9);
    --nav-hover: #162033;
    --nav-active-bg: #162033;
    --nav-active-text: #f0abfc;
    --theme-button-bg: #162033;
    --theme-button-border: #334155;
    --theme-toggle-thumb-bg: #1e293b;
    --theme-toggle-thumb-color: #f8fafc;
    --theme-toggle-thumb-translate: 1.75rem;
    --cookie-panel-border: rgba(71, 85, 105, 0.9);
    --cookie-panel-bg: rgba(15, 23, 42, 0.98);
    --cookie-panel-shadow: 0 25px 80px rgba(2, 6, 23, 0.65);
    --cookie-text: #f8fafc;
    --cookie-muted: #cbd5e1;
    --cookie-border: rgba(71, 85, 105, 0.85);
    --cookie-surface: rgba(30, 41, 59, 0.9);
    --cookie-hover-surface: rgba(51, 65, 85, 0.8);
    --cookie-action-bg: #e2e8f0;
    --cookie-action-text: #0f172a;
    --game-surface: rgba(15, 23, 42, 0.82);
    --game-surface-alt: rgba(2, 6, 23, 0.4);
    --game-surface-subtle: rgba(15, 23, 42, 0.8);
    --game-surface-hover: rgba(30, 41, 59, 0.8);
    --game-border: #1e293b;
    --game-border-strong: #334155;
    --game-shadow: 0 20px 30px rgba(2, 6, 23, 0.35);
    --game-shadow-soft: 0 12px 30px rgba(2, 6, 23, 0.28);
    --game-text: #f8fafc;
    --game-muted: #cbd5e1;
    --game-subtle: #64748b;
    --game-accent: #f0abfc;
    --game-accent-strong: #e879f9;
    --game-button-text: #ffffff;
    --game-success: #6ee7b7;
    --game-warning: #fcd34d;
    --game-danger-bg: rgba(244, 63, 94, 0.12);
    --game-danger-border: rgba(244, 63, 94, 0.35);
    --game-danger-text: #fda4af;
}

html:not([data-sidebar="collapsed"]) #themeToggleThumb {
    transform: translateX(var(--theme-toggle-thumb-translate));
    background: var(--theme-toggle-thumb-bg);
    color: var(--theme-toggle-thumb-color);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

html:not([data-sidebar="collapsed"]) .theme-toggle {
    border-color: var(--theme-button-border);
}

html[data-sidebar="collapsed"] #themeToggleThumb {
    color: var(--theme-toggle-thumb-color);
}

.song-guessing-game .bg-slate-900\/70,
html[data-theme="light"] .music-guess-battle #showCreateRoomBtn,
html[data-theme="light"] .music-guess-battle #showJoinRoomBtn,
html[data-theme="light"] .music-guess-battle #createSection,
html[data-theme="light"] .music-guess-battle #joinSection,
html[data-theme="light"] .music-guess-battle .mgb-surface {
    background: var(--game-surface) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow) !important;
}

.song-guessing-game .bg-slate-950\/40,
.song-guessing-game .bg-slate-900\/80,
html[data-theme="light"] .music-guess-battle :is(#ffSelectedTrack, .mgb-preview-panel, #answerForm, #roundCluesSection > div, #roundSummarySection, #roundSummaryList > div, #roundSummaryList > div > div:last-child, #finalResultsSection, #finalPodium > div, #finalResultsList > div, #gameSection > div:first-child .grid > div) {
    background: var(--game-surface-alt) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.song-guessing-game .border-slate-700,
.song-guessing-game .border-slate-800,
html[data-theme="light"] .music-guess-battle #createSection .border-slate-700,
html[data-theme="light"] .music-guess-battle #joinSection .border-slate-700 {
    border-color: var(--game-border) !important;
}

.song-guessing-game .text-slate-100,
.song-guessing-game .text-slate-200,
html[data-theme="light"] .music-guess-battle .text-white,
html[data-theme="light"] .music-guess-battle .mgb-surface .text-slate-300,
html[data-theme="light"] .music-guess-battle .mgb-surface .text-slate-200,
html[data-theme="light"] .music-guess-battle #ffSelectedTrack .text-slate-100,
html[data-theme="light"] .music-guess-battle #playersList li .text-white {
    color: var(--game-text) !important;
}

.song-guessing-game .text-slate-300,
.song-guessing-game .text-slate-400,
.song-guessing-game .text-slate-500,
html[data-theme="light"] .music-guess-battle .text-slate-300,
html[data-theme="light"] .music-guess-battle .text-slate-400,
html[data-theme="light"] .music-guess-battle .text-slate-500,
html[data-theme="light"] .music-guess-battle .text-slate-200,
html[data-theme="light"] .music-guess-battle #playersList li .text-slate-500 {
    color: var(--game-muted) !important;
}

.song-guessing-game .text-fuchsia-300,
html[data-theme="light"] .music-guess-battle .text-fuchsia-300,
html[data-theme="light"] .music-guess-battle .text-emerald-300,
html[data-theme="light"] .music-guess-battle .text-sky-300,
html[data-theme="light"] .music-guess-battle .text-amber-300 {
    color: var(--game-accent) !important;
}

.song-guessing-game .text-emerald-300 {
    color: var(--game-success) !important;
}

.song-guessing-game .text-amber-300 {
    color: var(--game-warning) !important;
}

html[data-theme="light"] .music-guess-battle #ffResultsDropdown {
    background: var(--game-surface-alt) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow) !important;
}

html[data-theme="light"] .music-guess-battle #ffResultsDropdown li button {
    background: transparent !important;
    color: var(--game-text) !important;
    border-bottom-color: var(--game-border) !important;
}

html[data-theme="light"] .music-guess-battle #ffResultsDropdown li button:hover {
    background: var(--game-surface-hover) !important;
}

html[data-theme="light"] .music-guess-battle #ffResultsDropdown li button .truncate.font-medium {
    color: var(--game-text) !important;
}

html[data-theme="light"] .music-guess-battle #ffResultsDropdown li button .text-xs {
    color: var(--game-muted) !important;
}

html[data-theme="light"] .music-guess-battle #selectionStatusBadge.bg-slate-800 {
    background: rgba(148, 163, 184, 0.16) !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: var(--game-text) !important;
}

html[data-theme="light"] .music-guess-battle #selectionStatusBadge.bg-fuchsia-500\/20 {
    background: rgba(168, 85, 247, 0.14) !important;
    border-color: rgba(147, 51, 234, 0.28) !important;
    color: var(--game-accent) !important;
}

html[data-theme="light"] .music-guess-battle #selectionStatusBadge.bg-emerald-500\/20 {
    background: rgba(16, 185, 129, 0.14) !important;
    border-color: rgba(5, 150, 105, 0.28) !important;
    color: var(--game-success) !important;
}

.song-guessing-game .text-rose-200,
.song-guessing-game .text-rose-300,
.song-guessing-game .text-rose-400 {
    color: var(--game-danger-text) !important;
}

.song-guessing-game .border-rose-500\/40 {
    border-color: var(--game-danger-border) !important;
}

.song-guessing-game .bg-rose-500\/10,
.song-guessing-game .bg-rose-500\/15 {
    background: var(--game-danger-bg) !important;
}

.song-guessing-game .placeholder-slate-500::placeholder,
html[data-theme="light"] .music-guess-battle #createSection input::placeholder,
html[data-theme="light"] .music-guess-battle #joinSection input::placeholder {
    color: var(--game-subtle) !important;
}

.song-guessing-game .bg-fuchsia-500,
html[data-theme="light"] .music-guess-battle :is(#createRoomBtn, #joinRoomBtn, #copyInviteBtn, #saveTrackBtn, #startGameBtn, #restartGameBtn, #submitAnswerBtn) {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: 1px solid rgba(126, 34, 206, 0.55) !important;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25) !important;
    color: var(--game-button-text) !important;
}

.song-guessing-game .hover\:bg-fuchsia-400:hover,
html[data-theme="light"] .music-guess-battle :is(#createRoomBtn, #joinRoomBtn, #copyInviteBtn, #saveTrackBtn, #startGameBtn, #restartGameBtn, #submitAnswerBtn):hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
    color: var(--game-button-text) !important;
}

html[data-theme="light"] .music-guess-battle #leaveRoomBtn {
    background: var(--game-surface-alt) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow-soft) !important;
    color: var(--game-text) !important;
}

html[data-theme="light"] .music-guess-battle #leaveRoomBtn:hover {
    background: var(--game-surface-hover) !important;
    border-color: var(--game-border-strong) !important;
    color: var(--game-accent) !important;
}

.song-guessing-game .hover\:bg-slate-800\/80:hover {
    background: var(--game-surface-hover) !important;
}

.song-guessing-game .focus\:ring-fuchsia-500:focus,
html[data-theme="light"] .music-guess-battle #createSection input:focus,
html[data-theme="light"] .music-guess-battle #joinSection input:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.18) !important;
}

.music-guess-battle :is(#showCreateRoomBtn, #showJoinRoomBtn, #createSection, #joinSection, .mgb-surface, #ffSelectedTrack, .mgb-preview-panel, #roundSummarySection, #finalResultsSection, #answerForm, #copyInviteBtn, #leaveRoomBtn) {
    border-radius: 28px !important;
}

.music-guess-battle :is(#backFromCreateBtn, #backFromJoinBtn, #createRoomBtn, #joinRoomBtn, #copyInviteBtn, #saveTrackBtn, #startGameBtn, #restartGameBtn, #submitAnswerBtn, #toggleSelectedTrackPreviewBtn),
.music-guess-battle :is(#hostName, #joinRoomCode, #playerName, #ffSearchBox, #guessInput) {
    border-radius: 18px !important;
}

html[data-theme="light"] .music-guess-battle #showCreateRoomBtn:hover,
html[data-theme="light"] .music-guess-battle #showJoinRoomBtn:hover,
html[data-theme="light"] .music-guess-battle #backFromCreateBtn:hover,
html[data-theme="light"] .music-guess-battle #backFromJoinBtn:hover,
html[data-theme="light"] .music-guess-battle #toggleSelectedTrackPreviewBtn:hover {
    background: var(--game-surface-hover) !important;
    border-color: var(--game-border-strong) !important;
}

html[data-theme="light"] .music-guess-battle #createSection .bg-slate-900\/80,
html[data-theme="light"] .music-guess-battle #joinSection .bg-slate-900\/80,
html[data-theme="light"] .music-guess-battle #createSection input,
html[data-theme="light"] .music-guess-battle #joinSection input,
html[data-theme="light"] .music-guess-battle #ffSelectedTrack,
html[data-theme="light"] .music-guess-battle .mgb-preview-panel {
    background: var(--game-surface-subtle) !important;
    border-color: var(--game-border) !important;
    color: var(--game-text) !important;
}

html[data-theme="light"] .music-guess-battle #backFromCreateBtn,
html[data-theme="light"] .music-guess-battle #backFromJoinBtn,
html[data-theme="light"] .music-guess-battle #toggleSelectedTrackPreviewBtn {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid var(--game-border) !important;
    color: #4c1d95 !important;
}

html[data-theme="light"] .music-guess-battle #playersList li {
    border-color: var(--game-border) !important;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(243, 244, 246, 0.96)) !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.country-guessing-game .country-game-card {
    background: var(--game-surface) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow) !important;
    border: 1px solid var(--game-border);
}

.country-guessing-game .country-game-title {
    color: var(--game-accent) !important;
}

.country-guessing-game .country-game-round,
.country-guessing-game .country-game-meta,
.country-guessing-game .text-slate-300,
.country-guessing-game .text-slate-400,
.country-guessing-game .text-slate-500 {
    color: var(--game-muted) !important;
}

.country-guessing-game .country-game-input {
    background: var(--game-surface-subtle) !important;
    border: 1px solid var(--game-border) !important;
    border-radius: 18px !important;
    color: var(--game-text) !important;
}

.country-guessing-game .country-game-input::placeholder {
    color: var(--game-subtle) !important;
}

.country-guessing-game .country-game-input:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.18) !important;
}

.country-guessing-game .country-game-primary {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: 1px solid rgba(126, 34, 206, 0.55) !important;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25) !important;
    color: var(--game-button-text) !important;
}

.country-guessing-game .country-game-primary:hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
}

.country-higher-lower :is(#higherAnswerButton, #lowerAnswerButton) {
}

.country-border-connection__map {
    height: 420px;
    min-height: 420px;
}

.country-border-connection__map.leaflet-container {
    height: 420px;
    min-height: 420px;
}

.country-border-connection__map--comparison,
.country-border-connection__map--comparison.leaflet-container {
    height: 320px;
    min-height: 320px;
}

.country-border-connection__suggestions {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 18rem;
    overflow-y: auto;
    border: 1px solid var(--game-border);
    border-radius: 1rem;
    background: var(--game-surface-subtle);
    box-shadow: var(--game-shadow-soft);
}

.country-border-connection__suggestion {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--game-text);
    transition: background 160ms ease, color 160ms ease;
}

.country-border-connection__suggestion:hover,
.country-border-connection__suggestion--active {
    background: var(--game-surface-hover);
}

.country-border-connection__suggestion + .country-border-connection__suggestion {
    border-top: 1px solid var(--game-border);
}

.country-border-connection__suggestion-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-border-connection__suggestion-flag {
    width: auto;
    height: 1em;
    min-width: 1.5em;
    border-radius: 0.2rem;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.country-guessing-game .country-game-secondary {
    background: var(--game-surface-subtle) !important;
    border: 1px solid var(--game-border) !important;
    color: var(--game-accent) !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.country-guessing-game .country-game-secondary:hover {
    background: var(--game-surface-hover) !important;
    border-color: var(--game-border-strong) !important;
    color: var(--game-accent-strong) !important;
}

.country-guessing-game .country-game-primary:disabled,
.country-guessing-game .country-game-secondary:disabled {
    opacity: 0.55;
    box-shadow: none !important;
}

.country-guessing-game .country-game-stat {
    background: var(--game-surface-subtle) !important;
    border: 1px solid var(--game-border) !important;
    border-radius: 18px !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.country-guessing-game .country-game-canvas {
    background: var(--game-surface-alt) !important;
    border-color: var(--game-border-strong) !important;
    border-radius: 20px !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.country-guessing-game #feedback {
    background: var(--game-surface-subtle);
    border: 1px solid var(--game-border);
    border-radius: 18px;
    box-shadow: var(--game-shadow-soft);
    padding: 0.75rem 1rem;
}

.country-guessing-game .text-blue-400,
.country-guessing-game .text-purple-400,
.country-guessing-game .text-yellow-400 {
    color: var(--game-accent) !important;
}

.country-guessing-game .text-red-400 {
    color: var(--game-danger-text) !important;
}

.country-higher-lower .country-game-card {
    background: var(--game-surface) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow) !important;
}

.country-higher-lower .country-game-title,
.country-higher-lower .text-emerald-400,
.country-higher-lower .text-sky-300,
.country-higher-lower .text-amber-300 {
    color: var(--game-accent) !important;
}

.country-higher-lower .text-white,
.country-higher-lower .text-slate-950 {
    color: var(--game-text) !important;
}

.country-higher-lower .text-slate-300,
.country-higher-lower .text-slate-400,
.country-higher-lower .text-slate-500,
.country-higher-lower .text-slate-600 {
    color: var(--game-muted) !important;
}

.country-higher-lower .bg-slate-900\/70,
.country-higher-lower .bg-slate-950\/60,
.country-higher-lower .bg-slate-800\/50,
.country-higher-lower .bg-slate-900 {
    background: var(--game-surface-subtle) !important;
}

.country-higher-lower .border-slate-700,
.country-higher-lower .border-slate-800,
.country-higher-lower .border-emerald-500\/30,
.country-higher-lower .border-sky-500\/30,
.country-higher-lower .border-rose-500\/30 {
    border-color: var(--game-border) !important;
}

.country-higher-lower .hover\:bg-slate-950:hover,
.country-higher-lower .hover\:bg-slate-800:hover {
    background: var(--game-surface-hover) !important;
}

.country-higher-lower .hover\:border-emerald-400:hover,
.country-higher-lower .hover\:border-sky-400:hover,
.country-higher-lower .hover\:border-slate-500:hover {
    border-color: var(--game-border-strong) !important;
}

.country-higher-lower .bg-emerald-600,
.country-higher-lower .bg-sky-600,
.country-higher-lower .bg-amber-400 {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: 1px solid rgba(126, 34, 206, 0.55) !important;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25) !important;
    color: var(--game-button-text) !important;
}

.country-higher-lower .hover\:bg-emerald-500:hover,
.country-higher-lower .hover\:bg-sky-500:hover,
.country-higher-lower .hover\:bg-amber-300:hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
    color: var(--game-button-text) !important;
}

.country-higher-lower .text-rose-300,
.country-higher-lower .text-rose-400 {
    color: var(--game-danger-text) !important;
}

.country-higher-lower .bg-rose-500\/10 {
    background: var(--game-danger-bg) !important;
}

.country-higher-lower .border-emerald-500\/30,
.country-higher-lower .bg-emerald-500\/10 {
    border-color: rgba(16, 185, 129, 0.18) !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

.country-border-connection .country-game-card {
    background: var(--game-surface) !important;
    border-color: var(--game-border) !important;
    box-shadow: var(--game-shadow) !important;
}

.country-border-connection .country-game-title,
.country-border-connection .text-emerald-400 {
    color: var(--game-accent) !important;
}

.country-border-connection .text-white {
    color: var(--game-text) !important;
}

.country-border-connection .text-slate-300,
.country-border-connection .text-slate-400,
.country-border-connection .text-slate-500 {
    color: var(--game-muted) !important;
}

.country-border-connection .bg-slate-900\/70,
.country-border-connection .bg-slate-950\/60,
.country-border-connection .bg-slate-900 {
    background: var(--game-surface-subtle) !important;
}

.country-border-connection .border-slate-700,
.country-border-connection .border-slate-800,
.country-border-connection .border-emerald-500\/30,
.country-border-connection .border-rose-500\/30,
.country-border-connection .border-amber-500\/30 {
    border-color: var(--game-border) !important;
}

.country-border-connection .country-game-input {
    background: var(--game-surface-subtle) !important;
    border: 1px solid var(--game-border) !important;
    border-radius: 18px !important;
    color: var(--game-text) !important;
}

.country-border-connection .country-game-input::placeholder {
    color: var(--game-subtle) !important;
}

.country-border-connection .country-game-input:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.18) !important;
}

.country-border-connection .country-game-primary {
    background: linear-gradient(135deg, #a855f7, #9333ea) !important;
    border: 1px solid rgba(126, 34, 206, 0.55) !important;
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25) !important;
    color: var(--game-button-text) !important;
}

.country-border-connection .country-game-primary:hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
}

.country-border-connection .country-game-secondary {
    background: var(--game-surface-subtle) !important;
    border: 1px solid var(--game-border) !important;
    color: var(--game-accent) !important;
    box-shadow: var(--game-shadow-soft) !important;
}

.country-border-connection .country-game-secondary:hover {
    background: var(--game-surface-hover) !important;
    border-color: var(--game-border-strong) !important;
    color: var(--game-accent-strong) !important;
}

.country-border-connection .country-game-primary:disabled,
.country-border-connection .country-game-secondary:disabled {
    opacity: 0.55;
    box-shadow: none !important;
}

.country-border-connection .text-rose-300,
.country-border-connection .text-rose-400 {
    color: var(--game-danger-text) !important;
}

.country-border-connection .text-amber-300 {
    color: var(--game-warning) !important;
}

.country-border-connection .bg-rose-500\/10 {
    background: var(--game-danger-bg) !important;
}

.country-border-connection .bg-amber-500\/10 {
    background: rgba(245, 158, 11, 0.1) !important;
}

.country-border-connection .bg-emerald-500\/10 {
    background: rgba(16, 185, 129, 0.08) !important;
}

.country-border-connection__map {
    background:
        radial-gradient(circle at top, rgba(168, 85, 247, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
}

.country-border-connection .leaflet-container {
    height: 100%;
    width: 100%;
    background: transparent;
    font: inherit;
}

.country-border-connection .leaflet-tooltip {
    border-radius: 9999px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
}

.country-border-connection__route-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--game-border);
    background: var(--game-surface-subtle);
    color: var(--game-text);
    box-shadow: var(--game-shadow-soft);
    font-weight: 600;
}

.country-border-connection__route-chip--target {
    border-color: rgba(34, 197, 94, 0.35);
}

.country-border-connection__route-flag {
    width: 2rem;
    height: 1.35rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.country-border-connection__route-arrow {
    color: var(--game-subtle);
    font-weight: 700;
}

.country-border-connection #borderConnectionRouteComparison > .grid > div {
    height: 100%;
}

.page-shell {
    margin: 2.5rem auto 0;
    padding: 0 1rem;
}

.page-shell--feature,
.catalog-page {
    max-width: 64rem;
}

.page-shell--content {
    max-width: 56rem;
}

.page-shell--game {
    max-width: 48rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header--hero {
    margin-bottom: 3rem;
}

.page-eyebrow {
    color: var(--game-accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-title--hero {
    font-size: clamp(3rem, 5vw, 4.5rem);
}

.page-title--accent {
    color: var(--game-accent);
}

.page-title-gradient {
    background-image: linear-gradient(90deg, #d946ef 0%, #8b5cf6 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-lead {
    margin: 0.75rem 0 0;
    color: var(--game-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 42rem;
}

.page-lead--hero {
    font-size: 1.25rem;
}

.page-note {
    margin: 0.75rem 0 0;
    color: var(--game-subtle);
    font-size: 0.875rem;
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-grid--split {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.feature-card {
    --feature-accent: var(--game-accent);
    display: block;
    border: 1px solid var(--game-border);
    border-radius: 1.5rem;
    background: var(--game-surface);
    box-shadow: var(--game-shadow-soft);
    color: var(--game-text);
    padding: 2rem;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feature-card:hover {
    transform: translateY(-0.35rem);
    border-color: var(--feature-accent);
    box-shadow: var(--game-shadow);
    background: var(--game-surface-hover);
}

.feature-card--hero {
    padding: 2.5rem 2rem;
}

.feature-card--disabled {
    opacity: 0.58;
}

.feature-card--fuchsia {
    --feature-accent: #9333ea;
}

.feature-card--sky {
    --feature-accent: #0ea5e9;
}

.feature-card--emerald {
    --feature-accent: #10b981;
}

.feature-card--blue {
    --feature-accent: #2563eb;
}

.feature-card--muted {
    --feature-accent: var(--game-subtle);
}

.feature-card__icon {
    margin-bottom: 1rem;
    font-size: 3rem;
    line-height: 1;
}

.feature-card__icon--small {
    font-size: 2rem;
}

.feature-card__title {
    margin: 0 0 0.5rem;
    color: var(--game-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card__title--accent {
    color: var(--feature-accent);
}

.feature-card__title--muted {
    color: var(--game-subtle);
}

.feature-card__text {
    margin: 0;
    color: var(--game-muted);
    line-height: 1.7;
}

.feature-card__text--large {
    font-size: 1.125rem;
}

.feature-card__text--spaced {
    margin-bottom: 1rem;
}

.feature-card__text--muted {
    color: var(--game-subtle);
}

.feature-card__meta {
    margin-top: 1rem;
    display: grid;
    gap: 0.4rem;
    color: var(--game-muted);
    font-size: 0.95rem;
}

.feature-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card__arrow {
    color: var(--feature-accent);
    font-weight: 700;
}

.feature-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    background: rgba(147, 51, 234, 0.12);
    color: var(--feature-accent);
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.content-page,
.legal-page {
    display: grid;
    gap: 2rem;
}

.content-card,
.legal-page section {
    border: 1px solid var(--game-border);
    border-radius: 1.75rem;
    background: var(--game-surface);
    box-shadow: var(--game-shadow-soft);
    padding: 1.5rem;
}

.content-card__title,
.legal-page section h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.content-card__title--small {
    font-size: 1.25rem;
}

.content-card__text,
.legal-copy,
.legal-page p,
.legal-page li,
.legal-page .text-slate-600 {
    color: var(--game-muted) !important;
    line-height: 1.7;
}

.content-card__text--spaced {
    margin-top: 0.75rem;
}

.content-card__actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-link-card {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--game-border);
    border-radius: 1.25rem;
    background: var(--game-surface-subtle);
    color: var(--text);
    padding: 0.9rem 1rem;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-link-card:hover {
    border-color: var(--game-border-strong);
    background: var(--game-surface-hover);
    transform: translateY(-1px);
}

.contact-link-card__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--game-accent);
}

.contact-link-card__text {
    font-weight: 600;
}

.social-card-grid {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.social-card {
    border: 1px solid var(--game-border);
    border-radius: 1.5rem;
    background: var(--game-surface-subtle);
    padding: 1.25rem;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.social-card:hover {
    border-color: var(--game-border-strong);
    background: var(--game-surface-hover);
    transform: translateY(-1px);
}

.social-card__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 0.75rem;
    color: #fff;
}

.social-card__icon--neutral {
    background: #0f172a;
}

.social-card__icon--instagram {
    background: #ec4899;
}

.social-card__meta {
    min-width: 0;
}

.social-card__title {
    color: var(--text);
    font-weight: 700;
}

.social-card__text {
    color: var(--game-muted);
    font-size: 0.875rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 9999px;
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 160ms ease, filter 160ms ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.cta-button--paypal {
    background: #0070ba;
    color: #fff;
}

.cta-button--paypal:hover {
    background: #005ea6;
    color: #fff;
}

.legal-copy--wide {
    max-width: 100%;
}

.legal-page .text-slate-900,
.legal-page h3,
.legal-page strong,
.legal-page .font-medium {
    color: var(--text) !important;
}

.legal-page ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

.legal-page li + li {
    margin-top: 0.5rem;
}

.legal-page a {
    color: var(--game-accent);
}

.legal-page a:hover {
    color: var(--game-accent-strong);
}

.error-card {
    border-color: var(--game-danger-border);
}

.error-card__eyebrow {
    color: var(--game-danger-text);
}

.error-card__title {
    margin-top: 0.5rem;
}

.error-card__request-id {
    margin: 1rem 0 0;
    color: var(--game-muted);
}

.error-card__request-id code {
    border-radius: 0.75rem;
    background: var(--game-surface-subtle);
    color: var(--text);
    padding: 0.2rem 0.45rem;
}

.error-card__details {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.words-page__title {
    margin-bottom: 1rem;
}

.words-start-form,
.words-game-card {
    border: 1px solid var(--game-border);
    border-radius: 1.75rem;
    background: var(--game-surface);
    box-shadow: var(--game-shadow);
}

.words-start-form {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    padding: 1.25rem;
}

.words-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--game-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.words-field--inline {
    min-width: max-content;
}

.words-select,
.words-input {
    min-width: 10rem;
    border: 1px solid var(--game-border);
    border-radius: 1rem;
    background: var(--game-surface-subtle);
    color: var(--game-text);
    padding: 0.7rem 0.9rem;
}

.words-input {
    flex: 1;
    min-width: 12rem;
}

.words-select:focus,
.words-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.18);
}

.words-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--game-button-text);
    transition: transform 160ms ease, filter 160ms ease;
}

.words-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.words-button--primary {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25);
}

.words-button--success {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.words-empty-state {
    color: var(--game-muted);
    font-size: 0.95rem;
}

.words-game-card {
    margin-top: 1rem;
    padding: 1.5rem;
}

.words-game-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--game-text);
    font-size: 0.9rem;
}

.words-game-stats__divider {
    color: var(--game-subtle);
}

.words-masked-word {
    margin: 1rem 0 0;
    color: var(--game-text);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
}

.words-guess-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.words-feedback {
    margin-top: 0.75rem;
    color: var(--game-muted);
    font-weight: 600;
}

.words-summary-card {
    margin-top: 1.25rem;
    border: 1px solid var(--game-border);
    border-radius: 1.25rem;
    background: var(--game-surface-subtle);
    padding: 1rem;
}

.words-summary-title {
    margin: 0 0 0.5rem;
    color: var(--game-accent);
    font-size: 1.125rem;
    font-weight: 700;
}

.words-summary-copy,
.words-details,
.words-rounds-list {
    color: var(--game-text);
    font-size: 0.9rem;
}

.words-details {
    margin-top: 0.75rem;
}

.words-details__summary {
    color: var(--game-text);
    cursor: pointer;
    font-weight: 600;
}

.words-rounds-list {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .feature-grid--split,
    .social-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}