/* ═══════════════════════════════════════════════════════════════════
   N1GUESSR — Full-screen immersive layout
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --ink:    #f7fbff;
    --muted:  #aeb8c2;
    --panel:  rgba(12, 14, 18, 0.92);
    --line:   rgba(255,255,255,0.13);
    --accent: #29d0c3;
    --gold:   #ffbe4d;
    --red:    #ff5e5e;
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --radius: 12px;
    --blur:   blur(14px);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0a0c10;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* ── HEADER / FOOTER ────────────────────────────────────────────── */
.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(14px, 3vw, 40px);
    border-bottom: 1px solid var(--line);
    background: rgba(10,12,16,0.96);
    backdrop-filter: var(--blur);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-footer {
    color: var(--muted);
    font-size: .88rem;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.brand, .main-nav, .inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand { font-weight: 900; min-width: max-content; }

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-mark {
    display: inline-grid;
    width: 36px; height: 36px;
    place-items: center;
    border-radius: 8px;
    color: #0b1111;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    font-size: .78rem;
    font-weight: 900;
}

.main-nav { flex-wrap: wrap; justify-content: flex-end; color: var(--muted); }
.main-nav a, .link-button { padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover, .link-button:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.nav-user { color: var(--gold); }
.inline-form { margin: 0; }
.link-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; }

main { min-height: calc(100vh - 132px); }

/* ── GAME PAGE ────────────────────────────────────────────────────── */
.game-page main {
    position: relative;
    height: calc(100vh - 56px); /* minus header only */
    overflow: hidden;
}
.game-page .site-footer { display: none; }

/* ── GAME ROOT ────────────────────────────────────────────────────── */
.game-root {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #080b0e;
}

/* ── VIEWPORT (full canvas) ───────────────────────────────────────── */
.game-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}
.game-viewport.is-dragging { cursor: grabbing; }

#world-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* ── HUD OVERLAY (top-left) ───────────────────────────────────────── */
.hud-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 40;
    pointer-events: none;
}

.hud-row {
    display: flex;
    gap: 10px;
}

.hud-stat {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: var(--blur);
    pointer-events: auto;
}

.hud-label {
    display: block;
    color: var(--accent);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hud-label-inline {
    color: var(--muted);
    font-size: .85rem;
    margin-left: 3px;
}

.hud-stat strong {
    display: block;
    margin-top: 3px;
    font-size: 1.25rem;
    font-weight: 900;
}

/* ── ROTATION CONTROLS ────────────────────────────────────────────── */
.rotation-controls {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: var(--panel);
    backdrop-filter: var(--blur);
    transition: opacity .3s;
}

.rotation-controls:hover { opacity: 1 !important; }

.rot-btn {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: var(--ink);
    cursor: pointer;
    font-size: .95rem;
    transition: background .2s, transform .15s;
}
.rot-btn:hover {
    background: rgba(41,208,195,.25);
    color: var(--accent);
    transform: scale(1.1);
}
.rot-btn:active { transform: scale(.94); }

/* ── LOOK HINT ────────────────────────────────────────────────────── */
.look-hint {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 40;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: var(--blur);
    color: var(--muted);
    font-size: .82rem;
    pointer-events: none;
    transition: opacity .5s;
}

.photo-credit {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 40;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: var(--blur);
    color: var(--muted);
    font-size: .78rem;
    pointer-events: none;
    max-width: 220px;
}

.loading-screen {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(8,11,14,.92);
    backdrop-filter: var(--blur);
    font-size: 1.2rem;
    color: var(--muted);
    letter-spacing: .06em;
}

/* ── RESULT CARD OVERLAY ──────────────────────────────────────────── */
.result-card-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    min-width: 280px;
    max-width: 420px;
    padding: 28px 32px;
    border: 1px solid rgba(41,208,195,.35);
    border-radius: 18px;
    background: rgba(10,14,18,.92);
    backdrop-filter: blur(20px);
    text-align: center;
    box-shadow: var(--shadow);
}

