/* =====================================================================
   REEL — thème v2 : UI dessinée (icônes Arena dans /ui), panneaux cartoon
   à contour épais, relief en bas, reflet en haut. Chargé après style.css.
   ===================================================================== */
:root { --edge: #06102a; --panel: linear-gradient(180deg, #1c3a78 0%, #132a5a 55%, #0f2149 100%); }
.ico { width: 1.35em; height: 1.35em; object-fit: contain; vertical-align: -.32em; margin-right: .3em; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.ico.h { width: 1.25em; height: 1.25em; vertical-align: -.22em; margin-right: .35em; }
.ico.xl { width: 64px; height: 64px; margin: 0; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* panneaux */
.card, #inv, .pbox, #fight, .pill, #chatIn { border: 3px solid var(--edge) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.16), inset 0 -3px 0 rgba(0,0,0,.25), 0 5px 0 var(--edge), 0 12px 26px rgba(0,0,0,.35) !important; }
.card, #inv, #fight { background: var(--panel) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.pill { background: var(--panel) !important; padding: 5px 14px 5px 8px !important; }
.pill .ico { width: 26px; height: 26px; margin: -4px 2px -4px 0; }
#wxTxt { display: flex; align-items: center; color: #bfeee8 !important; }
#wxTxt .ico { width: 22px; height: 22px; }

/* haut gauche : profil */
#tl { padding: 10px 14px 12px !important; min-width: 220px; }
.me { font-family: 'Lilita One'; font-weight: 400; font-size: 19px; letter-spacing: .3px; text-shadow: 0 2px 0 var(--edge); }
.lic { display: inline-flex; align-items: center; gap: 2px; font-family: 'Fredoka'; font-size: 11px !important; padding: 3px 9px 3px 5px !important; border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); background: #24407e !important; color: #dbe6ff !important; text-shadow: none; }
.lic .ico { width: 17px; height: 17px; margin-right: 2px; vertical-align: middle; }
.lic.ok { background: linear-gradient(180deg, #ffe680, #ffb81f) !important; color: var(--ink) !important; }
.lic.need { background: linear-gradient(180deg, #ff7a7a, #e23e3e) !important; color: #fff !important; }
.dexrow { margin-top: 8px !important; padding: 5px 8px; border-radius: 12px; background: rgba(0,0,0,.22); }
.dexrow .ico { width: 28px; height: 28px; margin: -4px 2px -4px -2px; }
.dexrow span { flex: 1; font-weight: 600; }
.dexrow b { font-family: 'Lilita One'; font-weight: 400; font-size: 20px !important; }
.dexrow small { color: var(--mute); }
.nextrod { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; padding: 5px 8px !important; border-radius: 12px; background: rgba(255,210,63,.12); font-size: 13px !important; color: #ffe9b0 !important; }
.nextrod .ico { width: 28px; height: 28px; margin: -4px 0 -4px -2px; }
.nextrod span { flex: 1; font-weight: 600; }
.nextrod b { font-family: 'Lilita One'; font-weight: 400; font-size: 20px; color: var(--gold) !important; }
.nextrod b small { font-size: 13px; color: #c9b27a; }

/* haut droite : minicarte + coffre */
.mapwrap { padding: 5px !important; background: linear-gradient(180deg, #e7c98d, #b98a4a) !important; }
#minimap { border: 3px solid var(--edge); }
#mapN { top: -4px !important; background: #ff5a4a; border: 2px solid var(--edge); border-radius: 99px; padding: 0 6px; text-shadow: none !important; }
#goldBox { position: relative; padding: 10px 12px 12px 64px !important; width: 236px !important; background: linear-gradient(180deg, #4c3209, #2e1d04) !important; }
.vaultico { position: absolute; left: 2px; top: 50%; width: 62px; height: 62px; margin-top: -36px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); animation: floaty 3s ease-in-out infinite; }
.gtitle { font-size: 13px !important; letter-spacing: 1.5px; text-shadow: 0 2px 0 var(--edge); }
.gpool b { font-size: 26px !important; text-shadow: 0 2px 0 var(--edge); }
.gbar { border: 2px solid var(--edge); background: rgba(0,0,0,.35) !important; height: 12px !important; }
.gbar i { background: linear-gradient(180deg, #fff3a8, #ffd23f 45%, #ff9f1c) !important; }

/* boutons du bas droite */
#rb button { width: 58px !important; height: 58px !important; background: var(--panel) !important; border: 3px solid var(--edge) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 4px 0 var(--edge) !important; backdrop-filter: none !important; }
#rb button img { width: 38px; height: 38px; object-fit: contain; margin-top: -2px; filter: drop-shadow(0 2px 1px rgba(0,0,0,.4)); transition: transform .15s; }
#rb button:hover img { transform: scale(1.12) rotate(-6deg); }
#rb button em { font-size: 9.5px !important; color: #dbe6ff !important; margin-top: -3px; text-shadow: 0 1px 0 var(--edge); }
#rb button:hover { border-color: var(--edge) !important; }

/* inventaire */
#inv { padding: 8px 12px 10px !important; border-radius: 22px !important; }
#inv .grp label { color: #9fb8e6 !important; }
.slot { width: 70px !important; height: 74px !important; border-radius: 16px !important; background: linear-gradient(180deg, #2a4b8f, #1a3366) !important; border: 3px solid var(--edge) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.15), 0 3px 0 var(--edge); justify-content: center !important; padding-top: 0 !important; }
.slot img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.slot em { margin-top: -2px !important; font-size: 10px !important; color: #dbe6ff !important; }
.slot b { font-family: 'Lilita One'; font-weight: 400; font-size: 15px !important; top: 2px !important; right: 6px !important; text-shadow: 0 2px 0 var(--edge) !important; }
.slot.on { background: linear-gradient(180deg, #3fc9b9, #1f8f86) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 var(--edge), 0 0 18px rgba(95,224,208,.5) !important; }
.slot.gold.on { background: linear-gradient(180deg, #ffd860, #d98a00) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 var(--edge), 0 0 22px rgba(255,210,63,.6) !important; }
.slot.gold.on em { color: var(--ink) !important; }
.slot.cur { outline: 3px solid #fff !important; outline-offset: 2px; }

/* combat */
#fight { padding: 12px 16px 10px !important; border-radius: 22px !important; }
#fight.gold { background: linear-gradient(180deg, #5a3b06, #2e1d04) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.16), 0 5px 0 var(--edge), 0 0 40px rgba(255,210,63,.45) !important; }
.fhead { font-family: 'Lilita One'; font-weight: 400 !important; font-size: 18px; letter-spacing: .3px; text-shadow: 0 2px 0 var(--edge); }
.fbar { height: 20px !important; border: 2px solid var(--edge); background: rgba(0,0,0,.35) !important; }
.fbar.prog span img { width: 38px; height: 38px; object-fit: contain; display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
#fight.gold .fbar.prog span img { width: 46px; height: 46px; }

/* bannières (annonce Goldfin, gagnants) */
#banner { background: linear-gradient(180deg, #5c3c06, #2c1b02) !important; border: 4px solid var(--edge) !important; box-shadow: inset 0 0 0 3px var(--gold), 0 6px 0 var(--edge), 0 0 70px rgba(255,210,63,.5) !important; padding: 16px 30px 18px !important; overflow: visible; }
#banner h3 { font-family: 'Lilita One'; font-weight: 400; font-size: 36px !important; letter-spacing: .5px; color: #ffe066 !important; -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; text-shadow: 0 4px 0 var(--edge) !important; }
#banner .bico { width: 84px; height: 84px; object-fit: contain; display: block; margin: -58px auto 2px; border: 0 !important; box-shadow: none !important; filter: drop-shadow(0 6px 6px rgba(0,0,0,.5)); animation: floaty 2.4s ease-in-out infinite; }
#banner .bico.ring { animation: ring 1s ease-in-out infinite; }
#banner img:not(.bico) { border: 3px solid var(--edge); }
.toast { background: var(--panel) !important; border: 3px solid var(--edge) !important; box-shadow: 0 4px 0 var(--edge) !important; }

/* panneaux (Dex, Top, Goldfins, Rewards, Menu) */
.pbox { background: var(--panel) !important; border-radius: 28px !important; overflow: hidden; }
.phead { background: linear-gradient(180deg, #2d55a8, #1d3c7c); border-bottom: 3px solid var(--edge) !important; padding: 12px 18px !important; }
.phead h2 { display: flex; align-items: center; font-family: 'Lilita One'; font-weight: 400; font-size: 30px !important; letter-spacing: .5px; text-shadow: 0 3px 0 var(--edge); }
.phead h2 .ico { width: 46px; height: 46px; margin: -10px 8px -10px -4px; }
#pClose { width: 42px !important; height: 42px !important; border-radius: 14px !important; background: linear-gradient(180deg, #ff7a6a, #d9402f) !important; border: 3px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 var(--edge); color: #fff; font-weight: 700; }
.dc, .it, .ge, .note { border: 2px solid rgba(0,0,0,.35) !important; background: rgba(0,0,0,.18) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.dc { border-radius: 16px !important; }
.btn { border: 3px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 var(--edge); background: linear-gradient(180deg, #7ff0e2, #2fb8a8) !important; display: inline-flex; align-items: center; gap: 4px; justify-content: center; transition: transform .08s; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 1px 0 var(--edge); }
.btn.gold { background: linear-gradient(180deg, #ffe680, #ffb020) !important; }
.btn.ghost { background: linear-gradient(180deg, #3a5c9e, #24427c) !important; color: #fff; }
.btn .ico { width: 22px; height: 22px; margin: -4px 2px -4px -2px; }
.tabs button { border: 2px solid var(--edge) !important; box-shadow: 0 2px 0 var(--edge); background: #1d3a74 !important; }
.tabs button.on { background: #2f5cb4 !important; outline: 2px solid currentColor; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: 'Lilita One'; font-size: 15px; color: var(--ink); border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 2px 0 var(--edge); background: #8aa0c8; }
.medal.m0 { background: linear-gradient(180deg, #fff1a0, #ffc21f); } .medal.m1 { background: linear-gradient(180deg, #ffffff, #b9c6d8); } .medal.m2 { background: linear-gradient(180deg, #ffc690, #c97a3a); }
.warnbox { display: flex; align-items: center; gap: 4px; }
.warnbox .ico { width: 26px; height: 26px; animation: ring 1s infinite; }

/* carte de prise / gain d'un Goldfin */
#catch { border: 4px solid var(--edge) !important; box-shadow: inset 0 0 0 4px var(--rc, #cfd8e3), 0 6px 0 var(--edge), 0 20px 60px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--rc, #fff) 45%, transparent) !important; background: radial-gradient(ellipse at 50% 30%, #2a4f9a, #12275a 70%) !important; }
#catch h3 { font-family: 'Lilita One'; font-weight: 400; letter-spacing: .5px; text-shadow: 0 3px 0 var(--edge); }
#catch.goldwin { background: radial-gradient(ellipse at 50% 25%, #6b4708, #2c1b02 75%) !important; padding-top: 60px !important; }
#catch .gwfish { position: absolute; left: 50%; top: -64px; width: 120px; height: 120px; margin-left: -60px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.5)); animation: floaty 2s ease-in-out infinite; }
#catch.goldwin h3 { color: #ffe066; -webkit-text-stroke: 2px var(--edge); paint-order: stroke fill; }

/* chat */
#chatIn { background: var(--panel) !important; }

/* écran de chargement : l'illustration du lac */
#loading { background: #0b1730 url('/ui/keyart.jpg') center / cover no-repeat !important; }
#loading::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(8,18,40,.15), rgba(8,18,40,.75) 85%); }
#loading .ld { position: relative; }
.ldlogo { width: min(460px, 78vw); filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); animation: floaty 3s ease-in-out infinite; }
.ldbar { height: 18px !important; border: 3px solid var(--edge) !important; background: rgba(0,0,0,.45) !important; box-shadow: 0 4px 0 var(--edge); }
.ldbar i { background: linear-gradient(180deg, #fff3a8, #ffd23f 45%, #ff9f1c) !important; }
#ldTxt { color: #fff !important; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,.8); }

/* écran d'arrivée */
.logoimg { margin: 0 0 -6px -10px; line-height: 0; }
.logoimg img { width: min(400px, 100%); filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); animation: floaty 3.5s ease-in-out infinite; }
.tag { font-size: 20px !important; color: #bff6ee !important; text-shadow: 0 2px 0 var(--edge) !important; }
.poolbig { justify-content: flex-start !important; }
.poolbig .nextcard { margin-left: auto; }
.pvault { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.step { grid-template-columns: 44px 1fr !important; align-items: center; }
.step > img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.custom h3 { font-family: 'Lilita One'; font-weight: 400; letter-spacing: .4px; text-shadow: 0 2px 0 var(--edge); }
.custom input { border: 3px solid var(--edge) !important; background: rgba(0,0,0,.25) !important; }
.seg button, .dice { border: 2px solid var(--edge) !important; box-shadow: 0 2px 0 var(--edge); background: #1d3a74 !important; }
.seg button.on { background: linear-gradient(180deg, #7ff0e2, #2fb8a8) !important; }
.sw button { border: 3px solid var(--edge) !important; }
.sw button.on { box-shadow: 0 0 0 3px #fff !important; }
.big { font-family: 'Lilita One'; letter-spacing: 1px; border: 3px solid var(--edge); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 6px 0 var(--edge), 0 12px 30px rgba(255,180,30,.35) !important; text-shadow: 0 2px 0 rgba(255,255,255,.4); }
.big:active { box-shadow: inset 0 3px 0 rgba(255,255,255,.45), 0 2px 0 var(--edge) !important; }
.ca button { border: 2px solid var(--edge); box-shadow: 0 2px 0 var(--edge); }
#tAct img { width: 56px; height: 56px; object-fit: contain; }
#tAct { border: 3px solid var(--edge); box-shadow: 0 5px 0 var(--edge) !important; }
@media (max-width: 900px) {
  .slot { width: 48px !important; height: 52px !important; }
  .slot img { width: 32px; height: 32px; }
  #goldBox { width: 170px !important; padding: 8px 8px 8px 50px !important; }
  .vaultico { width: 46px; height: 46px; margin-top: -26px; }
  #rb button { width: 48px !important; height: 48px !important; }
  #rb button img { width: 32px; height: 32px; }
  .logoimg img { width: min(260px, 70vw); }
}

/* décors (ruban, panneau, éclaboussure…) */
#zoneTag { background: url('/ui/sign.png') center / 100% 100% no-repeat !important; border: 0 !important; box-shadow: none !important; padding: 9px 22px 11px 14px !important; color: #fff3d6; font-family: 'Lilita One'; font-weight: 400; letter-spacing: .4px; text-shadow: 0 2px 0 #3a2210; border-radius: 0 !important; }
#zoneTag .ico { width: 24px; height: 24px; }
.ribbon { display: inline-block; min-width: 300px; padding: 14px 54px 26px; margin: -8px 0 4px; background: url('/ui/ribbon.png') center / 100% 100% no-repeat; font-family: 'Lilita One'; font-size: 22px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 2px #7a4a00; paint-order: stroke fill; text-shadow: 0 2px 0 #7a4a00; }
#catch .fwrap { background: url('/ui/splash.png') center 70% / 80% auto no-repeat; }
#catch .new { background: url('/ui/sparkle.png') -6px -10px / 34px no-repeat, linear-gradient(180deg, #ff9be0, #e252b5) !important; padding-left: 28px !important; border: 3px solid var(--edge); }
.ico.rk1 { width: 34px; height: 34px; margin: 0; }
#chatForm { position: relative; }
.chatico { position: absolute; left: 8px; top: 50%; width: 26px; height: 26px; margin-top: -13px; pointer-events: none; }
#chatIn { padding-left: 40px !important; }
.poolbig .nextcard b { font-family: "Fredoka" !important; font-size: 13px !important; font-weight: 700; color: #fff !important; text-shadow: none !important; line-height: 1.2; }
.poolbig .nextcard { font-size: 11px; max-width: 170px; }
.poolbig > div > small { display: block; }
@keyframes pboxIn { from { transform: translateY(-40px) scale(.92); opacity: 0; } }
.pbox { animation: pboxIn .28s cubic-bezier(.2, 1.4, .4, 1) !important; }
@media (max-height: 800px) { #catch.goldwin img.card { width: 140px; } #catch.goldwin { padding-top: 48px !important; } #catch .gwfish { width: 96px; height: 96px; top: -50px; margin-left: -48px; } }
#catch .mtxt { margin: 4px 0 8px; font-size: 14px; color: #ffe9b0; line-height: 1.4; }
