:root {
  --ink: #0b1730; --ink2: #13254a; --glass: rgba(11, 23, 48, .72); --line: rgba(255, 255, 255, .14);
  --aqua: #5fe0d0; --sky: #5fb4ff; --gold: #ffd23f; --gold2: #ff9f1c; --pink: #ff8ad8; --txt: #f3f7ff; --mute: #9fb0cc;
  --r1: #cfd8e3; --r2: #7ee08a; --r3: #5fb4ff; --r4: #c58bff; --r5: #ffb347;
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1730; color: var(--txt); -webkit-tap-highlight-color: transparent; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.off { display: none !important; }
.card { background: var(--glass); border: 2px solid var(--line); border-radius: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
h1, h2, h3, h4, .logo, .big { font-family: 'Lilita One', 'Fredoka', sans-serif; font-weight: 400; letter-spacing: .5px; }
.goldtxt { color: var(--gold); text-shadow: 0 0 18px rgba(255, 210, 63, .6); }

/* ---------------- logo ---------------- */
.logo { display: flex; gap: .02em; font-size: clamp(72px, 11vw, 150px); line-height: .9; }
.logo span { display: inline-block; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink), 0 10px 24px rgba(0, 0, 0, .35); animation: bob 3s ease-in-out infinite; }
.logo span:nth-child(1) { color: var(--aqua); animation-delay: 0s; }
.logo span:nth-child(2) { color: #fff; animation-delay: .15s; }
.logo span:nth-child(3) { color: #fff; animation-delay: .3s; }
.logo span:nth-child(4) { color: var(--gold); animation-delay: .45s; }
.logo.sm { font-size: 64px; justify-content: center; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }

/* ---------------- loading ---------------- */
#loading { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, #1a3a6a, #0b1730 70%); z-index: 50; transition: opacity .6s; }
#loading.fade { opacity: 0; pointer-events: none; }
.ld { width: min(420px, 80vw); text-align: center; }
.ldbar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 22px 0 12px; border: 2px solid var(--line); }
.ldbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aqua), var(--sky)); transition: width .2s; }
#ldTxt { color: var(--mute); font-size: 15px; }