.result-card-overlay strong {
    display: block;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.result-card-overlay p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

/* ── END GAME OVERLAY ─────────────────────────────────────────────── */
.end-game-overlay {
    position: absolute;
    inset: 0;
    z-index: 55;
    display: grid;
    place-items: center;
    background: rgba(8,11,14,.85);
    backdrop-filter: blur(24px);
}

.end-game-inner {
    max-width: 480px;
    padding: 42px 40px;
    border: 1px solid rgba(255,190,77,.35);
    border-radius: 20px;
    background: rgba(14,17,22,.95);
    text-align: center;
    box-shadow: var(--shadow);
}

.end-trophy { font-size: 3.5rem; margin-bottom: 16px; }

.end-game-msg {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.5;
    margin-bottom: 24px;
}

.end-actions { justify-content: center; }

/* ── MINI-MAP CONTAINER (bottom-right) ───────────────────────────── */
.minimap-container {
    position: absolute;
    bottom: 22px;
    right: 22px;
    z-index: 45;

    /* Collapsed state */
    width: 340px;
    height: 260px;
    transition: width .35s cubic-bezier(.4,0,.2,1),
                height .35s cubic-bezier(.4,0,.2,1),
                box-shadow .35s;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
    border: 2px solid rgba(255,255,255,.18);
}

/* Expanded on hover or when result is shown */
.minimap-container:hover,
.minimap-container.expanded {
    width: 540px;
    height: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.75);
    border-color: rgba(41,208,195,.45);
}

.minimap-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(10,13,18,.97);
    backdrop-filter: var(--blur);
}

