:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --panel: #16213a;
  --line: #24314f;
  --text: #e8ecf5;
  --muted: #9aa6c2;
  --gold: #f5c542;
  --gold-2: #ffdd73;
  --purple: #a76bff;
  --green: #3ddc84;
  --red: #ff5d5d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; }
a { color: var(--gold); }
img { max-width: 100%; }
code, kbd { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; border: 1px solid var(--line); }
.hidden { display: none !important; }
.gold { color: var(--gold); }
h2 { font-family: "Pirata One", serif; font-size: 2.4rem; color: var(--gold); margin: 0 0 12px; font-weight: 400; }
h3 { margin: 0 0 10px; }
.note { color: var(--muted); font-size: .9rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .45; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgba(11,18,32,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Pirata One", serif; font-size: 1.5rem; color: var(--gold); text-decoration: none; white-space: nowrap; }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 10px; border-radius: 8px; opacity: .8; }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: #1a1300; background: var(--gold); }
.top-right { display: flex; align-items: center; gap: 8px; }
.lang { width: auto; margin: 0; padding: 5px 6px; font-size: .85rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.3rem; border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.account { position: relative; }
.account .avatar-btn { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--line); flex: none; object-fit: cover; }
.avatar.lg { width: 40px; height: 40px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.account-menu p { margin: 6px 10px; font-size: .85rem; color: var(--muted); }
.account-menu button { width: 100%; text-align: left; }
.btn-discord { background: #5865f2; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn-discord:hover { background: #4752c4; }
.btn-discord svg { width: 18px; height: 18px; }

/* ---------- Treasure Hour banner ---------- */
.th-banner { background: linear-gradient(90deg, #c8901a, var(--gold), #c8901a); color: #1a1300; text-align: center; font-weight: 800; padding: 8px 16px; font-size: .95rem; }
.th-banner.soon { background: var(--panel); color: var(--gold-2); border-bottom: 1px solid var(--line); font-weight: 600; }
.th-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.th-list li { display: flex; justify-content: space-between; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .92rem; }
.th-list li.live { border-color: var(--gold); color: var(--gold); font-weight: 800; }
.th-list li.past { opacity: .45; }
.th-list .when { color: var(--muted); }

/* ---------- Tabs ---------- */
.tab { display: none; }
.tab.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 20px 48px; text-align: center; background: radial-gradient(ellipse at top, rgba(245,197,66,.2), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hero-token { width: 150px; height: auto; filter: drop-shadow(0 8px 30px rgba(245,197,66,.45)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(3deg); } }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-family: "Pirata One", serif; font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.05; margin: 8px 0 16px; }
.lead { max-width: 660px; margin: 0 auto 26px; color: var(--muted); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.countdowns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cd { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 20px; min-width: 220px; }
.cd-label { display: block; font-size: .8rem; color: var(--muted); }
.cd-value { font-size: 1.3rem; font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: #1a1300; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { padding: 6px 12px; font-size: .85rem; }
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px; flex-wrap: wrap; }
.seg-btn { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg-btn.active { background: var(--gold); color: #1a1300; }

/* ---------- Layout ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 44px 20px; }
.sub { margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h3 { margin: 6px 0; }
.card p { margin: 0; color: var(--muted); }
.card-icon { font-size: 1.8rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 48px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #1a1300; font-weight: 800; display: grid; place-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.stats-2 { grid-template-columns: 1fr 1fr; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats > div { min-width: 0; }
.stat-big { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.stat-label { display: block; font-size: .8rem; color: var(--muted); }
.warn { border: 1px solid rgba(255,93,93,.4); background: rgba(255,93,93,.06); border-radius: var(--radius); margin: 40px 0; padding: 20px 24px; }
.warn h2 { color: var(--red); }
.scams li { margin-bottom: 8px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Forms ---------- */
form label, .tools label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; accent-color: var(--gold); }
input[type=range] { padding: 0; accent-color: var(--gold); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row.tight { gap: 6px; }
.row.tight select { margin: 0; padding: 6px 8px; font-size: .85rem; }
.check { display: flex !important; align-items: center; padding-top: 22px; }
.status { min-height: 1.2em; font-size: .9rem; margin: 8px 0 0; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
.login-gate:empty { display: none; }
.login-gate { background: var(--bg-2); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; text-align: center; }
.login-gate p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }

/* ---------- Map ---------- */
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.map-toolbar .seg { margin: 0; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; cursor: pointer; user-select: none; margin: 0 !important; color: var(--text) !important; }
.chip-select { width: auto; margin: 0; border-radius: 999px; padding: 6px 12px; font-size: .88rem; background: var(--panel); }
.edit-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
#map { height: 640px; border-radius: var(--radius); border: 1px solid var(--line); background: #0a2236; }
.leaflet-container { font-family: Inter, sans-serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.vote-pop { display: flex; gap: 6px; flex-wrap: wrap; }
.vote-pop p { width: 100%; margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.marker-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #000; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.marker-dot.tresor { background: var(--gold); }
.marker-dot.special { background: var(--purple); }
.marker-poi { font-size: 22px; line-height: 1; text-shadow: 0 1px 3px #000; }
.route-num { background: var(--gold); color: #1a1300; font-weight: 800; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; border: 2px solid #1a1300; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; }
.lg-up { background: rgba(61,220,132,.7); }
.lg-down { background: rgba(255,93,93,.7); }
.lg-route { background: var(--gold); height: 4px; width: 20px; vertical-align: 3px; }
.route-info { margin-top: 14px; }
.route-info ol { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Simulator ---------- */
.sim { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.sim-stage { position: relative; background: radial-gradient(circle at 50% 40%, rgba(245,197,66,.16), transparent 65%), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.sim-chest { background: none; border: 0; cursor: pointer; padding: 0; width: min(320px, 70vw); transition: transform .1s; -webkit-tap-highlight-color: transparent; }
.sim-chest img { width: 100%; height: auto; filter: drop-shadow(0 14px 26px rgba(0,0,0,.5)); user-select: none; pointer-events: none; }
.sim-chest:hover { transform: scale(1.03); }
.sim-chest.shake { animation: shake .35s ease; }
.sim-chest.gold img { filter: drop-shadow(0 0 30px var(--gold)) drop-shadow(0 0 60px var(--gold)) brightness(1.15); }
@keyframes shake { 20% { transform: rotate(-6deg) scale(1.04); } 40% { transform: rotate(6deg) scale(1.06); } 60% { transform: rotate(-4deg) scale(1.04); } 80% { transform: rotate(3deg); } }
.sim-reward { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.sim-reward .pop { animation: pop .35s cubic-bezier(.2,1.6,.4,1); display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.sim-reward .r-common { color: #c9d3e8; }
.sim-reward .r-rare { color: #5ab6ff; border-color: #2c5d8a; }
.sim-reward .r-epic { color: var(--purple); border-color: #5b3a8f; }
.sim-reward .r-legend { color: var(--gold); border-color: var(--gold); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sim-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sim-history { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sim-history li { font-size: .78rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.odds table { width: 100%; font-size: .85rem; border-collapse: collapse; margin-top: 8px; }
.odds td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.jackpot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(11,18,32,.88); z-index: 5; padding: 20px; animation: fade .3s; }
.jackpot img { width: 180px; animation: spin-in .8s cubic-bezier(.2,1.4,.4,1); filter: drop-shadow(0 0 40px var(--gold)); }
.jackpot h3 { font-family: "Pirata One", serif; font-weight: 400; font-size: 2.4rem; color: var(--gold); margin: 12px 0 4px; }
@keyframes spin-in { from { transform: scale(0) rotate(-360deg); } to { transform: none; } }
.confetti { position: absolute; top: -10px; width: 8px; height: 14px; z-index: 6; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(620px) rotate(720deg); opacity: .2; } }

/* ---------- Squad / lists ---------- */
.lfg { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.lfg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lfg-head h3 { margin: 0; }
.lfg-list, .lucky-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; max-height: 640px; overflow-y: auto; }
.lucky-list { margin: 0; }
.lfg-list li, .lucky-list li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.lfg-list li.highlight { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,197,66,.3); }
.empty { color: var(--muted); text-align: center; }
.post-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.post-name { font-weight: 800; overflow-wrap: anywhere; }
.post-sub { color: var(--muted); font-size: .78rem; }
.post-time { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: .78rem; }
.tag.gold { border-color: var(--gold); color: var(--gold); }
.post-msg { margin: 0 0 8px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.post-actions .btn { font-size: .8rem; padding: 4px 10px; }

/* ---------- Leaderboard ---------- */
.board-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 720px; }
.board-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.board-list li.me { border-color: var(--gold); }
.rank { font-weight: 800; font-size: 1.2rem; text-align: center; color: var(--muted); }
.board-list li:nth-child(1) .rank { color: var(--gold); }
.board-list li:nth-child(2) .rank { color: #d9dee8; }
.board-list li:nth-child(3) .rank { color: #e0975a; }
.board-chests { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Shop ---------- */
.shop-toolbar { display: flex; gap: 12px; align-items: center; margin: 12px 0 16px; flex-wrap: wrap; }
.shop-toolbar input { max-width: 340px; margin: 0; }
.shop-total { color: var(--gold); font-weight: 800; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shop-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.shop-item .img { aspect-ratio: 1; background: linear-gradient(160deg, #2a3a5e, #141d33); display: grid; place-items: center; }
.shop-item .img img { width: 100%; height: 100%; object-fit: cover; }
.shop-item.r-uncommon .img { background: linear-gradient(160deg, #3c8a2e, #173514); }
.shop-item.r-rare .img { background: linear-gradient(160deg, #2a7bd6, #10294d); }
.shop-item.r-epic .img { background: linear-gradient(160deg, #8a3fd6, #2c124d); }
.shop-item.r-legendary .img { background: linear-gradient(160deg, #d6812a, #4d2410); }
.shop-item .info { padding: 8px 10px; font-size: .85rem; }
.shop-item .name { font-weight: 800; overflow-wrap: anywhere; }
.shop-item .meta { color: var(--muted); font-size: .76rem; }
.shop-item .price { margin-top: 4px; font-weight: 800; }
.shop-item .price s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.shop-item .free { color: var(--green); }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 16px; }
.big { font-size: 2.6rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.counter { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.counter span { font-size: 2.2rem; font-weight: 800; min-width: 2.5ch; text-align: center; font-variant-numeric: tabular-nums; }
.sess-clock { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.sess-clock.running { color: var(--green); }
.sess-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0; }
.checklist label { color: var(--text); font-size: .95rem; margin: 0; }

/* ---------- Toast / footer ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 120px); background: var(--panel); border: 1px solid var(--gold); color: var(--text); padding: 10px 18px; border-radius: 10px; z-index: 2000; transition: transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .grid-2, .lfg, .sim { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  #map { height: 460px; }
  .section { padding: 32px 16px; }
  .sim-stage { min-height: 440px; }
  .account .avatar-btn span { display: none; }
  .account .avatar-btn { padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Session : compteurs compacts pour tenir dans la colonne */
.sess-counters > div { min-width: 0; }
.sess-counters .counter { gap: 8px; flex-wrap: wrap; }
.sess-counters .counter .btn { padding: 8px 12px; min-width: 44px; }
.sess-counters .counter span { font-size: 1.8rem; min-width: 2ch; }
.session .row .btn { width: 100%; }

/* Discord */
.dc-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; margin-top: 16px; }
.dc-hero { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 20%, rgba(88,101,242,.3), transparent 70%), var(--panel); }
.dc-hero img { filter: drop-shadow(0 6px 20px rgba(245,197,66,.4)); }
.dc-invite { font-size: 1.05rem; padding: 13px 24px; margin-top: 6px; }
.dc-channels h3 { font-size: 1rem; }
.dc-widget { margin-top: 16px; padding: 0; overflow: hidden; }
.dc-widget iframe { border: 0; display: block; }
.nav-discord { color: #fff !important; background: #5865f2; opacity: 1 !important; }
@media (max-width: 820px) { .dc-grid { grid-template-columns: 1fr; } }


/* ================= Navigation : en haut sur ordinateur, en bas sur mobile ================= */
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav .ni { font-size: 1rem; line-height: 1; }
.dc-top { padding: 6px 12px; }

@media (max-width: 1100px) and (min-width: 821px) {
  .nav .ni { display: none; }
  .logo span { display: none; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { padding: 8px 12px; gap: 8px; }
  .logo { font-size: 1.25rem; }
  .logo img { width: 26px; height: 26px; }
  .top-right { margin-left: auto; gap: 6px; }
  .dc-top span { display: none; }
  .dc-top { padding: 6px 9px; }
  .dc-top::before { content: "💬"; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1500;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0;
    background: rgba(11, 18, 32, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  }
  .nav a { flex-direction: column; gap: 2px; padding: 6px 0; font-size: .66rem; border-radius: 10px; opacity: .75; text-align: center; min-width: 0; }
  .nav a span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav .ni { font-size: 1.3rem; display: block; }
  .nav a.active { background: rgba(245, 197, 66, .16); color: var(--gold); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero { padding: 32px 16px 32px; }
  .hero-token { width: 110px; }
  .lead { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  h2 { font-size: 2rem; }
  .cd { min-width: 0; flex: 1 1 140px; padding: 8px 12px; }
  .cd-value { font-size: 1.05rem; }
  .stat-big { font-size: 1.35rem; }
  .board-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shop-toolbar input { max-width: none; }
  #map { height: 62vh; min-height: 360px; }
  .map-toolbar { gap: 6px; }
  .chip, .chip-select { font-size: .8rem; padding: 5px 10px; }
  .sim-stage { min-height: 0; padding: 18px 12px; }
  .sim-chest { width: min(210px, 58vw); }
  .sim-open { width: 100%; padding: 15px; font-size: 1.1rem; }
  .token-pair { grid-template-columns: 1fr; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #0b1220; }
  .sess-counters .counter { flex-wrap: nowrap; gap: 6px; }
  .sess-counters .counter .btn { min-width: 46px; min-height: 46px; padding: 8px 10px; }
  .sess-counters .counter span { font-size: 1.6rem; min-width: 2ch; }
  .session .stats-3 { grid-template-columns: repeat(3, 1fr); }
  .session .stat-big { font-size: 1.15rem; }
  .footer { padding-bottom: 20px; }
  .th-banner { font-size: .82rem; padding: 6px 12px; }
}

/* ================= Les deux jetons ================= */
.token-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.token-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: radial-gradient(circle at 15% 50%, rgba(245,197,66,.22), transparent 60%), var(--panel); border: 1px solid rgba(245,197,66,.45); }
.token-card img { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 4px 14px rgba(245,197,66,.45)); }
.token-card p { margin: 2px 0 0; color: var(--muted); }
.token-year { font-family: "Pirata One", serif; font-size: 2rem; color: var(--gold); line-height: 1; }

/* ================= Simulateur ================= */
.sim-open { font-size: 1.05rem; padding: 13px 34px; }
.calc { margin-top: 16px; }

/* ================= Classement ================= */
.session { margin: 16px 0 8px; }
.session-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.session-head h3 { margin: 0; }
.session .sess-clock { font-size: 1.6rem; margin: 0; }
.sess-actions { margin-top: 6px; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.board-grid .board-list { max-width: none; }
#lucky-stats { margin-bottom: 12px; }
#lucky-form { margin-top: 12px; }
.lucky-list { max-height: 420px; }

/* ================= Boutique ================= */
.checklist-box { margin: 12px 0; }
.checklist-box summary { font-weight: 800; }
.checklist-box .checklist { margin: 10px 0 0; }
.footer a { font-weight: 800; }

@media (max-width: 820px) {
  .token-pair { grid-template-columns: 1fr; }
  .token-card { padding: 12px 14px; }
  .token-card img { width: 56px; height: 56px; }
  .board-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .account .btn-discord { padding: 6px 9px; }
  .account .btn-discord span { display: none; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
}
@media (max-width: 370px) {
  .nav a:not(.active) span:last-child { display: none; }
  .nav a { justify-content: center; min-height: 46px; }
  .nav a.active span:last-child { font-size: .58rem; }
}
@media (max-width: 370px) {
  .sess-counters { grid-template-columns: 1fr; }
  .session .stats-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .session .stat-label { font-size: .7rem; }
}
