:root {
  --bg: #0d0906;
  --ink: #f3e8d6;
  --mute: #a8977f;
  --amber: #ffb627;
  --amber2: #ffd25a;
  --chitin: #c4421a;
  --panel: rgba(18, 12, 8, 0.78);
  --line: rgba(255, 210, 140, 0.16);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --disp: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; font-family: var(--disp); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--mute); }
#cv { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; }
#title { background: linear-gradient(90deg, rgba(10, 7, 5, 0.86) 0%, rgba(10, 7, 5, 0.55) 46%, rgba(10, 7, 5, 0.1) 75%, rgba(10, 7, 5, 0.45) 100%); display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr auto auto; padding: 22px 34px 0; gap: 0 30px; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.logo .tick { font-family: var(--mono); font-weight: 800; font-size: 24px; color: var(--amber); letter-spacing: -0.02em; }
.logo .sub { font-weight: 900; font-size: 13px; letter-spacing: 0.3em; color: var(--ink); opacity: 0.8; }
.ca { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--amber2); }
.ca:hover { border-color: var(--amber); }
.mute { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); }
.mute.off { opacity: 0.4; text-decoration: line-through; }
.hero { align-self: center; max-width: 620px; padding-bottom: 30px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; color: var(--amber); margin-bottom: 18px; }
.hero h1 { font-weight: 900; font-size: clamp(46px, 7.4vw, 104px); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--amber2); letter-spacing: -0.01em; font-size: 1.08em; }
.lede { margin: 22px 0 28px; font-size: 17px; line-height: 1.55; color: #e5d6c0; max-width: 520px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { padding: 15px 24px; border: 1px solid rgba(255, 210, 140, 0.35); border-radius: 4px; background: rgba(20, 13, 8, 0.75); font-weight: 900; letter-spacing: 0.08em; font-size: 14px; transition: transform 0.12s, background 0.12s; }
.btn small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.15em; opacity: 0.75; margin-top: 2px; }
.btn:hover { transform: translateY(-1px); background: rgba(40, 26, 14, 0.9); }
.btn.primary { background: var(--amber); color: #1b0f05; border-color: var(--amber); box-shadow: 0 8px 30px rgba(255, 182, 39, 0.25); }
.btn.primary:hover { background: var(--amber2); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.links { margin-top: 18px; display: flex; gap: 20px; }
.lnk { font-family: var(--mono); font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; }
.lnk:hover { color: var(--ink); }

.prizes { align-self: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12px; letter-spacing: 0.15em; }
.ph b { color: var(--amber); }
.ph span { color: var(--mute); }
.pp { font-size: 13px; color: var(--mute); margin: 8px 0 14px; }
.pp b { color: var(--ink); }
#prizeList { list-style: none; display: grid; gap: 6px; }
#prizeList li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 4px; background: rgba(255, 210, 140, 0.05); font-family: var(--mono); font-size: 14px; }
#prizeList li b { font-size: 18px; color: var(--amber2); }
#prizeList li:first-child { background: rgba(255, 182, 39, 0.13); border: 1px solid rgba(255, 182, 39, 0.35); }
.bounty { margin-top: 12px; padding: 12px; border-radius: 4px; border: 1px dashed rgba(255, 210, 90, 0.45); background: linear-gradient(135deg, rgba(255, 200, 60, 0.12), rgba(255, 200, 60, 0.02)); }
.bounty div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }
.bounty div b { color: var(--amber2); }
.bounty div span { font-weight: 800; color: var(--amber2); }
.bounty p { font-size: 12px; color: var(--mute); margin-top: 6px; line-height: 1.45; }
.bounty.claimed { opacity: 0.6; border-style: solid; }
.mini-board { margin-top: 14px; font-family: var(--mono); font-size: 12px; }
.mini-board > b { letter-spacing: 0.15em; color: var(--mute); font-size: 11px; }
#top5 { list-style: none; margin-top: 6px; display: grid; gap: 3px; }
#top5 li { display: flex; justify-content: space-between; gap: 8px; }
#top5 li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top5 li span:last-child { color: var(--amber2); }

.tape { grid-column: 1 / -1; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -34px; background: rgba(8, 5, 3, 0.7); height: 32px; display: flex; align-items: center; }
#tape { display: inline-flex; gap: 38px; white-space: nowrap; font-family: var(--mono); font-size: 12px; padding-left: 100%; animation: tape 60s linear infinite; }
#tape span b { color: var(--amber2); margin-left: 6px; }
#tape span i { font-style: normal; color: #6fdc8c; margin-left: 6px; }
@keyframes tape { to { transform: translateX(-100%); } }
.foot { grid-column: 1 / -1; padding: 10px 0 14px; font-family: var(--mono); font-size: 11px; color: rgba(168, 151, 127, 0.75); text-align: center; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font-family: var(--mono); }
#hud button, #hud .touch, #hud .speed { pointer-events: auto; }
.hud-tl { position: absolute; left: 18px; top: 16px; width: 250px; display: grid; gap: 10px; }
.val small { display: block; font-size: 10px; letter-spacing: 0.25em; color: var(--mute); }
.val b { font-size: 36px; font-weight: 800; color: var(--amber2); letter-spacing: -0.03em; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
#hDelta { margin-left: 8px; color: #6fdc8c; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity 0.3s; }
#hDelta.on { opacity: 1; }
.clock { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px #000; }
.daybar { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.daybar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe6a0, #ff9a3c, #b9473a); }
.clock.dusk { color: #ff8a4c; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.bars { display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: 58px 1fr; align-items: center; font-size: 9px; letter-spacing: 0.15em; color: var(--mute); }
.bar > div { height: 7px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; border-radius: 3px; transition: width 0.15s; }
.bar.en i { background: linear-gradient(90deg, #d68a1e, #ffd25a); }
.bar.hp i { background: linear-gradient(90deg, #9b2c14, #e8573a); }
.bar.o2 i { background: linear-gradient(90deg, #3a83b8, #9fd6f5); }
.bar.low label { color: #ff7a5a; animation: pulse 0.7s infinite; }
.carry { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 12px; }
.carry b { color: var(--amber2); }
.carry small { display: block; color: var(--mute); font-size: 10px; margin-top: 2px; }
.hud-tr { position: absolute; right: 16px; top: 16px; display: grid; gap: 8px; justify-items: end; text-align: right; }
.stat small { display: block; font-size: 9px; letter-spacing: 0.22em; color: var(--mute); }
.stat b { font-size: 17px; font-weight: 800; text-shadow: 0 1px 8px #000; }
.lvlbar { display: block; width: 80px; height: 3px; background: rgba(255, 255, 255, 0.12); margin-top: 3px; margin-left: auto; }
.lvlbar i { display: block; height: 100%; width: 0; background: var(--amber); }
#mini { width: 80px; height: 220px; border: 1px solid var(--line); border-radius: 3px; image-rendering: pixelated; background: #120d0a; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); }
.hint { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); padding: 9px 16px; background: rgba(12, 8, 5, 0.82); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity 0.25s; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.hint.on { opacity: 1; }
.hint.warn { border-color: rgba(255, 110, 70, 0.6); color: #ffb39c; }
.banner { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -10px); text-align: center; opacity: 0; transition: opacity 0.4s, transform 0.4s; }
.banner.on { opacity: 1; transform: translate(-50%, 0); }
.banner b { display: block; font-family: var(--disp); font-weight: 900; font-size: 40px; letter-spacing: -0.02em; color: var(--amber2); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9); }
.banner span { font-size: 13px; color: var(--ink); text-shadow: 0 1px 8px #000; }
.keys { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 11px; color: rgba(243, 232, 214, 0.55); white-space: nowrap; }
.keys b { color: rgba(243, 232, 214, 0.85); }
.replaytag { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); background: var(--chitin); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.speed { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); display: flex; gap: 4px; }
.speed button { padding: 5px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; font-size: 12px; }
.speed button.on { background: var(--amber); color: #1b0f05; }
.pausebtn { position: absolute; right: 108px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-weight: 800; font-size: 12px; }

/* ---------- touch ---------- */
.touch { position: absolute; inset: auto 0 0 0; height: 46%; }
.stick { position: absolute; left: 28px; bottom: 34px; width: 128px; height: 128px; border-radius: 50%; border: 2px solid rgba(255, 210, 140, 0.25); background: rgba(0, 0, 0, 0.25); }
.stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 182, 39, 0.5); }
.tbtns { position: absolute; right: 20px; bottom: 30px; display: grid; gap: 10px; }
.tbtns button { width: 92px; height: 50px; border-radius: 26px; background: rgba(20, 13, 8, 0.75); border: 1px solid rgba(255, 210, 140, 0.35); font-family: var(--mono); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.tbtns button:active { background: var(--amber); color: #1b0f05; }

/* ---------- end / pause ---------- */
#end, #pause { display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(10, 7, 5, 0.75), rgba(10, 7, 5, 0.94)); padding: 16px; overflow-y: auto; }
.endcard { width: min(560px, 100%); text-align: center; padding: 34px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.endcard.small { width: min(380px, 100%); }
.endcard h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; color: var(--ink); }
.bigval { font-family: var(--mono); font-weight: 800; font-size: clamp(48px, 12vw, 84px); color: var(--amber2); letter-spacing: -0.04em; line-height: 1.05; margin: 4px 0 18px; text-shadow: 0 0 40px rgba(255, 182, 39, 0.3); }
.estats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.estats div { background: rgba(255, 210, 140, 0.05); border-radius: 4px; padding: 10px 6px; }
.estats small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; color: var(--mute); }
.estats b { font-family: var(--mono); font-size: 17px; }
.estats .gold { grid-column: 1 / -1; background: rgba(255, 200, 60, 0.15); border: 1px solid rgba(255, 200, 60, 0.4); color: var(--amber2); font-family: var(--mono); font-size: 13px; font-weight: 800; }
.submit { display: grid; gap: 8px; margin-bottom: 18px; text-align: left; }
.submit p { font-size: 13px; color: var(--mute); line-height: 1.45; }
.submit input { padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.45); color: var(--ink); font-family: var(--mono); font-size: 13px; outline: none; }
.submit input:focus { border-color: var(--amber); }
.msg { font-family: var(--mono); font-size: 13px; min-height: 18px; }
.msg.ok { color: #6fdc8c; }
.msg.err { color: #ff8a6a; }
.endcard .cta { justify-content: center; }
#practiceNote { font-size: 13px; margin-bottom: 18px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(5, 3, 2, 0.8); display: grid; place-items: center; padding: 16px; }
.mbox { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #140e09; border: 1px solid var(--line); border-radius: 8px; padding: 30px; }
.mclose { position: absolute; right: 14px; top: 12px; font-size: 18px; color: var(--mute); }
.mbox h3 { font-weight: 900; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 16px; }
.mbox h3 em { font-family: var(--serif); font-weight: 400; color: var(--amber2); }
.how { display: grid; gap: 12px; }
.how div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; font-size: 14px; line-height: 1.5; color: #e5d6c0; }
.how kbd { font-family: var(--mono); font-size: 11px; padding: 4px 6px; background: rgba(255, 210, 140, 0.1); border: 1px solid var(--line); border-radius: 3px; text-align: center; color: var(--amber2); }
.how p.note { grid-column: 1 / -1; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }
table.board { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
table.board td, table.board th { padding: 8px 6px; border-bottom: 1px solid rgba(255, 210, 140, 0.08); text-align: left; }
table.board th { font-size: 10px; letter-spacing: 0.15em; color: var(--mute); font-weight: 400; }
table.board td.v { color: var(--amber2); font-weight: 800; }
table.board tr.top td:first-child { color: var(--amber); font-weight: 800; }
table.board a { color: var(--amber); text-decoration: none; }
.past { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--mute); }
.past li { list-style: none; padding: 3px 0; }

.loading { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(10, 7, 5, 0.85); font-family: var(--mono); color: var(--amber); letter-spacing: 0.3em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #title { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; padding: 14px 16px 0; overflow-y: auto; background: linear-gradient(180deg, rgba(10, 7, 5, 0.4), rgba(10, 7, 5, 0.85) 40%, rgba(10, 7, 5, 0.95)); }
  .hero { padding: 36px 0 20px; }
  .lede { font-size: 15px; }
  .prizes { margin-bottom: 18px; }
  .tape { margin: 0 -16px; }
  .hud-tl { left: 12px; top: 12px; width: 190px; gap: 7px; }
  .val b { font-size: 26px; }
  .hud-tr { right: 10px; top: 12px; }
  #mini { width: 56px; height: 154px; }
  .keys { display: none; }
  .hint { bottom: auto; top: 150px; font-size: 12px; white-space: normal; text-align: center; width: max-content; }
  .pausebtn { right: 76px; top: 12px; }
  .banner b { font-size: 28px; }
  .stat b { font-size: 14px; }
}
@media (max-width: 420px) {
  .ca { font-size: 10px; padding: 7px 10px; }
  .logo .sub { display: none; }
  .estats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 3D ---------- */
#floats { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.float { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 800; font-size: 14px; white-space: nowrap; text-shadow: 0 2px 8px #000; }
.float.big { font-size: 24px; }
.cross { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 230, 190, 0.55); box-shadow: 0 0 0 1px rgba(0,0,0,0.4); }
.lockhint { position: fixed; left: 50%; top: 58%; transform: translateX(-50%); z-index: 6; padding: 10px 18px; border-radius: 999px; background: rgba(12, 8, 5, 0.8); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--amber2); pointer-events: none; animation: pulse 1.6s infinite; }
.nestarrow { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--amber2); text-shadow: 0 1px 6px #000; }
.nestarrow i { font-style: normal; font-size: 26px; display: block; transform-origin: 50% 50%; line-height: 1; }
.nestarrow i { rotate: -90deg; }
@media (max-width: 900px) { .nestarrow { top: 120px; } .tbtns button { height: 42px; } }

.digring { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; opacity: 0; transition: opacity 0.15s;
  background: conic-gradient(var(--amber) var(--p, 0%), rgba(255, 210, 140, 0.18) 0); -webkit-mask: radial-gradient(circle, transparent 12px, #000 13px); mask: radial-gradient(circle, transparent 12px, #000 13px); }
.digring.no { background: rgba(255, 70, 50, 0.55); }
.tbtns button.dig { background: rgba(255, 182, 39, 0.85); color: #1b0f05; height: 64px; font-size: 14px; }

/* ---------- monde partagé ---------- */
.joinf { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; max-width: 560px; margin-bottom: 12px; }
.joinf input { padding: 12px 14px; border-radius: 4px; border: 1px solid rgba(255, 210, 140, 0.3); background: rgba(10, 7, 5, 0.75); color: var(--ink); font-family: var(--mono); font-size: 13px; outline: none; }
.joinf input:focus { border-color: var(--amber); }
.jmsg { font-family: var(--mono); font-size: 12px; color: #ffb39c; min-height: 16px; margin-top: 8px; }
#mini { width: 132px; height: 132px; border-radius: 6px; }
.livetop { position: absolute; right: 16px; top: 330px; width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-size: 12px; }
.livetop > b { font-size: 10px; letter-spacing: 0.18em; color: var(--mute); }
.livetop ol { list-style: none; margin-top: 6px; display: grid; gap: 3px; }
.livetop li { display: flex; justify-content: space-between; gap: 8px; }
.livetop li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livetop li b { color: var(--amber2); }
.livetop li.me { color: #ff8a6a; font-weight: 800; }
.feed { position: absolute; left: 18px; top: 250px; display: grid; gap: 4px; font-size: 12px; max-width: 320px; }
.feed div { background: rgba(12, 8, 5, 0.7); padding: 5px 10px; border-radius: 4px; transition: opacity 2s; text-shadow: 0 1px 4px #000; }
.feed div.old { opacity: 0.35; }
.nameplate { position: absolute; left: 0; top: 0; display: none; padding: 3px 8px; border-radius: 999px; background: rgba(12, 8, 5, 0.72); border: 1px solid rgba(255, 230, 190, 0.25); font-family: var(--mono); font-size: 11px; font-weight: 600; color: #f3e8d6; white-space: nowrap; pointer-events: none; }
.nameplate.loot { color: #ffd25a; border-color: rgba(255, 200, 80, 0.6); }
ol.results { list-style: none; display: grid; gap: 4px; grid-column: 1 / -1; text-align: left; font-family: var(--mono); font-size: 13px; }
ol.results li { display: flex; justify-content: space-between; padding: 6px 10px; background: rgba(255, 210, 140, 0.05); border-radius: 4px; }
ol.results li b { color: var(--amber2); }
ol.results li.me { background: rgba(255, 182, 39, 0.15); border: 1px solid rgba(255, 182, 39, 0.4); }
@media (max-width: 900px) { .joinf { grid-template-columns: 1fr; } .livetop { display: none; } .livetop.open { display: block; top: 200px; } #mini { width: 92px; height: 92px; } .feed { top: 170px; font-size: 11px; max-width: 220px; } }

/* =============== ÉCRAN D'ACCUEIL (refonte) =============== */
#title { display: block; padding: 0; background: none; overflow: hidden; }
#title .tshade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,5,3,0.92) 0%, rgba(8,5,3,0.7) 30%, rgba(8,5,3,0.12) 58%, rgba(8,5,3,0) 70%, rgba(8,5,3,0.55) 100%),
              linear-gradient(180deg, rgba(8,5,3,0.55) 0%, rgba(8,5,3,0) 18%, rgba(8,5,3,0) 70%, rgba(8,5,3,0.9) 100%); }
#title .motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#title .motes i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 220, 150, 0.7); box-shadow: 0 0 8px rgba(255, 200, 110, 0.8); animation: mote 14s linear infinite; }
#title .motes i:nth-child(1) { left: 52%; animation-delay: 0s; } #title .motes i:nth-child(2) { left: 61%; animation-delay: -3s; animation-duration: 18s; }
#title .motes i:nth-child(3) { left: 70%; animation-delay: -7s; } #title .motes i:nth-child(4) { left: 78%; animation-delay: -1s; animation-duration: 20s; }
#title .motes i:nth-child(5) { left: 57%; animation-delay: -9s; width: 2px; height: 2px; } #title .motes i:nth-child(6) { left: 66%; animation-delay: -12s; animation-duration: 16s; }
#title .motes i:nth-child(7) { left: 84%; animation-delay: -5s; } #title .motes i:nth-child(8) { left: 48%; animation-delay: -11s; animation-duration: 22s; width: 2px; height: 2px; }
#title .motes i:nth-child(9) { left: 74%; animation-delay: -2s; animation-duration: 25s; } #title .motes i:nth-child(10) { left: 90%; animation-delay: -8s; }
#title .motes i:nth-child(11) { left: 63%; animation-delay: -15s; animation-duration: 19s; } #title .motes i:nth-child(12) { left: 81%; animation-delay: -13s; width: 4px; height: 4px; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(30px, -50vh); } 90% { opacity: 0.8; } 100% { transform: translate(-20px, -105vh); opacity: 0; } }

.tnav { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: min(1320px, calc(100% - 36px)); display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px; border-radius: 999px; background: rgba(14, 9, 6, 0.62); border: 1px solid rgba(255, 210, 140, 0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; }
.tnav .logo { margin-right: 6px; }
.tlinks { display: flex; gap: 18px; margin-right: auto; }
.tlinks .lnk { text-decoration: none; color: var(--ink); opacity: 0.75; font-size: 12px; letter-spacing: 0.08em; }
.tlinks .lnk:hover { opacity: 1; color: var(--amber2); }
.livepill { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #c9f2c9; padding: 7px 12px; border-radius: 999px; background: rgba(60, 160, 80, 0.12); border: 1px solid rgba(110, 220, 140, 0.25); }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: #6fdc8c; box-shadow: 0 0 0 0 rgba(111, 220, 140, 0.7); animation: livep 1.6s infinite; }
@keyframes livep { 0% { box-shadow: 0 0 0 0 rgba(111, 220, 140, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(111, 220, 140, 0); } }

.thero { position: absolute; left: max(36px, calc(50% - 660px)); top: 50%; transform: translateY(-52%); width: min(540px, calc(100% - 72px)); z-index: 1; }
.ttitle { display: flex; align-items: baseline; gap: 18px; font-weight: 900; line-height: 0.82; letter-spacing: -0.05em; margin: 4px 0 6px; text-shadow: 0 10px 50px rgba(0, 0, 0, 0.7); }
.ttitle .t1 { font-size: clamp(40px, 5vw, 68px); color: var(--ink); opacity: 0.9; }
.ttitle .t2 { font-size: clamp(96px, 12vw, 172px); background: linear-gradient(180deg, #ffe7a3 0%, #ffb627 55%, #c4651a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(255, 160, 40, 0.25)); }
.tag { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); color: #f6e2bf; margin-bottom: 14px; }
.thero .lede { margin: 0 0 22px; font-size: 16px; max-width: 480px; }

.joincard { padding: 18px; border-radius: 14px; background: rgba(16, 11, 7, 0.72); border: 1px solid rgba(255, 210, 140, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.jhead { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 14px; }
.jhead .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fdc8c; animation: livep 1.6s infinite; }
.jhead b { color: #c9f2c9; }
.jhead .rleft { margin-left: auto; color: var(--mute); }
.jfields { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; margin-bottom: 12px; }
.jfields label { display: grid; gap: 6px; }
.jfields label > span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--mute); text-transform: uppercase; }
.jfields label small { text-transform: none; letter-spacing: 0; opacity: 0.8; }
.jfields input { padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(255, 210, 140, 0.2); background: rgba(0, 0, 0, 0.4); color: var(--ink); font-family: var(--mono); font-size: 14px; outline: none; transition: border-color 0.15s; }
.jfields input:focus { border-color: var(--amber); }
.jbtn { width: 100%; padding: 18px; border-radius: 10px; font-size: 17px; letter-spacing: 0.1em; }
.jbtn small { font-size: 11px; }
.jfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.jfoot .lnk { font-size: 12px; color: var(--ink); }
.joincard .jmsg { margin-top: 8px; min-height: 0; }
.joincard .jmsg:empty { display: none; }

#title .prizes { position: absolute; right: max(36px, calc(50% - 660px)); top: 50%; transform: translateY(-50%); width: 300px; padding: 18px; border-radius: 14px; z-index: 1; background: rgba(16, 11, 7, 0.66); }
#title .prizes #prizeList li { padding: 8px 12px; }
#title .prizes #prizeList li b { font-size: 16px; }

.tfeat { position: absolute; left: max(36px, calc(50% - 660px)); right: max(36px, calc(50% - 660px)); bottom: 62px; display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); gap: 14px; z-index: 1; }
.tfeat div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 3px; padding: 12px 14px; border-radius: 12px; background: rgba(14, 9, 6, 0.55); border: 1px solid rgba(255, 210, 140, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tfeat svg { grid-row: 1 / 3; width: 30px; height: 30px; fill: none; stroke: var(--amber2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.tfeat b { font-size: 12px; letter-spacing: 0.14em; color: var(--ink); }
.tfeat span { font-size: 12px; color: var(--mute); line-height: 1.4; }
#title .tape { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; z-index: 1; }
#title .foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 0; z-index: 1; }

@media (max-width: 1180px) { .tfeat { display: none; } }
@media (max-width: 980px) {
  #title { overflow-y: auto; }
  #title .tshade { background: linear-gradient(180deg, rgba(8,5,3,0.35) 0%, rgba(8,5,3,0.8) 45%, rgba(8,5,3,0.96) 100%); position: fixed; }
  .tnav { position: sticky; top: 10px; transform: none; left: auto; margin: 10px auto 0; width: calc(100% - 20px); padding: 8px 10px 8px 14px; gap: 8px; }
  .tlinks, .livepill { display: none; }
  .tnav .ca { margin-left: auto; }
  .thero, #title .prizes { position: relative; left: auto; right: auto; top: auto; transform: none; width: auto; margin: 28px 16px 0; }
  .thero { margin-top: 34vh; }
  .jfields { grid-template-columns: 1fr; }
  #title .tape, #title .foot { position: relative; bottom: auto; margin-top: 18px; }
}

#title .prizes .ph { flex-wrap: nowrap; gap: 8px; } #title .prizes .ph span { font-size: 11px; white-space: nowrap; }
#title .tshade { background: linear-gradient(90deg, rgba(8,5,3,0.88) 0%, rgba(8,5,3,0.6) 28%, rgba(8,5,3,0.05) 55%, rgba(8,5,3,0) 68%, rgba(8,5,3,0.45) 100%), linear-gradient(180deg, rgba(8,5,3,0.5) 0%, rgba(8,5,3,0) 16%, rgba(8,5,3,0) 72%, rgba(8,5,3,0.85) 100%); }

/* =============== ACCUEIL v3 : menu de jeu + carnet de terrain =============== */
#title { display: block; padding: 0; background: none; overflow: hidden; }
#title .tvig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 62% 48%, rgba(0,0,0,0) 40%, rgba(6,4,2,0.55) 100%), linear-gradient(90deg, rgba(6,4,2,0.55), rgba(6,4,2,0) 38%); }
#title .annot { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#title .annot line { stroke: rgba(241, 231, 212, 0.75); stroke-width: 1; }
#title .annot circle { fill: none; stroke: #f1e7d4; stroke-width: 1.2; }
#title .annot text { font-family: var(--mono); font-size: 11px; fill: #f1e7d4; letter-spacing: 0.04em; paint-order: stroke; stroke: rgba(10, 6, 3, 0.75); stroke-width: 3px; }
#title .annot text tspan.k { fill: #ffcf6a; }

.tcorner { position: absolute; top: 26px; right: 34px; display: flex; gap: 22px; z-index: 2; }
.tc { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(241, 231, 212, 0.7); padding: 2px 0; border-bottom: 1px solid transparent; }
.tc:hover { color: #fff; border-bottom-color: currentColor; }
#muteBtn.off { text-decoration: line-through; opacity: 0.5; }

.wordmark { position: absolute; left: 52px; top: 34px; z-index: 2; color: #f1e7d4; }
.wordmark .wtick { font-family: var(--mono); font-size: 13px; font-weight: 800; color: #ffcf6a; letter-spacing: 0.06em; }
.wordmark h1 { font-family: 'Anton', 'Archivo', sans-serif; font-weight: 400; font-size: clamp(72px, 9vw, 132px); line-height: 0.86; letter-spacing: 0.005em; margin: 2px 0 8px -3px; text-shadow: 0 3px 0 rgba(0,0,0,0.25), 0 18px 50px rgba(0,0,0,0.45); }
.wordmark p { font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(241, 231, 212, 0.8); }

.menu { position: absolute; left: 52px; bottom: 58px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: min(470px, calc(100% - 104px)); }
.mbtn { position: relative; font-family: 'Anton', 'Archivo', sans-serif; font-size: 30px; letter-spacing: 0.02em; color: rgba(241, 231, 212, 0.5); padding: 2px 0 2px 0; transition: color 0.12s, padding 0.12s; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.mbtn::before { content: ''; position: absolute; left: -22px; top: 50%; width: 12px; height: 2px; background: #ffcf6a; transform: scaleX(0); transform-origin: left; transition: transform 0.12s; }
.mbtn:hover, .mbtn:focus-visible, .mbtn.sel { color: #f8f1e4; padding-left: 6px; outline: none; }
.mbtn:hover::before, .mbtn:focus-visible::before, .mbtn.sel::before { transform: scaleX(1); }
.mbtn.big { font-size: 56px; color: #ffcf6a; }
.mbtn.big:hover, .mbtn.big.sel { color: #ffe09a; }
.mbtn:disabled { opacity: 0.45; cursor: default; }
.mjoin { margin-bottom: 18px; }
.mstatus { font-family: var(--mono); font-size: 12px; color: rgba(241, 231, 212, 0.75); margin: 2px 0 12px 2px; }
.mstatus .sep { margin: 0 8px; opacity: 0.4; }
.mstatus #liveCount::before { content: '● '; color: #7fd18e; }
.mfields { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 18px; margin-left: 2px; }
.mfields label { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid rgba(241, 231, 212, 0.35); padding-bottom: 4px; }
.mfields label:focus-within { border-bottom-color: #ffcf6a; }
.mfields span { font-family: var(--mono); font-size: 11px; color: rgba(241, 231, 212, 0.55); }
.mfields input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #f8f1e4; font-family: var(--mono); font-size: 14px; padding: 2px 0; }
.mfields input::placeholder { color: rgba(241, 231, 212, 0.3); }
.menu .jmsg { margin: 8px 0 0 2px; }
.menu .jmsg:empty { display: none; }

.slabel { position: absolute; right: 46px; bottom: 54px; width: 270px; padding: 20px 20px 16px; z-index: 2; background: #eee3cb; color: #2a1d10; transform: rotate(-1.6deg); box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 22px 40px rgba(0,0,0,0.5); font-family: var(--mono); font-size: 12px;
  background-image: repeating-linear-gradient(0deg, rgba(60,40,20,0.035) 0 1px, transparent 1px 22px); }
.slabel::before { content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e66a4a, #8f2a16); box-shadow: 0 3px 4px rgba(0,0,0,0.4); }
.slabel .lhead { font-size: 10px; letter-spacing: 0.12em; color: #7a6248; border-bottom: 1px dashed rgba(60,40,20,0.35); padding-bottom: 6px; margin-bottom: 8px; text-transform: uppercase; }
.slabel .lsp { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin-bottom: 10px; }
.slabel .lrow { font-size: 11px; color: #5c4630; margin-bottom: 6px; }
.slabel .lrow b { color: #2a1d10; }
.slabel ol#prizeList { list-style: none; display: grid; gap: 4px; margin-bottom: 10px; }
.slabel ol#prizeList li { display: flex; align-items: baseline; font-size: 13px; padding: 0; background: none; border: 0; }
.slabel ol#prizeList li::before { content: ''; order: 1; flex: 1; border-bottom: 1px dotted rgba(60,40,20,0.45); margin: 0 6px; transform: translateY(-3px); }
.slabel ol#prizeList li span { order: 0; }
.slabel ol#prizeList li b { order: 2; font-size: 14px; color: #2a1d10; }
.slabel ol#prizeList li:first-child { background: none; border: 0; }
.slabel .lbounty { border-top: 1px dashed rgba(60,40,20,0.35); padding-top: 8px; }
.slabel .lbounty div { display: flex; justify-content: space-between; font-size: 12px; }
.slabel .lbounty b { color: #a3480f; }
.slabel .lbounty p { font-size: 10.5px; color: #6b553c; margin-top: 4px; line-height: 1.4; }
.slabel .lbounty.claimed { opacity: 0.6; }

.tfoot { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(241, 231, 212, 0.4); z-index: 2; }

@media (max-width: 980px) {
  #title { overflow-y: auto; }
  #title .annot { display: none; }
  #title .tvig { position: fixed; background: linear-gradient(180deg, rgba(6,4,2,0.1) 0%, rgba(6,4,2,0.2) 35%, rgba(6,4,2,0.88) 60%, rgba(6,4,2,0.96) 100%); }
  .wordmark { left: 20px; top: 20px; }
  .wordmark h1 { font-size: 64px; }
  .tcorner { top: 22px; right: 18px; gap: 14px; }
  .menu { position: relative; left: auto; bottom: auto; margin: 46vh 20px 0; width: auto; }
  .mbtn.big { font-size: 44px; }
  .mbtn { font-size: 26px; }
  .mfields { grid-template-columns: 1fr; gap: 12px; }
  .slabel { position: relative; right: auto; bottom: auto; margin: 30px auto 0; transform: rotate(-1deg); width: calc(100% - 48px); max-width: 340px; }
  .tfoot { position: relative; bottom: auto; padding: 26px 0 18px; }
}
#title [hidden] { display: none !important; }
.slabel { top: 74px; bottom: auto; right: 40px; transform: rotate(1.4deg); }
@media (max-width: 980px) { .slabel { top: auto; } }

/* champs pseudo / wallet plus grands */
.mfields { grid-template-columns: 1fr; gap: 14px; width: min(470px, 100%); margin-top: 4px; }
.mfields label { gap: 14px; padding-bottom: 8px; border-bottom-width: 2px; }
.mfields span { font-size: 13px; min-width: 56px; letter-spacing: 0.06em; }
.mfields input { font-size: 22px; padding: 4px 0; }
.mstatus { font-size: 13px; margin-bottom: 16px; }
.mjoin { margin-bottom: 22px; }
/* popup wallet : étiquette de spécimen */
.wpop { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(5, 3, 2, 0.45); }
.wcard { position: relative; width: min(420px, calc(100% - 32px)); padding: 26px 26px 20px; background: #eee3cb; color: #2a1d10; transform: rotate(-1.2deg); box-shadow: 0 30px 60px rgba(0,0,0,0.55); font-family: var(--mono); font-size: 13px;
  background-image: repeating-linear-gradient(0deg, rgba(60,40,20,0.035) 0 1px, transparent 1px 22px); animation: wpin 0.25s ease-out; }
@keyframes wpin { from { transform: rotate(-4deg) translateY(20px); opacity: 0; } to { transform: rotate(-1.2deg); opacity: 1; } }
.wcard::before { content: ''; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e66a4a, #8f2a16); box-shadow: 0 3px 4px rgba(0,0,0,0.4); }
.wcard .lhead { font-size: 10px; letter-spacing: 0.12em; color: #7a6248; border-bottom: 1px dashed rgba(60,40,20,0.35); padding-bottom: 6px; margin-bottom: 10px; }
.wtitle { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin-bottom: 8px; }
.wtext { color: #5c4630; line-height: 1.5; margin-bottom: 14px; }
#wpInput { width: 100%; padding: 12px 2px; background: none; border: 0; border-bottom: 2px solid rgba(60,40,20,0.45); outline: none; color: #2a1d10; font-family: var(--mono); font-size: 16px; }
#wpInput:focus { border-bottom-color: #a3480f; }
.wmsg { min-height: 18px; margin: 8px 0 2px; font-size: 12px; color: #a3480f; }
.wmsg.ok { color: #2f7a3f; }
.wbtns { display: flex; align-items: center; gap: 16px; }
.wsave { padding: 12px 18px; background: #2a1d10; color: #eee3cb; font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: 0.04em; }
.wsave:hover { background: #4a3218; }
.wlater { color: #7a6248; text-decoration: underline; text-underline-offset: 3px; }
.mhint { font-family: var(--mono); font-size: 11px; color: rgba(241, 231, 212, 0.5); margin: 10px 0 0 2px; }

/* vault */
.lvault { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; }
.lvault > b { font-family: 'Anton', sans-serif; font-size: 40px; line-height: 1; letter-spacing: 0.01em; }
.lvault span { font-size: 11px; opacity: 0.8; }
.hud-tr .stat.vault b { color: #c9a2ff; }

/* carte « relique trouvée » : une étiquette de musée qui tombe, avec un reflet */
.relic-card { position: absolute; left: 50%; top: 34%; width: min(340px, calc(100% - 40px)); padding: 18px 20px 16px; transform: translate(-50%, -30px) rotate(-2deg) scale(0.9); opacity: 0; pointer-events: none; overflow: hidden;
  background: #efe5cf; color: #2a1d10; box-shadow: 0 24px 60px rgba(0,0,0,0.6); display: flex; flex-direction: column; gap: 4px; transition: opacity 0.35s, transform 0.5s cubic-bezier(.2,1.4,.4,1); }
.relic-card.on { opacity: 1; transform: translate(-50%, 0) rotate(-1.2deg) scale(1); }
.relic-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rc, #b47aff); }
.relic-card[data-kind="fossil"] { --rc: #b9a57a; } .relic-card[data-kind="geode"] { --rc: #9a5cd6; } .relic-card[data-kind="meteor"] { --rc: #e0702c; } .relic-card[data-kind="nugget"] { --rc: #e8b23a; }
.rc-kind { font: 10px var(--mono, monospace); letter-spacing: 0.14em; color: #7a6248; margin-top: 4px; }
.rc-name { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--rc, #2a1d10); filter: brightness(0.75); }
.rc-meta { font: 12px var(--mono, monospace); color: #5c4630; }
.rc-pay { font: 12px var(--mono, monospace); color: #2a1d10; border-top: 1px dashed rgba(60,40,20,0.35); padding-top: 6px; margin-top: 4px; }
.rc-shine { position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent); transform: rotate(20deg); }
.relic-card.on .rc-shine { animation: rcshine 1.1s 0.35s ease-out; }
@keyframes rcshine { from { left: -60%; } to { left: 140%; } }

/* bonus holder */
.hud-tr .stat.boost b { opacity: 0.55; }
.hud-tr .stat.boost.boost-on b { opacity: 1; color: #ffd25a; text-shadow: 0 0 12px rgba(255, 200, 80, 0.6); }
.lboost { font-size: 11px; margin: 6px 0 2px; padding: 5px 8px; border: 1px dashed rgba(60,40,20,0.4); }

/* annonce d'artefact pour toute la carte */
.banner.art b { font-size: 52px; background: linear-gradient(180deg, #fff6dc, #ffb84a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(255, 170, 60, 0.55)); animation: artpop 0.6s cubic-bezier(.2,1.5,.4,1); }
.banner.art span { font-size: 15px; }
@keyframes artpop { from { transform: scale(0.6); letter-spacing: 0.2em; } to { transform: scale(1); letter-spacing: -0.02em; } }
@media (max-width: 700px) { .banner.art b { font-size: 32px; } }
.relic-card[data-kind="scroll"] { --rc: #b9975a; } .relic-card[data-kind="bridge"] { --rc: #e0702c; } .relic-card[data-kind="gpu"] { --rc: #1f9a52; } .relic-card[data-kind="weights"] { --rc: #d9a43a; }
/* la carte se range à gauche pour laisser voir l'artefact qui jaillit au centre */
.relic-card { left: 24px; top: 30%; transform: translate(-30px, 0) rotate(-2deg) scale(0.9); }
.relic-card.on { transform: translate(0, 0) rotate(-1.2deg) scale(1); }
@media (max-width: 700px) { .relic-card { left: 50%; top: auto; bottom: 22%; transform: translate(-50%, 30px) scale(0.9); } .relic-card.on { transform: translate(-50%, 0) scale(1); } }

/* =================== ACCUEIL DE JEU (cartoon) =================== */
#title.g-title { display: block; padding: 0; background: none; overflow: hidden; font-family: 'Nunito', system-ui, sans-serif; color: #1a0f08; --o: #1a0f08; --yel: #ffc93c; --yel2: #ffb000; }
.g-title .g-sky { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,0) 55%, rgba(10,30,60,0.28) 100%), linear-gradient(180deg, rgba(20,60,120,0.22) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 70%, rgba(20,40,10,0.35) 100%); }
.g-top { position: absolute; left: 28px; right: 28px; top: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; z-index: 2; }
.g-logo { position: relative; transform: rotate(-3deg); }
.g-logo h1 { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; font-size: clamp(52px, min(9vw, 12.5vh), 128px); line-height: 0.82; letter-spacing: 0.01em; color: #fff;
  -webkit-text-stroke: 7px var(--o); paint-order: stroke fill; text-shadow: 0 8px 0 var(--o), 0 14px 26px rgba(0,0,0,0.25); }
.g-logo h1::first-line { color: var(--yel); }
.g-tag { position: absolute; left: 4px; top: -14px; z-index: 1; font-family: 'Lilita One', sans-serif; font-size: 20px; color: #fff; background: #e0462c; border: 3px solid var(--o); border-radius: 10px; padding: 2px 10px; box-shadow: 0 4px 0 var(--o); transform: rotate(-4deg); }
.g-pills { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.g-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #fff; border: 3px solid var(--o); border-radius: 999px; box-shadow: 0 4px 0 var(--o); font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 15px; color: var(--o); }
.g-pill small { font-size: 11px; letter-spacing: 0.08em; color: #7a6248; }
.g-pill.live i { width: 11px; height: 11px; border-radius: 50%; background: #3ccf4e; border: 2px solid var(--o); animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { transform: scale(1.3); } }
.g-pill.vault { background: #fff4cf; } .g-pill.vault b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 19px; }
.g-pill.btn { cursor: pointer; transition: transform 0.08s; } .g-pill.btn:hover { transform: translateY(-2px); } .g-pill.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--o); }
.g-pill.icon { width: 44px; padding: 0; justify-content: center; } .g-pill.icon svg { width: 22px; height: 22px; }
#muteBtn.off .w { display: none; } #muteBtn.off { background: #ddd; }
.g-card { position: absolute; z-index: 2; background: #fffdf6; border: 4px solid var(--o); border-radius: 26px; box-shadow: 0 8px 0 var(--o), 0 22px 50px rgba(0,0,0,0.25); }
.g-play { left: 28px; bottom: 54px; width: min(430px, calc(100% - 56px)); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.g-fields { display: grid; gap: 9px; }
.g-fields label { display: flex; align-items: center; gap: 10px; background: #f1ead9; border: 3px solid var(--o); border-radius: 16px; padding: 4px 6px 4px 12px; }
.g-fields label:focus-within { background: #fff; box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.6); }
.g-fields span { font-weight: 900; font-size: 12px; letter-spacing: 0.08em; color: #7a6248; min-width: 62px; }
.g-fields input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 19px; color: var(--o); padding: 8px 0; }
.g-fields input::placeholder { color: #b3a28a; font-weight: 700; }
.g-dice { flex: none; width: 38px; height: 38px; border: 2px solid var(--o); border-radius: 11px; background: #fff; font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--o); transition: transform .12s; }
.g-dice:hover { transform: rotate(-12deg) scale(1.06); } .g-dice:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--o); }
.g-play .jmsg { min-height: 0; margin: -4px 0 0; color: #c23a28; font-weight: 800; font-size: 13px; }
.gbtn { font-family: 'Lilita One', sans-serif; font-weight: 400; color: var(--o); border: 4px solid var(--o); cursor: pointer; transition: transform 0.08s, box-shadow 0.08s, filter 0.1s; }
.gbtn:hover, .gbtn.sel { filter: brightness(1.06); transform: translateY(-2px); }
.gbtn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--o) !important; }
.gbtn:disabled { filter: grayscale(0.8); opacity: 0.7; cursor: default; transform: none; }
.g-big { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 96px; border-radius: 22px; background: linear-gradient(180deg, #ffe066 0%, var(--yel) 50%, var(--yel2) 100%); box-shadow: 0 8px 0 var(--o), inset 0 -6px 0 rgba(0,0,0,0.12), inset 0 5px 0 rgba(255,255,255,0.55); }
.g-big b { font-weight: 400; font-size: 54px; line-height: 0.95; color: #fff; -webkit-text-stroke: 4px var(--o); paint-order: stroke fill; text-shadow: 0 4px 0 var(--o); letter-spacing: 0.04em; }
.g-big > span { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: 0.04em; margin-top: 2px; }
.g-big::after { content: ''; position: absolute; top: -50%; left: -40%; width: 30%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent); transform: rotate(20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-sm { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 16px; font-size: 19px; letter-spacing: 0.02em; color: #fff; -webkit-text-stroke: 1px var(--o); text-shadow: 0 2px 0 var(--o); box-shadow: 0 5px 0 var(--o), inset 0 -4px 0 rgba(0,0,0,0.14), inset 0 3px 0 rgba(255,255,255,0.35); }
.g-sm svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 0 var(--o)); }
.g-sm.green { background: #4cc73c; } .g-sm.blue { background: #3d8ff0; } .g-sm.purple { background: #9b5cf0; } .g-sm.orange { background: #ff8a2a; }
.g-side { right: 28px; top: 96px; width: 330px; padding: 16px 16px 14px; }
.g-sidehead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.g-sidehead b { font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: 0.01em; }
.g-sidehead span { font-weight: 900; font-size: 12px; color: #7a6248; }
.g-sidehead.small { margin-top: 12px; } .g-sidehead.small b { font-size: 18px; }
.g-vline { font-weight: 800; font-size: 13px; color: #5c4630; margin: 2px 0 10px; } .g-vline span { color: #e0462c; font-weight: 900; }
.g-arts, .g-finds { list-style: none; display: grid; gap: 7px; }
.g-arts li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; background: #f6efdf; border: 3px solid var(--o); border-radius: 14px; padding: 6px 10px 6px 6px; }
.g-arts .ic { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--o); border-radius: 10px; background: var(--k, #fff); }
.g-arts .ic svg { width: 26px; height: 26px; }
.g-arts .nm { font-weight: 900; font-size: 14px; line-height: 1.1; } .g-arts .nm small { display: block; font-weight: 800; font-size: 11px; color: #7a6248; }
.g-arts .lf { font-family: 'Lilita One', sans-serif; font-size: 20px; text-align: right; line-height: 1; } .g-arts .lf small { display: block; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 9px; letter-spacing: 0.08em; color: #7a6248; }
.g-boost { margin-top: 10px; font-weight: 900; font-size: 13px; background: #fff0b8; border: 3px solid var(--o); border-radius: 12px; padding: 7px 10px; }
.g-boost:empty { display: none; }
.g-finds li { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 13px; padding: 4px 2px; border-bottom: 2px dashed rgba(26,15,8,0.15); }
.g-finds li b { font-weight: 900; } .g-finds li.muted { color: #9a8670; border: 0; }
.g-foot { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; z-index: 2; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
@media (max-width: 980px) {
  .g-top { left: 16px; right: 16px; top: 14px; } .g-logo h1 { font-size: 64px; -webkit-text-stroke: 5px var(--o); }
  .g-pills { gap: 6px; } .g-pill { height: 38px; padding: 0 11px; font-size: 13px; } .g-pill.vault, #caBox { display: none; }
  .g-side { display: none; }
  .g-play { left: 16px; right: 16px; width: auto; bottom: 36px; padding: 14px; gap: 10px; }
  .g-big { height: 80px; } .g-big b { font-size: 44px; } .g-sm { height: 48px; font-size: 16px; }
  .g-fields input { font-size: 17px; }
}
/* l'ancienne liste de lots imposait sa police / sa mise en page : on reprend la main */
#title .g-arts li, #title .g-arts li span, #title .g-finds li, #title .g-finds li span { font-family: 'Nunito', system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
#title .g-arts li .nm { font-weight: 900; font-size: 14px; color: #1a0f08; }
#title .g-arts li .nm small { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 11px; color: #7a6248; }
#title .g-arts li .lf { font-family: 'Lilita One', sans-serif; font-size: 22px; color: #1a0f08; }
#title .g-arts li .lf small { font-family: 'Nunito', sans-serif; }
#title .g-arts li::before, #title .g-arts li::after { display: none; }
.g-logo { padding-top: 10px; } .g-tag { top: -10px; }
@media (max-width: 980px) { .g-tag { font-size: 15px; top: -8px; padding: 1px 8px; } }

/* connexion wallet */
.g-wallet { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; margin-top: 2px; padding-top: 10px; border-top: 2px dashed rgba(26,15,8,0.18); }
.g-wallet > .g-opt, .g-wallet > .g-won, .g-wallet > label { grid-column: 1 / -1; }
.g-wallet > .g-link { max-width: 120px; text-align: left; line-height: 1.25; }
@media (max-height: 820px) and (min-width: 721px) { .g-play { bottom: 28px; gap: 10px; padding: 14px 18px; } }
.g-opt { margin: 0; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 12.5px; line-height: 1.35; color: #6b5440; }
.g-opt b { display: block; font-family: 'Lilita One', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.06em; color: #8a63f0; margin-bottom: 2px; }
.g-wallet .g-conn { height: 40px; font-size: 15px; box-shadow: 0 4px 0 #1a0f08, inset 0 3px 0 rgba(255,255,255,0.3); }
.g-wallet .g-conn svg { width: 19px; height: 19px; }
.g-wallet .g-conn i { font-style: normal; font-size: 12px; opacity: 0.85; }
.g-conn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 16px; font-size: 20px; color: #fff; background: linear-gradient(180deg, #8a63f0, #6a3fd6); -webkit-text-stroke: 1px #1a0f08; text-shadow: 0 2px 0 #1a0f08; box-shadow: 0 5px 0 #1a0f08, inset 0 3px 0 rgba(255,255,255,0.3); }
.g-conn svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 #1a0f08); }
.g-won { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px; background: #e9fbe3; border: 3px solid #1a0f08; border-radius: 16px; font-family: 'Nunito', sans-serif; }
.g-won .dot { width: 12px; height: 12px; border-radius: 50%; background: #3ccf4e; border: 2px solid #1a0f08; }
.g-won b { font-weight: 900; font-size: 17px; } .g-won small { flex: 1; font-weight: 800; font-size: 12px; color: #3f7a33; }
.g-won.unverified { background: #fff4d8; } .g-won.unverified small { color: #9a6a1c; } .g-won.unverified .dot { background: #ffb627; }
.g-won button { width: 34px; height: 34px; border: 2px solid #1a0f08; border-radius: 10px; background: #fff; font-weight: 900; cursor: pointer; }
.g-link { justify-self: start; border: 0; background: none; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 12px; color: #7a6248; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 4px; }
#title .g-wallet .hidden { display: none; }
.wsave.alt { background: #6d5a48; } #wpConnect { background: #6a3fd6; }