/* Header inside minimap */
.minimap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.minimap-title {
    font-size: .78rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── TIMER HUD ────────────────────────────────────────────────────── */
.hud-stat-timer {
    min-width: 70px;
    transition: background .3s, border-color .3s;
}
.hud-stat-timer strong {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    transition: color .3s;
}
.hud-stat-timer.timer-warning {
    border-color: rgba(255,190,77,.6);
    background: rgba(255,190,77,.12);
}
.hud-stat-timer.timer-warning strong { color: var(--gold); }
.hud-stat-timer.timer-danger {
    border-color: rgba(255,80,80,.7);
    background: rgba(255,80,80,.15);
    animation: timerPulse .6s ease-in-out infinite;
}
.hud-stat-timer.timer-danger strong { color: #ff5555; }
.hud-stat-timer.timer-expired {
    border-color: rgba(255,80,80,.4);
    background: rgba(255,80,80,.08);
    animation: none;
}
.hud-stat-timer.timer-expired strong { color: #ff5555; }
@keyframes timerPulse {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* ── TIME BONUS TEXT (in result card) ────────────────────────────── */
.time-bonus-text {
    font-size: .82rem;
    font-weight: 700;
    margin: 4px 0 0;
    min-height: 1.2em;
}
.time-bonus-fast { color: #29d0c3; }
.time-bonus-slow { color: var(--muted); }

/* ── LEAFLET MAP ──────────────────────────────────────────────────── */
#guess-map {
    flex: 1;
    min-height: 0;
    cursor: crosshair;
    overflow: hidden;
    background: #080b0e;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-family: inherit;
    background: #080b0e !important;
}
/* Supprime le fond gris par défaut de Leaflet entre les tuiles */
.leaflet-pane,
.leaflet-tile-pane,
.leaflet-map-pane {
    background: #080b0e;
}
/* Cache l'attribution pour ne pas polluer la mini-carte */
.leaflet-control-attribution {
    display: none !important;
}

/* ── MINI-MAP FOOTER ──────────────────────────────────────────────── */
.minimap-footer {
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}

.btn-full { width: 100%; }

/* ── BUTTONS ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    transition: filter .15s, transform .1s;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { cursor: not-allowed; opacity: .5; }

.btn-primary {
    color: #071313;
    background: linear-gradient(135deg, var(--accent), #8ce86f);
}

.btn-secondary {
    color: #1b1102;
    background: var(--gold);
}

.btn-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255,255,255,.06);
}

.hud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

/* ── SAVE NOTE ────────────────────────────────────────────────────── */
.save-note-overlay {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    padding: 8px 16px;
    border: 1px solid rgba(41,208,195,.24);
    border-radius: 20px;
    background: rgba(41,208,195,.08);
    color: var(--muted);
    font-size: .8rem;
    white-space: nowrap;
    pointer-events: none;
}

/* ── NON-GAME PAGES ───────────────────────────────────────────────── */
.flash, .alert, .empty-state {
    border: 1px solid rgba(255,190,77,.32);
    border-radius: 8px;
    background: rgba(255,190,77,.12);
    color: #ffe6b4;
}
.flash { margin: 18px clamp(18px, 4vw, 48px) 0; padding: 12px 14px; }
.alert { padding: 10px 12px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(320px,1.05fr);
    gap: clamp(28px,5vw,72px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(28px,5vw,72px);
}
.hero-copy { max-width: 680px; }
.eyebrow { display: block; color: var(--accent); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
h1 { margin: 8px 0 18px; font-size: clamp(3rem,8vw,6.8rem); line-height: .94; overflow-wrap: anywhere; }
h2, p { overflow-wrap: anywhere; }
.hero p { color: var(--muted); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.feature-band {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    margin: 0 clamp(18px,4vw,48px) 48px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}
.feature-band article { padding: 28px; background: rgba(23,27,32,.94); }
.feature-number { color: var(--gold); font-weight: 900; }

.auth-shell, .page-heading, .table-panel { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.auth-shell { display: grid; min-height: calc(100vh - 160px); place-items: center; padding: 42px 0; }
.auth-card, .table-panel { border: 1px solid var(--line); border-radius: 8px; background: rgba(21,24,28,.9); box-shadow: var(--shadow); }
.auth-card { width: min(460px,100%); padding: clamp(22px,4vw,34px); }
.auth-card h1, .page-heading h1 { font-size: clamp(2.2rem,6vw,4rem); }
.auth-card label { display: block; margin: 16px 0 7px; font-weight: 700; }
.auth-card input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: rgba(255,255,255,.08); outline: none; }
.auth-card input:focus { border-color: var(--accent); }
.auth-card .btn { width: 100%; margin-top: 22px; }
.form-link { display: block; margin-top: 16px; color: var(--accent); text-align: center; }
.page-heading { padding: 48px 0 24px; }
.table-panel { margin-bottom: 48px; padding: clamp(18px,3vw,28px); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 660px; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--accent); font-size: .78rem; text-transform: uppercase; }
td:first-child { color: var(--gold); font-weight: 900; }

.scene-preview {
    min-height: 470px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(#89d4ff 0 44%, #718b54 44% 100%);
    box-shadow: var(--shadow);
}

.rank-cell { font-size: 1.1rem; }
.score-cell { color: var(--accent); font-weight: 700; }
.date-cell { color: var(--muted); font-size: .85rem; }
.rank-gold td   { background: rgba(255,190,77,.07); }
.rank-silver td { background: rgba(180,180,200,.06); }
.rank-bronze td { background: rgba(180,120,60,.06); }

[hidden] { display: none !important; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .feature-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
    .main-nav { justify-content: flex-start; }
    .hero { padding: 28px 18px; }
    h1 { font-size: clamp(2.7rem,16vw,4.2rem); }
    .minimap-container { width: 200px; height: 150px; }
    .minimap-container:hover, .minimap-container.expanded { width: 320px; height: 280px; }
}

/* ══════════════════════════════════════════════════════════════════
   TOP 5 WIDGET (overlay top-right sur la page de jeu)
   ══════════════════════════════════════════════════════════════════ */
.top5-widget {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 40;
    min-width: 190px;
    padding: 12px 14px 10px;
    border: 1px solid rgba(255, 190, 77, 0.28);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: var(--blur);
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    transition: opacity .3s;
}

.top5-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.top5-icon { font-size: 1rem; }

.top5-title {
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gold);
}

.top5-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top5-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.04);
    font-size: .82rem;
}

.top5-gold   { background: rgba(255,190,77,.12); }
.top5-silver { background: rgba(200,200,220,.07); }
.top5-bronze { background: rgba(180,110,60,.09); }

.top5-medal {
    font-size: .85rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--muted);
    font-weight: 800;
    font-size: .75rem;
}

.top5-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--ink);
}

.top5-score {
    font-size: .78rem;
    font-weight: 800;
    color: var(--accent);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.top5-empty {
    color: var(--muted);
    font-size: .8rem;
    text-align: center;
    padding: 4px 0 2px;
}

/* ══════════════════════════════════════════════════════════════════
   CLASSEMENT — PAGE EN DÉVELOPPEMENT
   ══════════════════════════════════════════════════════════════════ */
.classement-page main {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 132px);
    padding: 32px 18px;
}

.dev-shell {
    width: 100%;
    display: grid;
    place-items: center;
}

.dev-card {
    width: min(480px, 100%);
    padding: 44px 40px 36px;
    border: 1px solid rgba(255, 190, 77, .3);
    border-radius: 20px;
    background: rgba(18, 21, 26, .97);
    box-shadow: var(--shadow);
    text-align: center;
}

.dev-icon {
    font-size: 3.2rem;
    margin-bottom: 14px;
    line-height: 1;
}

.dev-eyebrow {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 8px;
}

.dev-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 18px;
    color: var(--ink);
}

