/* ── v5: equipment picker in the character window ── */
#win-char { overflow: visible; }
#paper .pslot { position: relative; cursor: pointer; transition: transform .12s; }
#paper .pslot:hover { transform: translateY(-2px); }
#paper .pslot:hover .cell { box-shadow: inset 0 0 0 1.5px var(--rc, #8a7a50), 0 0 0 1px #000, 0 0 14px rgba(240,205,120,.35); }
#paper .pslot.on .cell { outline: 2px solid #ffe08a; outline-offset: 2px; box-shadow: inset 0 0 0 1.5px var(--rc, #8a7a50), 0 0 18px rgba(255,224,138,.55); }
#paper .pslot.hasup .cell { animation: slotpulse 1.6s ease-in-out infinite; }
@keyframes slotpulse { 50% { box-shadow: inset 0 0 0 1.5px #7dff9a, 0 0 0 1px #000, 0 0 16px rgba(125,255,154,.55); } }
#paper .slotup { position: absolute; top: -6px; right: 6px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 900 11px var(--num); font-style: normal; color: #062; background: radial-gradient(circle, #b8ffc6, #36d860); box-shadow: 0 0 10px #4dff7a, 0 0 0 1.5px #031; }
#paper .slotn { position: absolute; top: -5px; right: 8px; z-index: 2; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font: 800 11px var(--num); font-style: normal; color: #f6efe0; background: #2a2f44; box-shadow: 0 0 0 1px #000; }
#paper .eqbar { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; z-index: 1; }
#paper .eqbar .btn { min-width: 170px; } #paper .eqbar .btn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-inline-start: 6px; border-radius: 11px; background: #1a5a2a; color: #b8ffc6; font: 800 13px var(--num); }
#paper .eqbar .btn.dis { opacity: .55; pointer-events: none; }

.eqpick { position: absolute; z-index: 30; width: 330px; max-height: 420px; display: grid; grid-template-rows: auto auto 1fr auto; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #1c2133f2, #0e111cf5); box-shadow: 0 18px 48px #000c, 0 0 0 1px #6a5530, inset 0 1px 0 #ffffff14; animation: eqin .14s ease-out; direction: rtl; }
@keyframes eqin { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.eqpick header { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 8px; background: linear-gradient(90deg, rgba(240,205,120,.16), transparent); border-bottom: 1px solid #ffffff12; }
.eqpick header b { font: 700 18px var(--head); color: var(--gold); } .eqpick header small { color: var(--dim); font-size: 12px; flex: 1; }
.eqpick .eqx { background: none; border: 0; color: #b9b0a0; font-size: 16px; cursor: pointer; padding: 0 2px; } .eqpick .eqx:hover { color: #fff; }
.eqpick .eqcur { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(0,0,0,.25); border-bottom: 1px solid #ffffff10; }
.eqpick .eqcur > div:nth-child(2) { flex: 1; display: grid; } .eqpick .eqcur small { color: var(--dim); font-size: 12px; }
.eqpick .eqcur.none { color: var(--dim); } .eqpick .eqcur .cell { width: 44px; height: 44px; } .eqpick .eqcur .cell img { width: 38px; }
.eqpick .btn.sm { padding: 4px 10px; font-size: 13px; }
.eqpick .eqlist { overflow-y: auto; padding: 6px; display: grid; gap: 5px; align-content: start; scrollbar-width: thin; }
.eqrow { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; cursor: pointer; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px #ffffff0c; transition: background .1s, transform .1s; }
.eqrow:hover { background: rgba(240,205,120,.1); transform: translateX(-2px); }
.eqrow .cell { width: 46px; height: 46px; } .eqrow .cell img { width: 40px; }
.eqrow .eqinfo { display: grid; gap: 2px; min-width: 0; } .eqrow .eqinfo b { font: 700 14px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqrow .eqd { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 12px; } .eqrow .eqd i { font-style: normal; color: var(--dim); }
.eqrow .eqd i.up { color: #7dff9a; } .eqrow .eqd i.dn { color: #ff7a6a; } .eqrow .eqd em { font-style: normal; font-size: 12px; }
.eqrow .pw { font: 800 15px var(--num); direction: ltr; color: var(--dim); } .eqrow .pw.up { color: #7dff9a; text-shadow: 0 0 8px #3dff7a66; } .eqrow .pw.dn { color: #ff7a6a; }
.eqrow.best { background: linear-gradient(90deg, rgba(125,255,154,.06), rgba(125,255,154,.16)); box-shadow: inset 0 0 0 1.5px #4dd870, 0 0 14px rgba(77,216,112,.18); }
.eqrow .besttag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 8px; font: 800 11px var(--head); color: #052; background: linear-gradient(180deg, #c8ffd2, #4ee07a); vertical-align: 2px; }
.eqrow.locked { opacity: .5; } .eqrow.locked:hover { transform: none; }
.eqpick footer { padding: 7px 12px; font-size: 12px; color: var(--dim); border-top: 1px solid #ffffff10; text-align: center; }
.warnc { color: #ffc24a; }

/* ── v5: sailing between the fort and Ember Isle ── */
#sailFade { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: grid; place-items: center; opacity: 0; background: radial-gradient(ellipse at 50% 60%, #0e2a3ad9, #02080ef2); }
#sailFade.go { animation: sailf 2.6s ease-out forwards; }
#sailFade > div { display: grid; justify-items: center; gap: 6px; transform: translateY(8px); animation: sailt 2.6s ease-out forwards; }
#sailFade b { font-size: 54px; filter: drop-shadow(0 0 18px #6ad0ff); }
#sailFade span { font: 700 34px var(--head); color: #fff4d8; text-shadow: 0 2px 12px #000; }
#sailFade small { font-size: 16px; color: #9ad8ff; }
@keyframes sailf { 0% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sailt { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
#dlgAct .btn.dis { opacity: .5; pointer-events: none; }
#banner.fail b { background: linear-gradient(180deg, #ffe0d8, #ff6a4a 55%, #8a1a0a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 #2a0604) drop-shadow(0 0 22px rgba(255,80,60,.5)); }
#tip .evo { font-size: 12px; color: #9a92a8; margin-top: 2px; } #tip .evo.on { color: #ffd86a; }

/* ── v6: charge attacks (tap a letter / trace a rune) ── */
#charge { --glow: 0; position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, transparent 30%, rgba(10,6,24,calc(.25 + var(--glow) * .45)) 75%); animation: chin .25s ease-out; }
#charge.rune { pointer-events: auto; }
#charge.out { animation: chout .45s ease-in forwards; } #charge.cancel { animation: chout .3s forwards; }
@keyframes chin { from { opacity: 0; } } @keyframes chout { to { opacity: 0; transform: scale(1.12); } }
#charge .ctitle { font: 800 30px var(--head); color: #fff4d8; text-shadow: 0 0 18px rgba(255,200,90,calc(.4 + var(--glow) * .6)), 0 2px 4px #000; }
#charge .ckey { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 26px;
  background: radial-gradient(circle, #3a2a10, #120c06); box-shadow: 0 0 0 3px #f0cd78, 0 0 calc(20px + var(--glow) * 60px) rgba(255,190,80,calc(.4 + var(--glow) * .6)), inset 0 -6px 0 #0008; }
#charge .ckey b { font: 900 72px var(--num); color: #fff; text-shadow: 0 0 20px #ffc860; }
#charge .ckey.hit { animation: kpop .12s ease-out; } @keyframes kpop { 50% { transform: scale(.88); box-shadow: 0 0 0 3px #fff, 0 0 80px #ffd27a; } }
#charge .ckey i { position: absolute; inset: -14px; border-radius: 34px; border: 2px dashed rgba(255,220,140,.5); animation: kspin 2s linear infinite; } @keyframes kspin { to { transform: rotate(360deg); } }
#charge .chint { font: 700 17px var(--head); color: #f4e8cc; text-shadow: 0 2px 4px #000; } #charge .chint b { color: #ffd86a; font-family: var(--num); }
#charge .cbar { position: relative; width: 420px; height: 22px; border-radius: 11px; background: #0d0a14d0; box-shadow: 0 0 0 2px #6a5530, inset 0 2px 6px #000; overflow: hidden; }
#charge .cbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff8a2a, #ffd86a, #fff6d0); box-shadow: 0 0 18px #ffc860; transition: width .08s; }
#charge .cbar span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px var(--num); color: #1a0c02; mix-blend-mode: screen; color: #fff; text-shadow: 0 1px 2px #000; }
#charge .ctime { width: 420px; height: 5px; border-radius: 3px; background: #0006; overflow: hidden; } #charge .ctime i { display: block; height: 100%; width: 100%; background: #9ad8ff; }
#charge canvas { width: min(56vmin, 520px); height: min(56vmin, 520px); border-radius: 50%; cursor: crosshair; touch-action: none;
  background: radial-gradient(circle, rgba(40,26,70,.55), rgba(8,6,18,.8) 70%); box-shadow: 0 0 0 2px rgba(240,205,120,.6), 0 0 calc(30px + var(--glow) * 70px) rgba(140,120,255,calc(.3 + var(--glow) * .6)); }
#srvInfo { pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#srvInfo .aiwhy { cursor: help; }
