/* © 2026 Monuverse. Tous droits réservés. Reproduction interdite sans autorisation (voir LICENSE.md). */
/* Monuverse v1 — nuit étoilée : l'or pour ce qu'on possède, l'aqua pour l'action d'explorer. */
:root {
  color-scheme: dark;
  --night: #070C1A;
  --panel: #10192D;
  --panel-2: #16223D;
  --line: #22304F;
  --ink: #EEF2FA;
  --muted: #8F9CB7;
  --gold: #F5B841;
  --gold-hi: #FFE2A0;
  --sea: #4FE0CF;
  --sea-ink: #052522;
  --aurora: #8B7CF6;
  --danger: #F28A7A;
  --r-commune: #A9B6CC;
  --r-rare: #5B9DF0;
  --r-epique: #B07CF2;
  --r-legendaire: #F5B841;
  --f-display: "Unbounded", "Avenir Next", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--night); color: var(--ink); }
body { font: 15px/1.45 var(--f-body); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.app { position: relative; max-width: 480px; height: 100%; margin: 0 auto; overflow: hidden;
  background:
    radial-gradient(60% 35% at 85% 4%, rgba(139,124,246,.20), transparent 70%),
    radial-gradient(70% 40% at 8% 30%, rgba(79,224,207,.08), transparent 70%),
    var(--night); }
.app::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 78% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 33% 27%, #CFE6FF 50%, transparent 51%), radial-gradient(1px 1px at 91% 31%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 48%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 64% 18%, #FFE9C2 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 57%, #CFE6FF 50%, transparent 51%); }
.view { position: absolute; inset: 0; z-index: 1; }

/* Boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 1px solid transparent; border-radius: 16px; padding: 12px 16px; font-weight: 700; transition: transform .14s var(--ease), filter .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.gold { color: #2A1B00; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, #E09A26); box-shadow: 0 10px 26px -10px rgba(245,184,65,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.sea { color: var(--sea-ink); background: radial-gradient(circle at 30% 20%, #A5FFF3, var(--sea) 60%, #22B3A3); box-shadow: 0 10px 26px -10px rgba(79,224,207,.7); }
.btn.ghost { background: rgba(16,25,45,.8); border-color: var(--line); color: var(--ink); }
a.btn { text-decoration: none; }
.btn.small { width: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; }
.link { background: none; border: 0; color: var(--sea); font-weight: 600; padding: 6px 0; }

/* Accueil */
.welcome { overflow-y: auto; padding: calc(var(--safe-t) + 36px) max(20px, env(safe-area-inset-right)) calc(var(--safe-b) + 28px) max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 22px; }
.logo { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.logo span, .top .city-btn b { color: var(--gold); }
.brand { display: block; width: min(250px, 72%); height: auto; max-width: 100%; margin: 0 auto 6px; border-radius: 26px; background: #fff; padding: 10px 14px; box-shadow: 0 18px 50px -20px rgba(79,224,207,.45), 0 0 0 1px rgba(255,255,255,.08); }
:root[data-theme="light"] .brand { box-shadow: 0 14px 40px -22px rgba(14,26,51,.35), 0 0 0 1px var(--line); }
.welcome h1 { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 10px; text-wrap: balance; text-align: center; }
.welcome .wel-top p { margin: 0 auto; text-align: center; }
.welcome p { color: var(--muted); margin: 0; max-width: 40ch; }
.wel-card { grid-template-columns: minmax(0, 1fr); min-width: 0; background: rgba(16,25,45,.85); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: grid; gap: 12px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.search-row { display: flex; gap: 8px; }
.search-row input, .field input, .field select { flex: 1; min-width: 0; min-height: 46px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 16px; }
.results { display: grid; gap: 8px; }
.res { display: grid; gap: 2px; text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.res b { font-size: 15px; } .res span { color: var(--muted); font-size: 13px; }
.res:hover { border-color: var(--sea); }
.fine { color: var(--muted); font-size: 12.5px; margin: 0; }
.msg { color: var(--muted); font-size: 13.5px; margin: 0; }
.msg.err { color: var(--danger); }

/* Chargement */
.loading { display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; }
.loading span { color: var(--muted); max-width: 30ch; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--sea); animation: spin 1s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Structure principale */
.main { display: flex; flex-direction: column; }
.top { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 16px 8px; }
.city-btn { display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; min-width: 0; }
.city-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-btn svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.streak-chip svg { width: 16px; height: 16px; color: #FF9B4A; }
.streak-chip.cold svg { color: var(--muted); }
.me { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); background: var(--panel-2); font-weight: 800; }
.screens { flex: 1; position: relative; min-height: 0; }
.screen { position: absolute; inset: 0; overflow-y: auto; padding: 4px 16px 24px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 8px 8px calc(var(--safe-b) + 10px); background: rgba(9,14,28,.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.06); }
.tab { background: none; border: 0; display: grid; justify-items: center; gap: 3px; font-size: 11px; white-space: nowrap; color: var(--muted); padding: 4px 0; min-height: 48px; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]:not(.scan) svg { color: var(--gold); }
.tab.scan .disc { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-top: -28px; color: var(--sea-ink); background: radial-gradient(circle at 35% 30%, #A5FFF3, var(--sea) 55%, #22B3A3); box-shadow: 0 8px 24px rgba(79,224,207,.45); position: relative; }
.tab.scan .disc svg { width: 30px; height: 30px; }
.tab.scan .disc::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sea); opacity: 0; animation: beacon 2.6s var(--ease) infinite; }
.tab.scan.near .disc::after { animation-duration: 1.1s; }
@keyframes beacon { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* Ma ville */
.hero { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 22px; margin: 6px 0 12px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(245,184,65,.14), transparent 60%), var(--panel); border: 1px solid var(--line); }
.ring { width: 112px; height: 112px; }
.ring .tr { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.ring .pr { fill: none; stroke: url(#rg); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring text { fill: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 24px; text-anchor: middle; dominant-baseline: central; }
.ring .sm { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); font-weight: 500; }
.hero h2 { font-family: var(--f-display); font-weight: 700; font-size: 19px; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.hero p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.hero .xp { margin-top: 8px; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C8862A, var(--gold) 60%, var(--gold-hi)); transition: width .8s var(--ease); }
.bar.sea i { background: linear-gradient(90deg, #22B3A3, var(--sea)); }

.daily { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(79,224,207,.14), rgba(139,124,246,.12)), var(--panel); border: 1px solid rgba(79,224,207,.35); }
.daily.done { border-color: rgba(245,184,65,.45); background: linear-gradient(135deg, rgba(245,184,65,.14), rgba(139,124,246,.10)), var(--panel); }
.daily .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(7,12,26,.6); color: var(--sea); }
.daily.done .ic { color: var(--gold); }
.daily .ic svg { width: 28px; height: 28px; }
.daily b { display: block; font-size: 14.5px; line-height: 1.25; }
.daily span { color: var(--muted); font-size: 12.5px; }
.daily .go { border: 0; border-radius: 12px; background: var(--sea); color: var(--sea-ink); font-weight: 700; font-size: 13px; padding: 9px 12px; }
.eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.daily.done .eyebrow { color: var(--gold); }

.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.share-row .btn { min-height: 46px; font-size: 14px; }

.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 20px 0 8px; }
.sec h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; font-weight: 500; }
.sec span { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #2A1B00; }

.places { display: grid; gap: 8px; }
.pl { --rc: var(--r-commune); display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 8px 8px; }
.pl .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--rc); background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%), #0B1322; overflow: hidden; }
.pl .ic svg { width: 30px; height: 30px; }
.pl .ic img { width: 100%; height: 100%; object-fit: cover; }
.pl div { display: grid; min-width: 0; }
.pl b { font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pl span { color: var(--muted); font-size: 12.5px; }
.pl .rt { text-align: right; display: grid; justify-items: end; gap: 2px; }
.pl .dist { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.pl .gem { font-size: 10.5px; font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rc); }
.pl.locked b { color: #C9D2E2; }
.pl.got { border-color: color-mix(in srgb, var(--rc) 50%, var(--line)); }
.pl.today { border-color: var(--sea); box-shadow: 0 0 0 1px var(--sea) inset; }
.r-commune { --rc: var(--r-commune); } .r-rare { --rc: var(--r-rare); } .r-epique { --rc: var(--r-epique); } .r-legendaire { --rc: var(--r-legendaire); }
.more { margin-top: 10px; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }

/* Explorer */
.gps { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin: 6px 0 12px; }
.gps i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.gps.ok i { background: var(--sea); box-shadow: 0 0 10px var(--sea); }
.gps.warn i { background: var(--gold); }
.gps.bad i { background: var(--danger); }
.gps span { color: var(--muted); }
.radar { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto 14px; }
.radar svg { width: 100%; height: 100%; display: block; }
.radar .bg { fill: url(#radar-g); stroke: rgba(79,224,207,.35); }
.radar .rg { fill: none; stroke: rgba(79,224,207,.16); }
.radar .lbl { fill: var(--muted); font-family: var(--f-mono); font-size: 9px; }
.radar .sweep { transform-origin: 150px 150px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .me-dot { fill: var(--sea); stroke: #fff; stroke-width: 2; }
.radar .dot { cursor: pointer; }
.radar .dot circle { stroke: var(--night); stroke-width: 1.5; }
.radar .dot.got circle { opacity: .45; }
.radar .dot.today circle { stroke: var(--sea); stroke-width: 2.5; }
.target { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: grid; gap: 12px; }
.target.inrange { border-color: var(--sea); box-shadow: 0 0 0 1px var(--sea) inset, 0 16px 40px -18px rgba(79,224,207,.6); }
.target .row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.target .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: var(--rc); background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%), #0B1322; }
.target .ic svg { width: 38px; height: 38px; }
.target b { font-size: 16px; display: block; }
.target span { color: var(--muted); font-size: 13px; }
.dir { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dir svg { width: 34px; height: 34px; color: var(--sea); flex: none; transition: transform .4s var(--ease); }
.dir b { font-family: var(--f-mono); font-size: 20px; }

/* Classement */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 3px; margin: 6px 0 14px; }
.seg button { border: 0; background: none; padding: 10px 4px; border-radius: 11px; font-weight: 600; font-size: 13px; color: var(--muted); min-height: 42px; }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.lb { display: grid; }
.lb-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lb-row .rk { font-family: var(--f-mono); color: var(--muted); font-size: 13px; }
.lb-row .pts { font-family: var(--f-mono); font-weight: 700; }
.lb-row span small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.lb-row.me { color: var(--gold); }
.lb-row.top .rk { color: var(--gold); font-weight: 700; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.note b { color: var(--ink); }

/* Feuilles, cartes, toasts */
.sheet { position: absolute; inset: 0; z-index: 20; background: rgba(4,7,15,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; align-items: end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-body { background: var(--night); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 14px 18px calc(var(--safe-b) + 22px); max-height: 94%; overflow-y: auto; animation: rise .32s var(--ease); display: grid; gap: 12px; }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 4px; }
.tag { text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.sheet h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 0; text-align: center; text-wrap: balance; letter-spacing: -.01em; }
.sheet p { margin: 0; color: var(--muted); text-align: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.card { --rc: var(--r-commune); position: relative; width: min(280px, 100%); margin: 6px auto 0; border-radius: 20px; padding: 3px; background: var(--rc); }
.card.legendaire { background: conic-gradient(from 120deg, #F5B841, #FFE2A0, #E07A3C, #F5B841, #9FE3D9, #F5B841); }
.card-in { border-radius: 17px; padding: 12px; display: grid; gap: 8px; background: linear-gradient(170deg, var(--panel-2), #0D1527 70%); }
.card .ct { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.card .art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: var(--rc); background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%), #0B1322; }
.card .art svg { width: 52%; height: auto; }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .rar { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }
.card .nm { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.card .fact { font-size: 13px; color: var(--muted); }
.card.reveal { animation: flip .7s var(--ease) both; }
@keyframes flip { 0% { transform: perspective(800px) rotateY(90deg) scale(.8); opacity: 0; } 60% { transform: perspective(800px) rotateY(-8deg) scale(1.03); opacity: 1; } 100% { transform: none; } }
.burst { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--c); animation: shard 1s var(--ease) forwards; transform: rotate(var(--a)) translateX(0); }
@keyframes shard { to { transform: rotate(var(--a)) translateX(var(--r)); opacity: 0; } }
.rewards { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rewards span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-family: var(--f-mono); }
.rewards span.hi { border-color: var(--gold); color: var(--gold); }

.story-prev { width: min(250px, 70%); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); background: var(--panel); }
.story-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }

.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13px; color: var(--muted); }
.toast { position: absolute; left: 16px; right: 16px; top: calc(var(--safe-t) + 12px); z-index: 30; background: var(--gold); color: #2A1B00; border-radius: 14px; padding: 11px 14px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: drop .3s var(--ease); }
.toast.err { background: var(--danger); color: #2A0A06; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }

@media (min-width: 520px) {
  body { background: #04070F; }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Globe */
.gstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.gstats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.gstats b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.gstats span { font-size: 12px; color: var(--muted); }
.globe-wrap { position: relative; margin: 0 -16px; }
#globe { position: relative; display: block; width: 100%; height: 380px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#globe canvas, #globe .gpins { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#globe .gpins { overflow: visible; }
#globe:active { cursor: grabbing; }
#globe .sphere { fill: url(#g-ocean); }
#globe .atmo { fill: url(#g-atmo); pointer-events: none; }
#globe .grat { fill: none; stroke: rgba(160,190,255,.07); stroke-width: .6; }
#globe .land { fill: #2A3B5C; stroke: #3B4F75; stroke-width: .4; }
#globe .land.visited { fill: var(--gold); fill-opacity: .9; stroke: var(--gold-hi); }
#globe .shade { fill: url(#g-shade); pointer-events: none; }
#globe .pin { cursor: pointer; }
#globe .pin .bg { fill: rgba(7,12,26,.92); stroke: rgba(245,184,65,.45); stroke-width: 1; }
#globe .pin .tr { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 3; }
#globe .pin .pr { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
#globe .pin .pc { fill: var(--ink); font-family: var(--f-mono); font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
#globe .pin .lb { fill: var(--ink); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--night); stroke-width: 3px; pointer-events: none; }
#globe .pin.cur .bg { stroke: var(--sea); stroke-width: 2; }
#globe .me { fill: var(--sea); stroke: #fff; stroke-width: 2; }
.zoom { position: absolute; right: 16px; top: 8px; z-index: 2; display: grid; gap: 6px; }
.zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(9,14,28,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 20px; font-weight: 600; display: grid; place-items: center; }
.zoom svg { width: 18px; height: 18px; }
.ghint { position: absolute; left: 16px; bottom: 6px; font-size: 12px; color: var(--muted); pointer-events: none; }
.gfocus { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; background: var(--panel); border: 1px solid var(--sea); border-radius: 16px; padding: 10px 12px; margin: 4px 0 6px; }
.gfocus b { font-size: 15px; } .gfocus span { font-size: 12.5px; color: var(--muted); grid-column: 1; }
.gfocus button { grid-row: 1 / 3; grid-column: 2; border: 0; border-radius: 12px; background: var(--gold); color: #2A1B00; font-weight: 700; font-size: 13px; padding: 10px 12px; }

/* ================= Mode clair =================
   Même identité : l'or reste ce qu'on possède, l'aqua l'action d'explorer ; le ciel devient une aube. */
:root[data-theme="light"] {
  color-scheme: light;
  --night: #F3F5FA;
  --panel: #FFFFFF;
  --panel-2: #EDF1F8;
  --line: #D8DFEB;
  --ink: #0E1A33;
  --muted: #56647E;
  --gold: #E8A526;
  --gold-hi: #FFD77A;
  --gold-ink: #9A6206;
  --sea: #12A899;
  --sea-ink: #032A26;
  --aurora: #7D6BEF;
  --danger: #C8402C;
  --r-commune: #697891;
  --r-rare: #2C6FCC;
  --r-epique: #8447D6;
  --r-legendaire: #C2860E;
}
:root[data-theme="light"] .app { background: radial-gradient(60% 35% at 85% 4%, rgba(125,107,239,.14), transparent 70%), radial-gradient(70% 40% at 8% 30%, rgba(18,168,153,.08), transparent 70%), var(--night); }
:root[data-theme="light"] .app::after { opacity: 0; }
:root[data-theme="light"] .btn.ghost, :root[data-theme="light"] .wel-card { background: var(--panel); }
:root[data-theme="light"] .btn.gold { color: #2A1B00; }
:root[data-theme="light"] .btn.sea { background: radial-gradient(circle at 30% 20%, #8FF2E6, #3FD3C2 60%, #16A595); }
:root[data-theme="light"] .tabbar { background: rgba(255,255,255,.88); border-top-color: var(--line); }
:root[data-theme="light"] .tab[aria-selected="true"]:not(.scan) svg { color: var(--gold-ink); }
:root[data-theme="light"] .tab.scan .disc { background: radial-gradient(circle at 35% 30%, #8FF2E6, #3FD3C2 55%, #16A595); box-shadow: 0 8px 22px rgba(18,168,153,.35); }
:root[data-theme="light"] .logo span, :root[data-theme="light"] .lb-row.me, :root[data-theme="light"] .lb-row.top .rk,
:root[data-theme="light"] .daily.done .eyebrow, :root[data-theme="light"] .rewards span.hi, :root[data-theme="light"] .daily.done .ic { color: var(--gold-ink); }
:root[data-theme="light"] .eyebrow, :root[data-theme="light"] .tag, :root[data-theme="light"] .link { color: #0B8478; }
:root[data-theme="light"] .rewards span.hi { border-color: var(--gold); }
:root[data-theme="light"] .hero { background: radial-gradient(120% 140% at 0% 0%, rgba(232,165,38,.16), transparent 60%), var(--panel); }
:root[data-theme="light"] .daily { background: linear-gradient(135deg, rgba(18,168,153,.10), rgba(125,107,239,.08)), var(--panel); }
:root[data-theme="light"] .daily.done { background: linear-gradient(135deg, rgba(232,165,38,.14), rgba(125,107,239,.06)), var(--panel); }
:root[data-theme="light"] .daily .ic, :root[data-theme="light"] .pl .ic, :root[data-theme="light"] .target .ic, :root[data-theme="light"] .card .art {
  background: radial-gradient(90% 90% at 50% 100%, color-mix(in srgb, var(--rc, var(--sea)) 22%, transparent), transparent 70%), var(--panel-2); }
:root[data-theme="light"] .daily .ic { color: #0B8478; }
:root[data-theme="light"] .daily .go { background: var(--sea); color: #fff; }
:root[data-theme="light"] .pl.locked b { color: var(--ink); }
:root[data-theme="light"] .bar, :root[data-theme="light"] .xpline .track { background: rgba(14,26,51,.08); }
:root[data-theme="light"] .ring .tr { stroke: rgba(14,26,51,.08); }
:root[data-theme="light"] .sheet { background: rgba(20,32,56,.32); }
:root[data-theme="light"] .sheet-body { background: var(--night); }
:root[data-theme="light"] .card-in { background: linear-gradient(170deg, #FFFFFF, var(--panel-2) 80%); }
:root[data-theme="light"] .chip[aria-pressed="true"] { color: #2A1B00; }
:root[data-theme="light"] .seg button[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--gold-ink); }
:root[data-theme="light"] .zoom button { background: rgba(255,255,255,.85); }
:root[data-theme="light"] .radar .lbl { fill: var(--muted); }
:root[data-theme="light"] .radar .rg { stroke: rgba(18,168,153,.25); }
:root[data-theme="light"] .radar .dot circle { stroke: #fff; }
:root[data-theme="light"] #globe .land { fill: #F7F9FC; stroke: #A9BAD3; }
:root[data-theme="light"] #globe .land.visited { fill: var(--gold); stroke: #B57C0B; }
:root[data-theme="light"] #globe .grat { stroke: rgba(20,50,100,.10); }
:root[data-theme="light"] #globe .pin .bg { fill: #fff; stroke: rgba(194,134,14,.6); }
:root[data-theme="light"] #globe .pin .tr { stroke: rgba(14,26,51,.12); }
:root[data-theme="light"] #globe .pin .pr { stroke: var(--gold-ink); }
:root[data-theme="light"] #globe .pin .lb { stroke: #fff; }
:root[data-theme="light"] .gfocus button { color: #2A1B00; }
:root[data-theme="light"] .streak-chip svg { color: #E2711D; }
:root[data-theme="light"] .spinner { border-color: var(--line); border-top-color: var(--sea); }
@media (min-width: 520px) { :root[data-theme="light"] body { background: #E6EAF2; } }
.seg.three { grid-template-columns: repeat(3, 1fr); margin: 0; }

.nav-wrap { display: grid; gap: 8px; }
.nav-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nav-pick .btn { min-height: 46px; padding: 10px 6px; font-size: 13.5px; }
.nav-pick .btn:first-child { border-color: var(--sea); }

.fine.copy { margin-top: 10px; opacity: .85; }