.dev-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 26px;
    font-size: .95rem;
}

.dev-desc strong { color: var(--ink); }

.dev-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dev-note {
    font-size: .82rem;
    color: var(--muted);
    padding: 10px 14px;
    border: 1px solid rgba(41,208,195,.2);
    border-radius: 10px;
    background: rgba(41,208,195,.06);
    line-height: 1.55;
}

.dev-note strong { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   NAV BADGE "Dev"
   ══════════════════════════════════════════════════════════════════ */
.nav-dev-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--muted);
    opacity: .7;
}
.nav-dev-link:hover { color: var(--ink); background: rgba(255,255,255,.08); opacity: 1; }

.nav-dev-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 20px;
    background: rgba(255,190,77,.2);
    border: 1px solid rgba(255,190,77,.4);
    color: var(--gold);
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.6;
}

/* ── Classement ──────────────────────────────────────────────────────────── */
.classement-section {
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
}

.classement-container {
    width: 100%;
    max-width: 760px;
}

.classement-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.classement-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    overflow: hidden;
}

.classement-table thead tr {
    background: rgba(255,255,255,.08);
}

.classement-table th,
.classement-table td {
    padding: .75rem 1rem;
    text-align: left;
    font-size: .95rem;
}

.classement-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.02);
}

.classement-table tbody tr:hover {
    background: rgba(255,255,255,.06);
}

.classement-table tbody tr.self-row {
    background: rgba(99, 102, 241, .18);
    font-weight: 600;
}

.you-badge {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .45rem;
    background: #6366f1;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
}

.your-rank-info {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,.7);
    font-size: .9rem;
}

.classement-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255,255,255,.5);
}

.classement-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ── MINIMAP AMÉLIORÉE ────────────────────────────────────────────── */

/* Coords display */
.coords-display {
    display: block;
    font-size: .7rem;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    text-align: center;
    letter-spacing: .04em;
    padding: 2px 0 4px;
    opacity: .85;
}

/* Boutons minimap footer */
.minimap-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-flex { flex: 1; }
.btn-icon {
    min-width: 36px;
    width: 36px;
    padding: 0;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ── PIN MARQUEUR GUESS ───────────────────────────────────────────── */
.guess-pin {
    position: relative;
    width: 28px;
    height: 28px;
}
.guess-pin-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #29d0c3;
    border: 2.5px solid #fff;
    box-shadow: 0 0 10px rgba(41,208,195,.9);
    z-index: 2;
}
.guess-pin-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(41,208,195,.5);
    animation: ping 1.4s ease-out infinite;
}
@keyframes ping {
    0%   { transform: translate(-50%,-50%) scale(.5); opacity: 1; }
    100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

/* Marqueur de la vraie position */
.true-pin {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ff5e5e;
    border: 2.5px solid #fff;
    box-shadow: 0 0 12px rgba(255,94,94,.9);
}

/* Tiles CartoDB dark — pas de filtre, les tuiles sont déjà optimisées */
/* .leaflet-tile-pane { filter: brightness(.92) saturate(.85); } */