/* ---------------- title ---------------- */
#title { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: linear-gradient(90deg, rgba(8, 18, 40, .78) 0%, rgba(8, 18, 40, .35) 55%, rgba(8, 18, 40, .6) 100%); transition: opacity .5s; }
#title.fade { opacity: 0; pointer-events: none; }
.tgrid { display: grid; grid-template-columns: minmax(320px, 470px) minmax(320px, 440px); justify-content: space-between; gap: 40px; padding: 4vh 5vw; min-height: 100%; align-items: center; }
.tag { font-family: 'Lilita One'; font-size: 22px; color: var(--aqua); margin: 6px 0 10px 4px; text-shadow: 0 2px 0 var(--ink); }
.pitch { font-size: 18px; line-height: 1.45; margin: 0 0 18px 2px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.custom { padding: 18px; display: grid; gap: 10px; }
.custom > label, .pick label { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; color: var(--mute); text-transform: uppercase; }
.custom input { font: inherit; font-size: 20px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line); background: rgba(255, 255, 255, .08); color: #fff; outline: none; }
.custom input:focus { border-color: var(--aqua); }
.pick { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 8px; }
.sw { display: flex; gap: 6px; flex-wrap: wrap; }
.sw button { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); transition: transform .12s; }
.sw button.on { border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 2px var(--ink); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 2px solid var(--line); font-size: 14px; }
.seg button.on { background: var(--aqua); color: var(--ink); border-color: var(--aqua); font-weight: 600; }
.big { font-size: 28px; padding: 14px 20px; border-radius: 16px; color: var(--ink); background: linear-gradient(180deg, #ffe066, #ffb020); box-shadow: 0 6px 0 #b86f00, 0 12px 30px rgba(255, 180, 30, .35); transition: transform .1s, box-shadow .1s; margin-top: 6px; }
.big:hover { transform: translateY(-2px); }
.big:active { transform: translateY(4px); box-shadow: 0 2px 0 #b86f00; }
.small { font-size: 13px; color: var(--mute); text-align: center; }
.tright { display: grid; gap: 14px; }
.live { padding: 16px 18px; }
.lhead { font-size: 14px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ef27a; box-shadow: 0 0 10px #3ef27a; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.poolbig { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0; }
.poolbig small, .recent small { font-size: 12px; letter-spacing: 1.5px; color: var(--mute); font-weight: 600; }
.poolbig b { display: block; font-family: 'Lilita One'; font-size: 46px; color: var(--gold); text-shadow: 0 3px 0 #7a4a00, 0 0 24px rgba(255, 210, 63, .45); }
.nextcard { display: flex; align-items: center; gap: 10px; text-align: right; font-size: 13px; color: var(--mute); max-width: 220px; }
.nextcard img { width: 58px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transform: rotate(4deg); }
.nextcard b { color: #fff; display: block; font-size: 14px; }
.gbar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.gbar.big { height: 14px; border: 2px solid var(--line); }
.gbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); box-shadow: 0 0 12px var(--gold); transition: width .6s; }
.swim { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--gold); min-height: 20px; }
.recent { margin-top: 12px; }
#tRecent { display: flex; gap: 8px; margin-top: 6px; overflow-x: auto; padding-bottom: 4px; }
#tRecent .rc { flex: 0 0 auto; width: 74px; font-size: 11px; color: var(--mute); text-align: center; }
#tRecent .rc img { width: 70px; border-radius: 6px; display: block; margin-bottom: 3px; }
#tRecent .empty { font-size: 13px; color: var(--mute); }
.how { padding: 8px 16px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border: 0; }
.step > b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--aqua); color: var(--ink); font-family: 'Lilita One'; font-size: 18px; }
.step:nth-child(4) > b { background: var(--gold); }
.step h4 { margin: 0 0 2px; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: #c9d5ea; line-height: 1.4; }
.ca { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ca small { font-weight: 700; color: var(--gold); }
.ca code { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.ca button { padding: 6px 12px; border-radius: 10px; background: var(--aqua); color: var(--ink); font-weight: 700; font-size: 13px; }
.links { display: flex; gap: 16px; justify-content: center; font-size: 14px; }
.links a { color: var(--mute); }

/* ---------------- HUD ---------------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#tl { position: absolute; left: 14px; top: 14px; padding: 10px 14px; min-width: 210px; }
.me { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.lic { font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: var(--mute); cursor: pointer; }
.lic.ok { background: var(--gold); color: var(--ink); }
.row { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 16px; }
.row b { font-size: 18px; }
.sep { flex: 1; }
.rodtag { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.baits { display: flex; gap: 6px; margin-top: 8px; }
.baits button { flex: 1; padding: 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 2px solid transparent; font-size: 12px; line-height: 1.15; }
.baits button.on { border-color: var(--aqua); background: rgba(95, 224, 208, .15); }
.baits button small { display: block; color: var(--mute); font-size: 10px; }
.baits button kbd { font-family: inherit; font-size: 9px; opacity: .6; }
#tc { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none !important; }
.pill { background: var(--glass); border: 2px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(6px); }
#wxTxt { color: var(--aqua); font-size: 13px; }
.zone { font-size: 13px; }
#tr { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.mapwrap { position: relative; padding: 6px; border-radius: 50%; }
#minimap { display: block; width: 150px; height: 150px; border-radius: 50%; }
#mapN { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
#goldBox { width: 220px; padding: 10px 12px; cursor: pointer; border-color: rgba(255, 210, 63, .35); }
.gtitle { font-family: 'Lilita One'; font-size: 14px; letter-spacing: 1px; color: var(--gold); }
.gpool { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 0 6px; }
.gpool b { font-family: 'Lilita One'; font-size: 26px; color: #fff; }
.gpool span { font-size: 12px; color: var(--mute); }
.glive { font-size: 12px; margin-top: 6px; color: var(--gold); font-weight: 600; min-height: 15px; }
.glive.hot { animation: pulse 1s infinite; }
#rb { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
#rb button { position: relative; width: 60px; height: 60px; border-radius: 16px; background: var(--glass); border: 2px solid var(--line); display: grid; place-items: center; align-content: center; gap: 1px; transition: transform .1s; backdrop-filter: blur(6px); }
#rb button:hover { transform: translateY(-3px); border-color: var(--aqua); }
#rb button span { font-size: 22px; line-height: 1; }
#rb button em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mute); }
#rb button i { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--aqua); color: var(--ink); border-radius: 99px; padding: 1px 6px; }
#chat { position: absolute; left: 14px; bottom: 14px; width: min(360px, 42vw); }
#chatLog { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 6px 2px; mask-image: linear-gradient(transparent, #000 25%); -webkit-mask-image: linear-gradient(transparent, #000 25%); scrollbar-width: none; }
#chatLog::-webkit-scrollbar { display: none; }
.msg { font-size: 14px; line-height: 1.3; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); word-wrap: break-word; }
.msg b { color: var(--aqua); }
.msg b.g { color: var(--gold); }
.msg.sys { color: #d6e4ff; font-style: italic; }
.msg.gold { color: var(--gold); font-weight: 700; font-style: normal; }
.msg.legend { color: var(--r5); font-weight: 600; font-style: normal; }
.msg.epic { color: var(--r4); font-style: normal; }
#chatIn { width: 100%; font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--glass); color: #fff; outline: none; }
#chatIn:focus { border-color: var(--aqua); }
#hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); font-weight: 600; font-size: 18px; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); pointer-events: none !important; text-align: center; white-space: nowrap; }
#hint.big { font-family: 'Lilita One'; font-size: 54px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: pop .25s; bottom: 46%; }
#hint.big.gold { color: var(--gold); }
@keyframes pop { from { transform: translateX(-50%) scale(.4); } to { transform: translateX(-50%) scale(1); } }
#prompt { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); padding: 8px 16px; border-radius: 99px; background: var(--glass); border: 2px solid var(--aqua); font-weight: 600; cursor: pointer; }
#prompt kbd { background: var(--aqua); color: var(--ink); padding: 1px 8px; border-radius: 6px; font-family: inherit; margin-right: 6px; }
#charge { position: absolute; left: 50%; bottom: 60px; width: 260px; height: 16px; transform: translateX(-50%); border-radius: 99px; background: rgba(11, 23, 48, .75); border: 2px solid var(--line); overflow: hidden; pointer-events: none !important; }
#charge i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aqua), #fff, var(--gold)); }
#fight { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(460px, 92vw); padding: 12px 16px 10px; border-radius: 18px; background: var(--glass); border: 2px solid var(--line); backdrop-filter: blur(8px); pointer-events: none !important; }
#fight.gold { border-color: var(--gold); box-shadow: 0 0 40px rgba(255, 210, 63, .4); }
#fight.burst { animation: shake .12s infinite; }
@keyframes shake { 0% { transform: translateX(-50%) translate(0, 0); } 33% { transform: translateX(-50%) translate(-3px, 1px); } 66% { transform: translateX(-50%) translate(3px, -1px); } }
.fhead { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.warn { color: #ff5a5a; font-family: 'Lilita One'; font-size: 22px; opacity: 0; line-height: 1; }
.warn.on { opacity: 1; animation: pulse .3s infinite; }
.frow { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; margin: 6px 0; }
.frow label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--mute); }
.fbar { position: relative; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: visible; }
.fbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; width: 0; }
.fbar.prog i { background: linear-gradient(90deg, var(--sky), var(--aqua)); }
.fbar.prog span { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 22px; transition: left .05s; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.fbar.ten i { background: linear-gradient(90deg, #3ef27a, #ffe066 60%, #ff5a5a); background-size: 460px 100%; }
.redline { position: absolute; right: 0; top: -3px; bottom: -3px; width: 3px; background: #ff5a5a; border-radius: 2px; }
.fhelp { text-align: center; font-size: 12px; color: var(--mute); margin-top: 4px; }
#banner { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); text-align: center; padding: 14px 28px; border-radius: 20px; background: linear-gradient(180deg, rgba(60, 40, 0, .85), rgba(30, 18, 0, .85)); border: 3px solid var(--gold); box-shadow: 0 0 60px rgba(255, 210, 63, .45); animation: drop .5s cubic-bezier(.2, 1.4, .4, 1); max-width: 92vw; pointer-events: none !important; }
#banner h3 { margin: 0; font-size: 34px; color: var(--gold); text-shadow: 0 3px 0 #5a3500; }
#banner p { margin: 4px 0 0; font-size: 16px; }
#banner img { height: 120px; border-radius: 8px; margin-top: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
@keyframes drop { from { transform: translate(-50%, -60px) scale(.7); opacity: 0; } }
#toasts { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none !important; }
.toast { padding: 8px 16px; border-radius: 99px; background: var(--glass); border: 2px solid var(--line); font-weight: 600; font-size: 15px; animation: drop .3s; }

/* ---------------- panneaux ---------------- */
#panel { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(5, 10, 25, .55); }
.pbox { width: min(860px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #16295a, #0e1c3e); border: 3px solid rgba(255, 255, 255, .18); border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: drop .3s; }
.phead { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px solid var(--line); }
.phead h2 { margin: 0; font-size: 28px; }
#pClose { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 18px; }
#pBody { padding: 16px 20px 20px; overflow-y: auto; }
.dexhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.dexhead .prog { flex: 1; min-width: 160px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; border: 2px solid transparent; }
.tabs button.on { border-color: currentColor; }
.dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.dc { background: rgba(255, 255, 255, .05); border: 2px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; text-align: center; position: relative; }
.dc img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.dc .n { font-size: 13px; font-weight: 600; line-height: 1.15; min-height: 30px; display: flex; align-items: center; justify-content: center; }
.dc .m { font-size: 11px; color: var(--mute); }
.dc .st { position: absolute; top: 6px; left: 8px; font-size: 11px; font-weight: 700; }
.dc.locked .n { color: var(--mute); }
.dc .hintt { font-size: 10.5px; color: var(--mute); line-height: 1.25; }
.r1 { color: var(--r1); } .r2 { color: var(--r2); } .r3 { color: var(--r3); } .r4 { color: var(--r4); } .r5 { color: var(--r5); } .r6 { color: var(--gold); }
.bk { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.bk .dc { cursor: pointer; }
.bk .dc.keep { border-color: var(--aqua); }
.bk .dc.keep::after { content: '🔒'; position: absolute; top: 4px; right: 6px; font-size: 13px; }
.actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; }
.btn { padding: 10px 16px; border-radius: 12px; background: var(--aqua); color: var(--ink); font-weight: 700; }
.btn.gold { background: linear-gradient(180deg, #ffe066, #ffb020); }
.btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.shop { display: grid; gap: 10px; }
.shop h3 { margin: 10px 0 2px; font-size: 20px; }
.it { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; background: rgba(255, 255, 255, .05); border: 2px solid var(--line); border-radius: 14px; }
.it h4 { margin: 0; font-size: 17px; }
.it p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.it .stats { font-size: 12px; color: #c9d5ea; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl td, .tbl th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-size: 12px; color: var(--mute); letter-spacing: 1px; }
.tbl .rk { font-family: 'Lilita One'; font-size: 18px; width: 36px; }
.tbl tr.me td { background: rgba(95, 224, 208, .1); }
.glog { display: grid; gap: 10px; }
.ge { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 10px; background: rgba(255, 255, 255, .05); border: 2px solid var(--line); border-radius: 14px; }
.ge img { width: 70px; border-radius: 6px; }
.ge .s { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.ge .s.swim { background: var(--gold); color: var(--ink); }
.ge .s.sent { background: #3ef27a; color: var(--ink); }
.ge small { color: var(--mute); }
.note { font-size: 14px; color: #c9d5ea; line-height: 1.5; background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px 14px; }
.note b { color: #fff; }
.lic-box { display: grid; gap: 12px; }
.chk { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.chk i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.chk.ok i { background: #3ef27a; color: var(--ink); }

/* ---------------- carte de prise ---------------- */
#catch { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25; width: min(360px, 90vw); padding: 18px 20px 16px; text-align: center; background: linear-gradient(180deg, #1b3266, #0f1f45); border: 4px solid var(--rc, #cfd8e3); border-radius: 26px; box-shadow: 0 0 0 4px var(--ink), 0 20px 60px rgba(0, 0, 0, .5), 0 0 50px color-mix(in srgb, var(--rc, #fff) 40%, transparent); animation: catchIn .45s cubic-bezier(.2, 1.5, .4, 1); cursor: pointer; }
@keyframes catchIn { from { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; } }
#catch .new { position: absolute; top: -16px; right: -10px; background: var(--pink); color: #fff; font-family: 'Lilita One'; padding: 4px 12px; border-radius: 10px; transform: rotate(8deg); box-shadow: 0 4px 0 #a04a8a; }
#catch img.f { width: 220px; height: 170px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
#catch h3 { margin: 4px 0 0; font-size: 30px; }
#catch .rar { font-weight: 700; letter-spacing: 1.5px; font-size: 13px; }
#catch .meas { display: flex; justify-content: center; gap: 18px; margin: 10px 0; font-size: 15px; }
#catch .meas b { display: block; font-family: 'Lilita One'; font-size: 22px; }
#catch .txt { font-size: 14px; color: #c9d5ea; font-style: italic; }
#catch.goldwin { width: min(440px, 92vw); --rc: #ffd23f; }
#catch.goldwin img.card { width: 200px; border-radius: 10px; margin: 8px 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 210, 63, .5); animation: cardspin 1s ease-out; }
@keyframes cardspin { from { transform: rotateY(180deg) scale(.5); } }

/* ---------------- tactile ---------------- */
#touch { position: absolute; inset: 0; pointer-events: none !important; }
#stick { position: absolute; left: 28px; bottom: 120px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 2px solid var(--line); pointer-events: auto; touch-action: none; }
#stick i { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
#tAct { position: absolute; right: 28px; bottom: 110px; width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(180deg, #ffe066, #ffb020); box-shadow: 0 6px 0 #b86f00; font-size: 40px; pointer-events: auto; touch-action: none; }

@media (max-width: 900px) {
  .tgrid { grid-template-columns: 1fr; padding: 20px 16px 40px; gap: 18px; }
  .logo { font-size: 84px; }
  #goldBox { width: 150px; padding: 8px 10px; }
  .gpool { flex-direction: column; align-items: flex-start; }
  .gpool b { font-size: 20px; }
  #minimap { width: 100px; height: 100px; }
  #tl { left: 8px; top: 8px; }
  .me { font-size: 14px; } .row b { font-size: 15px; }
  .baits button { font-size: 11px; padding: 3px 4px; }
  #tc { top: auto; bottom: 64px; }
  #tr { top: 8px; right: 8px; }
  #chat { width: 58vw; left: 8px; bottom: 250px; }
  #chatLog { max-height: 90px; }
  #chatIn { font-size: 13px; padding: 6px 10px; }
  #rb { right: 8px; bottom: 8px; gap: 5px; }
  #rb button { width: 48px; height: 48px; border-radius: 12px; }
  #rb button em { display: none; }
  #tl { min-width: 0; padding: 8px 10px; }
  #tAct { bottom: 80px; }
  #stick { bottom: 90px; }
  #hint { bottom: 210px; font-size: 15px; white-space: normal; width: 80vw; }
  #fight { bottom: 200px; }
}

/* ---------------- consignes de touches ---------------- */
kbd { display: inline-block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: .82em; line-height: 1; padding: 5px 9px 6px; margin: 0 2px; border-radius: 8px; background: linear-gradient(180deg, #ffffff, #dfe7f5); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); vertical-align: middle; }
#keys { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 18px; background: rgba(11, 23, 48, .78); border: 2px solid var(--line); backdrop-filter: blur(6px); text-align: center; pointer-events: none !important; max-width: 92vw; }
#keys span { font-size: 15px; color: #c9d5ea; }
#keys span.kbig { font-size: 20px; color: #fff; font-weight: 600; }
#keys span.kbig b { color: var(--aqua); }
#keys span.kgold { color: var(--gold); }
#keys span.know { font-family: 'Lilita One'; font-size: 32px; color: var(--gold); animation: pulse .35s infinite; }
#hint { bottom: 120px; }
#fAct { text-align: center; font-family: 'Lilita One'; font-size: 30px; margin: 8px 0 2px; letter-spacing: .5px; }
#fAct.hold { color: #3ef27a; text-shadow: 0 3px 0 #0b3a1e; }
#fAct.go { color: #ff5a5a; text-shadow: 0 3px 0 #4a0b0b; animation: pulse .25s infinite; }
#fAct kbd { font-size: 16px; }
.baits button.goldb { color: var(--gold); }
.baits button.goldb.on { border-color: var(--gold); background: rgba(255, 210, 63, .18); }
@media (max-width: 900px) {
  #keys { bottom: 205px; padding: 8px 12px; }
  #keys span.kbig { font-size: 16px; } #keys span { font-size: 12px; }
  #keys span.know { font-size: 24px; }
}

#cross { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(11,23,48,.7); pointer-events: none !important; opacity: .85; }

/* ---------------- inventaire (barre du bas) ---------------- */
#inv { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 14px; padding: 8px 12px 10px; border-radius: 20px; background: rgba(11, 23, 48, .82); border: 2px solid var(--line); backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
#inv .grp label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--mute); margin: 0 0 4px 4px; }
#inv .slots { display: flex; gap: 6px; }
.slot { position: relative; width: 62px; height: 66px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 2px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; transition: transform .08s, border-color .1s; }
.slot:hover { transform: translateY(-3px); }
.slot svg { width: 32px; height: 32px; }
.slot kbd { position: absolute; top: 3px; left: 4px; font-size: 9px; padding: 2px 5px; box-shadow: 0 2px 0 var(--ink); }
.slot b { position: absolute; top: 3px; right: 6px; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.slot em { font-style: normal; font-size: 10.5px; font-weight: 600; color: #c9d5ea; margin-top: 2px; }
.slot.on { border-color: var(--aqua); background: linear-gradient(180deg, rgba(95,224,208,.3), rgba(95,224,208,.08)); box-shadow: 0 0 0 2px rgba(95,224,208,.25); }
.slot.gold.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(255,210,63,.35), rgba(255,210,63,.08)); }
.slot.empty { opacity: .45; }
.slot.locked { opacity: .5; filter: grayscale(.8); }
.slot .lock { position: absolute; top: 18px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; background: rgba(11,23,48,.7); padding: 1px 6px; border-radius: 8px; }
/* consignes : une ligne discrète au-dessus de l'inventaire, sans cadre */
#keys { top: auto; bottom: 126px !important; display: block; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 13px; color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.5); white-space: nowrap; }
#keys b { color: var(--aqua); }
#keys kbd { font-size: 10px; padding: 2px 6px 3px; border-width: 1.5px; box-shadow: 0 2px 0 var(--ink); opacity: .92; }
#keys .kgold { color: var(--gold); }
#hint { bottom: 200px; }
#fight { bottom: 128px; }
#charge { bottom: 122px; }
.dexrow { cursor: pointer; gap: 6px; font-size: 14px; color: #c9d5ea; }
.dexrow b { font-size: 18px; color: #fff; }
.nextrod { position: relative; font-size: 11.5px; color: var(--mute); margin-top: 4px; padding-bottom: 6px; }
.nextrod b { color: #fff; }
.nextrod i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--aqua); }
.miles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mile { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--mute); }
.mile.ok { background: rgba(62,242,122,.18); color: #3ef27a; }
.newrod { margin: 8px 0; padding: 6px 10px; border-radius: 10px; background: rgba(95,224,208,.15); color: var(--aqua); font-size: 14px; }
#rb { bottom: 14px; flex-direction: column; gap: 5px; }
#rb button { width: 50px; height: 50px; }
#rb button em { font-size: 10px; }
@media (max-height: 640px) and (min-width: 901px) { #minimap { width: 120px; height: 120px; } }
#chat { bottom: 14px; width: clamp(200px, calc(50vw - 315px), 360px); }
@media (max-width: 900px) {
  #inv { bottom: 6px; gap: 8px; padding: 6px 8px 8px; max-width: 98vw; }
  .slot { width: 40px; height: 48px; padding-top: 4px; border-radius: 10px; }
  .slot svg { width: 22px; height: 22px; }
  .slot em, .slot kbd { display: none; }
  #inv .grp label { font-size: 8px; }
  #rb { bottom: 84px; flex-direction: row; }
  #rb button { width: 48px; height: 48px; }
  #tc { bottom: 186px; }
  #keys { white-space: normal; max-width: 80vw; text-align: center; }
  #chat { bottom: 230px; width: 56vw !important; }
  #keys { bottom: 140px !important; }
  #tAct { bottom: 140px; } #stick { bottom: 150px; }
  #fight { bottom: 260px; }
}

.slot.cur { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------- écran d'arrivée : perso au centre ---------------- */
#title { background: linear-gradient(90deg, rgba(8,18,40,.86) 0%, rgba(8,18,40,.55) 22%, rgba(8,18,40,0) 38%, rgba(8,18,40,0) 62%, rgba(8,18,40,.55) 78%, rgba(8,18,40,.86) 100%) !important; }
.tgrid { grid-template-columns: minmax(300px, 400px) 1fr minmax(290px, 340px) !important; gap: 20px !important; align-items: stretch !important; padding: 3vh 3vw !important; }
.tleft { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.tleft .logo { font-size: clamp(64px, 8vw, 118px); }
.tleft .pitch { margin: 0; font-size: 16px; }
.tcenter { position: relative; cursor: grab; min-height: 60vh; }
.tcenter:active { cursor: grabbing; }
.stagehint { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #fff; background: rgba(11,23,48,.55); padding: 6px 14px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
.tright { display: flex; flex-direction: column; justify-content: center; }
.custom h3 { margin: 0 0 2px; font-size: 24px; }
.custom label { margin-top: 4px; }
.custom .sw button { width: 30px; height: 30px; }
.seg.hats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg.hats button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 11px; }
.seg.hats button span { font-size: 22px; line-height: 1; }
.dice { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.08); border: 2px solid var(--line); font-weight: 600; font-size: 14px; }
.dice:hover { border-color: var(--aqua); }
details.how { padding: 10px 16px; }
details.how summary { cursor: pointer; font-family: 'Lilita One'; font-size: 17px; list-style: none; }
details.how summary::after { content: ' ▾'; color: var(--aqua); }
details.how[open] summary::after { content: ' ▴'; }
.live { padding: 12px 16px !important; }
.poolbig b { font-size: 38px !important; }
@media (max-width: 900px) {
  .tgrid { grid-template-columns: 1fr !important; padding: 14px !important; }
  .tleft { display: contents; }
  .tleft .logo, .tleft .tag, .tleft .pitch { order: 0; }
  .tcenter { order: 1; min-height: 48vh; }
  .tright { order: 2; }
  .tleft .live, .tleft details, .tleft .ca, .tleft .links { order: 3; }
  .tleft .tag { margin: -6px 0 0; } .tleft .pitch { font-size: 14px; }
  #title { background: linear-gradient(180deg, rgba(8,18,40,.7) 0%, rgba(8,18,40,0) 22%, rgba(8,18,40,0) 55%, rgba(8,18,40,.85) 75%) !important; }
}

/* ---------------- carte cible ---------------- */
#target { position: absolute; top: 98px; left: 50%; transform: translateX(-50%); width: 150px; padding: 8px 10px 10px; text-align: center; border-radius: 16px; background: linear-gradient(180deg, rgba(70,45,0,.9), rgba(30,18,0,.9)); border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(255,210,63,.35); pointer-events: none !important; animation: drop .35s; }
#target small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); }
#target img { display: block; width: 92px; margin: 5px auto 6px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
#target b { display: block; font-size: 13px; line-height: 1.15; color: #fff; }
#target em { display: block; font-style: normal; font-size: 11px; color: #ffe9b0; margin-top: 2px; }
#target i { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 5px; }
#target.hot { animation: pulse .6s infinite; border-color: #fff; }
#target.hot i { color: #fff; font-size: 14px; }
@media (max-width: 900px) { #target { top: auto; bottom: 300px; left: auto; right: 8px; transform: none; width: 118px; } #target img { width: 70px; } }

#tJump { position: absolute; right: 132px; bottom: 150px; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); border: 2px solid var(--line); color: #fff; font-size: 30px; pointer-events: auto; touch-action: none; }

/* ---------------- adresse de réception ---------------- */
.claim { margin-top: 12px; display: grid; gap: 8px; text-align: left; }
.claim label, .wl { font-size: 13px; font-weight: 600; color: #ffe9b0; }
.claim input, .wrow input { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 12px; border: 2px solid rgba(255,210,63,.5); background: rgba(0,0,0,.3); color: #fff; outline: none; font-family: ui-monospace, monospace; }
.claim input:focus, .wrow input:focus { border-color: var(--gold); }
.claim .cbtns { display: flex; gap: 8px; } .claim .cbtns .btn { flex: 1; }
.claim small { color: #c9d5ea; font-size: 11.5px; }
#catch.goldwin { cursor: default; }
.wrow { display: flex; gap: 8px; } .wrow input { border-color: var(--line); }
.warnbox { padding: 10px 14px; border-radius: 12px; background: rgba(255,90,90,.15); border: 2px solid #ff5a5a; color: #ffb3b3; font-weight: 600; }
.lic.need { background: #ff5a5a; color: #fff; animation: pulse 1s infinite; }
