/* CLAW — interface « borne d'arcade / jouet » : panneaux épais et brillants, pastilles, gros chiffres, néons */
:root {
  --bg: #0b0620; --panel: rgba(22, 11, 52, .82); --panel2: rgba(32, 16, 72, .94); --line: rgba(255, 255, 255, .13); --line2: rgba(255, 255, 255, .22);
  --pink: #ff3df2; --cyan: #22e3ff; --yellow: #ffd60a; --gold: #ffc63f; --green: #3ddc84; --red: #ff4d6d; --violet: #8f6bff;
  --txt: #f6f0ff; --mute: #b9addb; --ink: #12072e;
  --glow-p: 0 0 18px rgba(255, 61, 242, .5); --glow-c: 0 0 18px rgba(34, 227, 255, .45); --glow-g: 0 0 20px rgba(255, 198, 63, .45);
  --r: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: 'Rubik', system-ui, sans-serif; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
input, textarea, .selectable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.off { display: none !important; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
a { color: var(--cyan); }
.gold { color: var(--gold); }

/* icônes (images de ui/, remplaçables) */
.ic { display: inline-block; width: 22px; height: 22px; flex: none; background: center / contain no-repeat; vertical-align: middle; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45)); }
.ic-coin { background-image: url(/ui/coin.svg); } .ic-gclaw { background-image: url(/ui/gclaw.svg); } .ic-shelf { background-image: url(/ui/shelf.svg); }
.ic-capsule { background-image: url(/ui/capsule.svg); } .ic-trophy { background-image: url(/ui/trophy.svg); } .ic-gift { background-image: url(/ui/gift.svg); } .ic-gear { background-image: url(/ui/gear.svg); } .ic-claw { background-image: url(/ui/claw.svg); }

/* panneau « jouet » : dégradé, liseré clair en haut, ombre portée épaisse */
.hcard, .card { position: relative; background: linear-gradient(180deg, rgba(48, 26, 102, .9), rgba(20, 10, 48, .9)); border: 2px solid var(--line2); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -3px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar { height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .6s;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 8px, transparent 8px 16px), linear-gradient(90deg, #ff9f1c, var(--gold)); background-size: 22px 22px, 100% 100%;
  box-shadow: 0 0 12px var(--gold); animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 22px 0, 0 0; } }

/* ---------------- logo ---------------- */
.logo { position: relative; font-family: 'Bungee Shade', 'Bungee', sans-serif; font-weight: 400; font-size: 118px; line-height: .9; margin: 0; color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 80px #b400ff; letter-spacing: 4px; animation: flick 6s infinite; }
.logo img { display: block; width: min(460px, 86vw); height: auto; filter: drop-shadow(0 0 24px rgba(255, 61, 242, .45)); animation: bob 4s ease-in-out infinite; }
.logo img + span { display: none; }
.logo.small { font-size: 64px; } .logo.small img { width: 260px; }
@keyframes flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-1deg); } }

/* ---------------- écran titre ---------------- */
#title { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; transition: opacity .5s; z-index: 20; background: radial-gradient(ellipse at 28% 30%, rgba(11, 6, 32, .35), rgba(11, 6, 32, .9) 70%); }
.tbg { display: none; }   /* (illustration de fond optionnelle : ui/keyart.jpg) */
#title.fade { opacity: 0; pointer-events: none; }
.tgrid { display: grid; grid-template-columns: minmax(340px, 600px) 1fr minmax(300px, 360px); gap: 28px; padding: 34px 40px 46px; min-height: 100%; align-items: start; }
.tleft { grid-column: 1; display: flex; flex-direction: column; gap: 16px; }
.tright { grid-column: 3; position: sticky; top: 34px; }
.tag { font-family: 'Bungee'; font-size: 19px; color: var(--cyan); text-shadow: var(--glow-c); letter-spacing: 1px; margin-top: 18px; }
.pitch { margin: 0; font-size: 16px; line-height: 1.55; color: #e2d9ff; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(34, 227, 255, .14), rgba(20, 10, 48, .8)); border: 2px solid rgba(34, 227, 255, .3); font-size: 13px; line-height: 1.4; color: #d8ceff; }
.step.gold { background: linear-gradient(180deg, rgba(255, 198, 63, .18), rgba(20, 10, 48, .8)); border-color: rgba(255, 198, 63, .4); }
.step .ic { width: 38px; height: 38px; } .step b { color: #fff; font-size: 14px; }
.live { padding: 14px 16px; }
.lhead { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .lhead b { color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.vbig { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.jack { flex: 1; }
.vbig small, .recent small, .vhead small { font-size: 11px; letter-spacing: 1.6px; color: var(--mute); font-weight: 800; }
.jack b { display: block; font-family: 'Bungee'; font-size: 40px; color: var(--gold); text-shadow: 0 0 16px rgba(255, 198, 63, .6), 0 3px 0 #6b4300; margin: 2px 0 8px; }
.tnext { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; font-size: 11px; color: var(--mute); text-align: center; }
.tnext img { width: 96px; border-radius: 8px; transform: rotate(4deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 198, 63, .35); animation: cardbob 3s ease-in-out infinite; }
@keyframes cardbob { 50% { transform: rotate(-2deg) translateY(-4px); } }
.tnext small { font-size: 9px; letter-spacing: 1px; } .tnext b { display: block; color: #fff; font-size: 13px; }
.swim { color: var(--gold); font-weight: 800; margin-top: 8px; min-height: 18px; font-size: 14px; }
.recent { margin-top: 12px; } .recent small .ic { width: 16px; height: 16px; }
#tRecent { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.win { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 2px solid var(--line); font-size: 14px; }
.win img { width: 44px; border-radius: 6px; }
.win b { color: var(--gold); } .win small { display: block; color: var(--mute); font-size: 12px; }
.win a { font-weight: 700; font-size: 13px; text-decoration: none; }
.empty { color: var(--mute); font-size: 13px; padding: 6px 0; }
.allw { font-size: 13px; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ca { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 2px solid var(--line); }
.ca small { color: var(--mute); font-weight: 800; }
.ca code { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; gap: 16px; font-weight: 700; font-size: 14px; } .links a { text-decoration: none; }
.join { padding: 20px; display: flex; flex-direction: column; gap: 8px; border-color: rgba(255, 61, 242, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 40px rgba(255, 61, 242, .2), 0 10px 30px rgba(0, 0, 0, .4); }
.join h3 { margin: 0 0 4px; font-family: 'Bungee'; font-weight: 400; font-size: 22px; color: var(--pink); text-shadow: var(--glow-p); }
.join label { font-size: 12px; letter-spacing: 1.4px; color: var(--mute); font-weight: 800; margin-top: 6px; text-transform: uppercase; }
.join input { background: rgba(0, 0, 0, .4); border: 2px solid var(--line2); border-radius: 12px; padding: 11px 13px; color: #fff; font: inherit; font-size: 16px; font-weight: 700; outline: none; }
.join input:focus { border-color: var(--cyan); box-shadow: var(--glow-c); }
.colors { display: flex; flex-wrap: wrap; gap: 9px; }
.pv { position: relative; margin: 2px -6px 4px; height: 250px; border-radius: 16px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 61, 242, .25), rgba(0, 0, 0, .25) 70%); border: 1px solid var(--line); overflow: hidden; cursor: grab; }
.pv canvas { width: 100%; height: 100%; display: block; } .pv small { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--mute); font-weight: 700; pointer-events: none; }
.hats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hats button { padding: 8px 4px; border-radius: 10px; font-weight: 800; font-size: 13px; background: rgba(0, 0, 0, .3); border: 2px solid var(--line2); }
.hats button.on { border-color: var(--cyan); box-shadow: var(--glow-c); background: rgba(34, 227, 255, .15); }
#tHatCol button, #tSkin button { width: 28px; height: 28px; border-radius: 9px; }
#cross { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.45); z-index: 9; pointer-events: none; }
#lockHint { position: fixed; left: 50%; top: 58%; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: rgba(11,6,32,.75); border: 1px solid var(--line2); font-weight: 700; font-size: 14px; z-index: 9; pointer-events: none; }
.colors button { width: 36px; height: 36px; border-radius: 12px; border: 3px solid rgba(0, 0, 0, .35); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .25); transition: transform .12s; }
.colors button:hover { transform: translateY(-2px); }
.colors button.on { border-color: #fff; transform: scale(1.12); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), 0 0 14px currentColor; }

/* gros bouton « arcade » */
button.big { position: relative; margin-top: 14px; font-family: 'Bungee'; font-size: 24px; padding: 16px 14px 18px; border-radius: 16px; color: #12072e;
  background: linear-gradient(180deg, #a9fbff 0%, var(--cyan) 45%, #10b7d6 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 7px 0 #087a93, 0 0 26px rgba(34, 227, 255, .45); transition: transform .08s; }
button.big::after { content: ''; position: absolute; left: 12px; right: 12px; top: 6px; height: 30%; border-radius: 10px; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
button.big:hover { filter: brightness(1.06); }
button.big:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 3px 0 #087a93; }
.small { font-size: 12px; color: var(--mute); text-align: center; margin-top: 8px; }
.btn, .ca button { position: relative; font-weight: 800; padding: 9px 15px; border-radius: 12px; color: #2a0030; background: linear-gradient(180deg, #ff9bf8, var(--pink)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 #8c0080; text-decoration: none; display: inline-block; }
.btn:active, .ca button:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 2px 0 #8c0080; }
.btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); border: 2px solid var(--line2); }
.btn.gold { background: linear-gradient(180deg, #fff0a8, var(--gold)); color: #2a1a00; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 4px 0 #a06c00; }
.btn.x { background: #000; color: #fff; border: 2px solid #fff; box-shadow: none; }

/* ---------------- chargement ---------------- */
#loading { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #241052, var(--bg) 70%); transition: opacity .6s; }
#loading.done { opacity: 0; pointer-events: none; }
.ld { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ldclaw { position: relative; width: 60px; height: 40px; } .ldclaw::before { content: ''; position: absolute; left: 29px; top: -10px; width: 2px; height: 22px; background: #8b80b8; }
.ldclaw i { position: absolute; left: 14px; top: 10px; width: 32px; height: 22px; border: 4px solid #c9d0e6; border-top: 0; border-radius: 0 0 18px 18px; animation: grab 1.2s ease-in-out infinite; }
@keyframes grab { 50% { transform: translateY(8px) scaleX(.7); } }
.ldbar { width: 280px; height: 14px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 2px solid var(--line2); }
.ldbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: var(--glow-p); transition: width .3s; }
#ldTxt { color: var(--mute); font-size: 14px; font-weight: 600; }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#me { position: absolute; left: 14px; top: 14px; padding: 10px 12px 12px; width: 260px; display: flex; flex-direction: column; gap: 10px; }
.mehead { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: currentColor; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 0 14px currentColor, inset 0 -4px 0 rgba(0, 0, 0, .25); flex: none; }
.mewho { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .mewho b { font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lic { align-self: flex-start; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--mute); letter-spacing: .4px; }
.lic.ok { background: rgba(255, 198, 63, .2); color: var(--gold); box-shadow: 0 0 10px rgba(255, 198, 63, .25); }
.pills { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px; }
.pill { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.pill .ic { width: 26px; height: 26px; } .pill > div { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.pill b { font-size: 17px; font-weight: 900; } .pill small { font-size: 10px; color: var(--mute); white-space: nowrap; font-weight: 600; }
.pill.gold { border-color: rgba(255, 198, 63, .35); } .pill.gold b { color: var(--gold); }
#vault { position: absolute; right: 14px; top: 14px; padding: 10px 14px 12px; width: 236px; display: flex; flex-direction: column; gap: 6px; border-color: rgba(255, 198, 63, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 24px rgba(255, 198, 63, .18), 0 8px 24px rgba(0, 0, 0, .35); }
.vhead { display: flex; align-items: center; gap: 6px; } .vhead .ic { width: 22px; height: 22px; }
.vrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .vrow b { font-family: 'Bungee'; font-size: 28px; color: var(--gold); text-shadow: 0 2px 0 #6b4300, 0 0 14px rgba(255, 198, 63, .5); } .vrow span { font-size: 11px; color: var(--mute); font-weight: 700; white-space: nowrap; }
#vLive { font-size: 12px; color: var(--mute); font-weight: 700; } #vLive.hot { color: var(--gold); animation: pulse 1s infinite; }
#miniWrap { position: absolute; right: 14px; top: 150px; width: 150px; height: 150px; border-radius: 50%; padding: 5px; background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .05)); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 20px rgba(34, 227, 255, .25), 0 8px 20px rgba(0, 0, 0, .4); }
#mini { width: 100%; height: 100%; border-radius: 50%; display: block; background: rgba(11, 6, 32, .85); }
#miniWrap span { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-family: 'Bungee'; font-size: 10px; letter-spacing: 1.5px; padding: 2px 10px; border-radius: 99px; background: var(--ink); border: 2px solid var(--line2); color: var(--cyan); }
#soon { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); text-align: center; padding: 10px 24px 12px; border-radius: 20px; background: linear-gradient(180deg, rgba(90, 58, 0, .94), rgba(34, 20, 0, .94)); border: 3px solid var(--gold); box-shadow: 0 0 34px rgba(255, 198, 63, .5), inset 0 2px 0 rgba(255, 255, 255, .25); pointer-events: none; }
#soon .sl { font-family: 'Bungee'; font-size: 14px; color: var(--gold); display: flex; align-items: center; gap: 6px; justify-content: center; }
#soonCd { font-family: 'Bungee'; font-size: 54px; line-height: 1; color: #fff; text-shadow: 0 0 20px var(--gold), 0 4px 0 #6b4300; }
#soonCard { font-size: 13px; color: #ffe9b0; margin-top: 4px; }
#hint { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: 'Bungee'; font-size: 54px; color: #fff; -webkit-text-stroke: 2px #2a0a40; text-shadow: 0 0 22px var(--pink), 0 6px 0 #2a0a40; pointer-events: none; white-space: nowrap; }
#hint.gold { color: var(--gold); text-shadow: 0 0 26px var(--gold), 0 6px 0 #4a2c00; -webkit-text-stroke-color: #4a2c00; }
#hint.pop { animation: hintpop .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes hintpop { from { transform: translate(-50%, -50%) scale(1.7) rotate(-6deg); opacity: 0; } }
#keys { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); pointer-events: none; white-space: nowrap; padding: 7px 14px; border-radius: 99px; background: rgba(11, 6, 32, .62); border: 1px solid var(--line); backdrop-filter: blur(6px); }
#keys:empty { display: none; }
#keys kbd { background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .1)); border: 1px solid rgba(255, 255, 255, .35); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font-family: inherit; font-weight: 800; font-size: 12px; }
#toasts { position: absolute; top: 140px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { padding: 9px 18px; border-radius: 99px; background: linear-gradient(180deg, rgba(48, 26, 102, .96), rgba(26, 12, 60, .96)); border: 2px solid var(--line2); font-weight: 700; font-size: 14px; animation: drop .3s; max-width: 90vw; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
#banner { position: absolute; top: 116px; left: 50%; transform: translateX(-50%); text-align: center; padding: 16px 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(64, 36, 0, .95), rgba(30, 14, 56, .95)); border: 3px solid var(--gold); box-shadow: 0 0 44px rgba(255, 198, 63, .35), inset 0 2px 0 rgba(255, 255, 255, .2); pointer-events: none; animation: drop .4s; max-width: 92vw; }
#banner h3 { margin: 0 0 6px; font-family: 'Bungee'; font-weight: 400; color: var(--gold); font-size: 24px; text-shadow: 0 3px 0 #4a2c00; } #banner p { margin: 0; color: #ffe9b0; line-height: 1.45; } #banner img { width: 96px; border-radius: 8px; margin-top: 10px; box-shadow: 0 0 20px rgba(255, 198, 63, .4); }
#rb { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
#rb button { width: 70px; height: 70px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; transition: transform .1s;
  background: linear-gradient(180deg, rgba(64, 36, 130, .95), rgba(26, 12, 60, .95)); border: 2px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 5px 0 rgba(0, 0, 0, .35); }
#rb button .ic { width: 34px; height: 34px; } #rb button em { font-style: normal; font-size: 11px; font-weight: 800; color: #e2d9ff; }
#rb button:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: var(--glow-p), 0 5px 0 rgba(0, 0, 0, .35); }
#rb button:active { transform: translateY(2px); }
#chat { position: absolute; left: 14px; bottom: 14px; width: min(320px, 34vw); }
#chatLog { max-height: 170px; overflow-y: auto; font-size: 13px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; scrollbar-width: none; mask-image: linear-gradient(transparent, #000 25%); -webkit-mask-image: linear-gradient(transparent, #000 25%); }
#chatLog .msg { text-shadow: 0 1px 3px #000; line-height: 1.35; } #chatLog .msg b { color: var(--cyan); } #chatLog .msg b.g { color: var(--gold); } #chatLog .msg b.dev { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
#chatLog .sys { color: #d9ccff; font-style: italic; } #chatLog .sys.gold { color: var(--gold); font-style: normal; font-weight: 700; } #chatLog .sys.epic { color: #d9a3ff; } #chatLog .sys.legend { color: var(--gold); }
#chatIn { width: 100%; background: rgba(11, 6, 32, .78); border: 2px solid var(--line2); border-radius: 14px; padding: 10px 13px; color: #fff; font: inherit; font-size: 14px; outline: none; }
#chatIn:focus { border-color: var(--cyan); box-shadow: var(--glow-c); }
/* inventaire de la pince (mode pince) */
#equip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: rgba(11, 6, 32, .7); border: 2px solid var(--line2); backdrop-filter: blur(6px); }
#equip .slot { position: relative; width: 116px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 6px; padding: 7px 10px 7px 8px; border-radius: 14px; text-align: left;
  background: linear-gradient(180deg, rgba(64, 36, 130, .9), rgba(26, 12, 60, .9)); border: 2px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .1s; }
#equip .slot .ic { grid-row: 1 / span 2; width: 38px; height: 38px; } #equip .slot b { font-family: 'Bungee'; font-weight: 400; font-size: 13px; } #equip .slot small { font-size: 11px; color: var(--mute); font-weight: 700; }
#equip .slot kbd { position: absolute; top: -8px; left: -6px; font: 800 11px 'Rubik'; padding: 1px 6px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line2); color: #fff; }
#equip .slot:hover { transform: translateY(-2px); }
#equip .slot.on { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 227, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
#equip .slot.gold.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(120, 80, 0, .95), rgba(50, 26, 0, .95)); box-shadow: 0 0 22px rgba(255, 198, 63, .6), inset 0 1px 0 rgba(255, 255, 255, .3); animation: goldpulse 1.2s ease-in-out infinite; }
#equip .slot.gold.on b, #equip .slot.gold.on small { color: var(--gold); }
#equip .slot.empty { opacity: .45; filter: grayscale(.6); }
@keyframes goldpulse { 50% { box-shadow: 0 0 34px rgba(255, 198, 63, .85), inset 0 1px 0 rgba(255, 255, 255, .3); } }
/* tactile */
#touch { position: absolute; inset: 0; pointer-events: none !important; }
#stick { position: absolute; left: 18px; bottom: 150px; width: 136px; height: 136px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14)); border: 3px solid rgba(255, 255, 255, .4); pointer-events: auto; touch-action: none; }
#stick i { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #cfc6ff); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }
#tAct { position: absolute; right: 18px; bottom: 150px; width: 112px; height: 112px; border-radius: 50%; pointer-events: auto; touch-action: none; background: radial-gradient(circle at 40% 32%, #ffb3fa, var(--pink) 55%, #a1009a); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 #6d0068, var(--glow-p); font-family: 'Bungee'; font-size: 20px; color: #fff; text-shadow: 0 2px 0 #6d0068; }
#tAct:active, #tAct.down { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 3px 0 #6d0068, var(--glow-p); }
#tAct.carry { background: radial-gradient(circle at 40% 32%, #fff4b8, var(--gold) 55%, #a06c00); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 #6b4800, 0 0 22px var(--gold); color: #2a1a00; text-shadow: none; }
#tExit { position: absolute; right: 30px; bottom: 282px; padding: 10px 16px; border-radius: 14px; pointer-events: auto; background: rgba(11, 6, 32, .85); border: 2px solid var(--line2); font-family: 'Bungee'; font-size: 15px; color: #fff; }
#touch.inplay #stick { border-color: var(--cyan); }

/* ---------------- panneaux ---------------- */
#panel { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5, 2, 16, .6); backdrop-filter: blur(3px); }
.pbox { width: min(780px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(44, 22, 96, .97), rgba(22, 10, 52, .97)); border: 3px solid rgba(255, 61, 242, .5); border-radius: 24px; box-shadow: 0 0 50px rgba(255, 61, 242, .25), inset 0 2px 0 rgba(255, 255, 255, .15); animation: popup .3s cubic-bezier(.2, 1.4, .4, 1); overflow: hidden; }
@keyframes popup { from { transform: scale(.9) translateY(10px); opacity: 0; } }
.phead { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(180deg, rgba(255, 61, 242, .2), rgba(255, 61, 242, 0)); border-bottom: 2px solid var(--line); }
.phead h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: 'Bungee'; font-weight: 400; font-size: 24px; color: #fff; text-shadow: 0 3px 0 #5a0058, var(--glow-p); }
.phead h2 .ic { width: 38px; height: 38px; }
#pClose { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 2px solid var(--line2); font-size: 18px; font-weight: 900; }
#pClose:hover { background: var(--pink); color: #2a0030; }
#pBody { padding: 16px 18px 22px; overflow-y: auto; }
.note { font-size: 14px; color: #ddd3ff; line-height: 1.55; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.pl { --rc: #b9c4d6; border-radius: 16px; padding: 8px 8px 10px; text-align: center; position: relative; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc) 22%, transparent), rgba(0, 0, 0, .18) 70%); border: 2px solid color-mix(in srgb, var(--rc) 55%, transparent); transition: transform .12s; }
.pl:hover { transform: translateY(-3px); box-shadow: 0 0 18px color-mix(in srgb, var(--rc) 45%, transparent); }
.pl img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.pl.locked { --rc: #5a4d80; background: rgba(0, 0, 0, .2); } .pl.locked img { filter: brightness(0) opacity(.35); }
.pl .n { font-weight: 800; font-size: 13px; } .pl small { color: var(--mute); font-size: 11px; font-weight: 700; } .pl .x { position: absolute; top: 6px; right: 6px; font-weight: 900; font-size: 12px; color: #2a1a00; background: var(--gold); border-radius: 99px; padding: 1px 7px; }
.pl .st { font-size: 11px; letter-spacing: 1px; }
.glog { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ge { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 2px solid var(--line); font-size: 14px; }
.ge img { width: 48px; border-radius: 6px; } .ge > div { flex: 1; } .ge small { color: var(--mute); }
.s { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .1); white-space: nowrap; text-decoration: none; color: #fff; }
.s.sent { background: rgba(61, 220, 132, .2); color: var(--green); } .s.live { background: rgba(255, 198, 63, .2); color: var(--gold); animation: pulse 1.2s infinite; }
.wrow { display: flex; gap: 8px; margin: 10px 0; } .wrow input { flex: 1; background: rgba(0, 0, 0, .4); border: 2px solid var(--line2); border-radius: 12px; padding: 10px 12px; color: #fff; font: inherit; font-size: 14px; outline: none; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; } .tbl td { padding: 9px 10px; background: rgba(0, 0, 0, .22); } .tbl td:first-child { border-radius: 12px 0 0 12px; font-size: 18px; } .tbl td:last-child { border-radius: 0 12px 12px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mgrid button { padding: 16px 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 2px solid var(--line2); font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .1s; }
.mgrid button:hover { transform: translateY(-2px); border-color: var(--cyan); }
.mgrid button span, .mgrid button .ic { font-size: 30px; width: 40px; height: 40px; }

/* ---------------- menu Échap : page qui défile (comme REEL) ---------------- */
#menu { position: fixed; inset: 0; z-index: 28; overflow-y: auto; background: radial-gradient(ellipse at 50% 0%, rgba(70, 30, 140, .9), rgba(8, 4, 24, .96) 70%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); scroll-behavior: smooth; }
.mwrap { width: min(980px, 94vw); margin: 0 auto; padding: 24px 0 60px; }
.mhero { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.mhero .logo { font-size: 110px; }
.mresume { min-width: 320px; font-size: 30px !important; }
.mtiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; width: 100%; }
.mtile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 20px; font-weight: 800; font-size: 14px; color: #fff; transition: transform .12s;
  background: linear-gradient(180deg, rgba(64, 36, 130, .95), rgba(26, 12, 60, .95)); border: 2px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 5px 0 rgba(0, 0, 0, .35); }
.mtile .ic { width: 46px; height: 46px; } .mtile:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: var(--glow-p), 0 5px 0 rgba(0, 0, 0, .35); }
.mscroll { color: var(--mute); font-size: 13px; font-weight: 700; animation: bob 2s ease-in-out infinite; }
.msec { margin-top: 26px; padding: 20px 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(48, 26, 102, .85), rgba(20, 10, 48, .85)); border: 2px solid var(--line2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.msec h2 { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-family: 'Bungee'; font-weight: 400; font-size: 24px; color: #fff; text-shadow: 0 3px 0 #5a0058, var(--glow-p); }
.msec h2 .ic { width: 36px; height: 36px; }
.mvault { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mpool { flex: 1; min-width: 240px; } .mpool b { display: block; font-family: 'Bungee'; font-size: 46px; color: var(--gold); text-shadow: 0 3px 0 #6b4300, 0 0 18px rgba(255, 198, 63, .5); } .mpool small { color: var(--mute); font-weight: 700; } .mpool .bar { margin-top: 10px; }
.mlive { margin-top: 10px; color: var(--gold); font-weight: 800; animation: pulse 1.2s infinite; }
.mvault > img { width: 110px; border-radius: 10px; transform: rotate(4deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .6), 0 0 26px rgba(255, 198, 63, .35); }
.mnext { display: flex; flex-direction: column; gap: 3px; } .mnext small { font-size: 11px; letter-spacing: 1.6px; color: var(--mute); font-weight: 800; } .mnext b { font-family: 'Bungee'; font-weight: 400; font-size: 22px; } .mnext span { color: #ddd3ff; }
.msteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mstep { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); } .mstep .ic { width: 44px; height: 44px; }
.mstep h4 { margin: 0 0 4px; font-size: 15px; } .mstep p { margin: 0; font-size: 13px; line-height: 1.45; color: #d8ceff; }
.mkeys { display: flex; flex-direction: column; gap: 8px; } .mkeys > div { display: flex; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); font-size: 14px; }
.mkeys .k { min-width: 170px; } .mkeys kbd { display: inline-block; background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .1)); border: 1px solid rgba(255, 255, 255, .35); border-bottom-width: 3px; border-radius: 7px; padding: 1px 7px; font: 800 12px 'Rubik'; }
.mdrops { display: flex; flex-direction: column; gap: 10px; }
.mdrop { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 2px solid var(--line); }
.mdrop img { width: 54px; border-radius: 6px; } .mdrop > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; } .mdrop small { color: var(--mute); } .mdrop span { font-size: 13px; color: #ddd3ff; }
.mst { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .mst a { font-size: 12px; font-weight: 800; text-decoration: none; }
.mfoot { display: flex; justify-content: center; margin-top: 30px; }
@media (max-width: 760px) { .mtiles { grid-template-columns: repeat(3, 1fr); } .mhero .logo { font-size: 72px; } .mresume { min-width: 0; width: 100%; } .mkeys > div { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------------- popups de gain ---------------- */
#pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25; width: min(390px, 92vw); text-align: center; padding: 22px 18px 18px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(44, 22, 96, .97), rgba(20, 10, 48, .97)); border: 3px solid var(--rc, var(--cyan)); box-shadow: 0 0 60px color-mix(in srgb, var(--rc, var(--cyan)) 70%, transparent), inset 0 2px 0 rgba(255, 255, 255, .2); animation: popin .5s cubic-bezier(.2, 1.6, .4, 1); }
#pop::before { content: ''; position: absolute; left: 50%; top: 38%; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: -1; opacity: .35;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc, var(--cyan)) 70%, transparent) 0 10deg, transparent 10deg 20deg); animation: spin 14s linear infinite; mask-image: radial-gradient(circle, #000 15%, transparent 60%); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 60%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popin { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }
#pop .won { display: inline-block; font-family: 'Bungee'; font-size: 15px; color: #fff; letter-spacing: 2px; padding: 4px 14px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 2px solid var(--line2); }
#pop .new { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); background: var(--yellow); color: #2a1a00; font-family: 'Bungee'; font-size: 13px; padding: 5px 44px; box-shadow: 0 0 18px var(--yellow); }
#pop img.pi { width: 220px; height: 220px; object-fit: contain; animation: wiggle 1.2s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45)); }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }
#pop h3 { margin: 4px 0; font-family: 'Bungee'; font-weight: 400; font-size: 30px; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
#pop .rar { font-weight: 900; letter-spacing: 1px; } #pop .txt { color: #ddd3ff; font-size: 14px; margin: 6px 0 12px; }
#pop.gold { --rc: var(--gold); } #pop.gold img.card { width: 200px; border-radius: 10px; margin: 10px 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 198, 63, .5); animation: cardbob 3s ease-in-out infinite; }
#pop .claim label { display: block; font-size: 13px; color: #ffe9b0; margin: 6px 0; } #pop .claim input { width: 100%; background: rgba(0, 0, 0, .45); border: 2px solid var(--line2); border-radius: 12px; padding: 10px; color: #fff; font: inherit; font-size: 13px; }
#pop .cb { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
#pop small { display: block; color: var(--mute); font-size: 11px; margin-top: 8px; }

/* ---------------- mobile ---------------- */
@media (max-width: 900px) {
  .tgrid { grid-template-columns: 1fr; padding: 22px 16px 40px; gap: 18px; }
  .tleft, .tright { grid-column: 1; } .tright { position: static; order: -1; }
  .logo { font-size: 84px; } .steps { grid-template-columns: 1fr; } .ca { min-width: 0; } .vbig { flex-direction: column; align-items: stretch; } .tnext { width: auto; flex-direction: row; text-align: left; }
}
@media (pointer: coarse) {
  #me { left: 8px; top: 8px; width: min(220px, 52vw); padding: 7px 8px 8px; gap: 6px; } .avatar { width: 28px; height: 28px; border-radius: 9px; } .mewho b { font-size: 14px; }
  .pills { grid-template-columns: 1fr 1fr 1fr; gap: 4px; } .pill { padding: 3px 4px; gap: 3px; } .pill .ic { width: 18px; height: 18px; } .pill b { font-size: 13px; } .pill small { font-size: 8.5px; }
  #vault { right: 8px; top: 8px; width: 42vw; padding: 7px 9px; gap: 3px; } .vrow { flex-direction: column; align-items: flex-start; gap: 0; } .vrow b { font-size: 20px; } #vLive { font-size: 10px; }
  #miniWrap { right: 8px; top: 140px; width: 96px; height: 96px; padding: 3px; }
  #chat { left: 8px; bottom: 300px; width: 52vw; } #chatLog { max-height: 64px; }
  #rb { right: 8px; bottom: 8px; gap: 5px; } #rb button { width: 50px; height: 50px; border-radius: 14px; } #rb button .ic { width: 28px; height: 28px; } #rb button em { display: none; }
  #keys { bottom: 70px; font-size: 12px; white-space: normal; text-align: center; width: 60vw; }
  #equip { bottom: 64px; padding: 4px; gap: 5px; } #equip .slot { width: 92px; grid-template-columns: 28px 1fr; padding: 5px 6px; } #equip .slot .ic { width: 28px; height: 28px; } #equip .slot kbd { display: none; }
  #hint { font-size: 36px; } #soon { top: 8px; padding: 6px 14px; } #soonCd { font-size: 36px; }
  #toasts { top: 210px; } .toast { font-size: 13px; }
}
@media (pointer: fine) { #tAct, #tExit { display: none !important; } }
