.b-scr.on { animation: bEnter .25s cubic-bezier(.3,1.5,.5,1); }
@keyframes bEnter { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.b-scr { background: radial-gradient(ellipse at 50% 0%, #2d5fa8 0%, #16275e 55%, #0b1230 100%); }
.b-scr::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% -10%, rgba(255,255,255,.05) 0 6deg, transparent 6deg 14deg); pointer-events: none; }
.b-body { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; }
.b-scroll { overflow: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.b-scroll::-webkit-scrollbar { display: none; }
.b-pn { border-width: 18px; border-image-width: 18px; }
.b-tabs { display: flex; gap: 8px; align-items: center; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 4px 6px; }
.b-tabs::-webkit-scrollbar { display: none; }
.b-tab { flex: none; min-height: 52px !important; font-size: 20px !important; padding: 0 12px !important; opacity: .8; }
.b-tab.active { opacity: 1; filter: sepia(.6) saturate(2.2) hue-rotate(-12deg) brightness(1.1); }
.b-count { flex: none; font-size: 20px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.b-cost { display: inline-flex; align-items: center; gap: 3px; font-size: 18px; font-weight: 900; }
.b-cost.lack { color: #ff8a8a; }
.ico { vertical-align: middle; flex: none; }
.b-rar { display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 17px; font-weight: 900; color: #fff; background: var(--rc); border: 2px solid #fff6d8; box-shadow: 0 0 8px rgba(255,230,160,.7); text-shadow: -1px -1px 0 #1a1440, 1px -1px 0 #1a1440, -1px 1px 0 #1a1440, 1px 1px 0 #1a1440, 0 2px 0 #1a1440; }
.r-R { --rc: #cfd6e4; } .r-SR { --rc: #b57cff; } .r-SSR { --rc: #ffd25a; }

/* codex */
.b-cgrid { display: grid; grid-template-columns: repeat(5, 152px); grid-auto-rows: 190px; gap: 8px; justify-content: center; padding: 6px 4px; }
.b-card { position: relative; width: 152px; height: 190px; border-radius: 12px; overflow: hidden; border: 4px solid var(--rc); box-sizing: border-box; background: #0b1230; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,.5); transition: transform .12s, filter .12s; }
.r-SSR.b-card { box-shadow: 0 0 14px rgba(255,210,90,.6); }
.b-card:hover, .b-card.focus { transform: scale(1.05); filter: brightness(1.15) drop-shadow(0 0 8px #ffe9a8); z-index: 2; }
.b-card:active { transform: scale(.95); }
.b-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.b-card.locked .b-card-img { filter: brightness(.15); }
.b-card-ft { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 4px 4px; text-align: center; background: linear-gradient(transparent, rgba(8,10,40,.92) 45%); }
.b-card-nm { font-size: 19px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-card-st { font-size: 17px; color: var(--gold); line-height: 1.1; }
.b-card-un { font-size: 17px; line-height: 1.15; color: #cfe6ff; }
.b-card-ic { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; gap: 2px; }

/* detail */
.b-dl { position: absolute; left: 16px; top: 4px; width: 350px; height: 464px; }
.b-dport { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; border: 4px solid var(--rc); background: #0b1230; box-shadow: 0 0 18px var(--ec); }
.b-dport > img.pimg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.b-dport.locked > img.pimg { filter: brightness(.2); }
.b-dport.f2 > img.pimg { filter: hue-rotate(22deg) brightness(1.1) saturate(1.2) drop-shadow(0 0 12px #ffd25a); }
.b-dport.f2 { box-shadow: 0 0 30px 6px #ffd25a, inset 0 0 40px rgba(255,210,90,.5); }
.b-aura { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(255,230,140,.4), transparent 65%); mix-blend-mode: screen; animation: bPulse 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes bPulse { 50% { opacity: .45; } }
.b-spark { position: absolute; width: 10px; height: 10px; background: #fff6c0; border-radius: 50%; box-shadow: 0 0 10px 3px #ffd25a; animation: bSpark 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes bSpark { 0%, 100% { transform: translateY(0) scale(0); opacity: 0; } 40% { transform: translateY(-20px) scale(1); opacity: 1; } 80% { transform: translateY(-50px) scale(.2); opacity: 0; } }
.b-arrow { position: absolute; top: 200px; width: 62px !important; height: 62px; min-width: 62px !important; padding: 0 !important; z-index: 3; opacity: .92; font-size: 22px !important; }
.b-lock { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-size: 22px; font-weight: 900; padding: 0 12px; }
.b-dr { position: absolute; left: 380px; right: 12px; top: 0; bottom: 6px; display: flex; flex-direction: column; gap: 6px; }
.b-dinfo { flex: 1; min-height: 0; padding: 4px 6px 4px 2px; }
.b-nm { font-family: var(--title-font); font-weight: 900; font-size: 32px; color: var(--gold); line-height: 1.1; }
.b-sub { font-size: 20px; color: #cfe6ff; }
.b-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; font-size: 18px; font-weight: 700; }
.b-badges > span { display: inline-flex; align-items: center; gap: 4px; background: rgba(10,16,52,.6); border-radius: 12px; padding: 2px 8px; }
.b-lvrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 21px; font-weight: 900; }
.b-stars { color: var(--gold); letter-spacing: 1px; font-size: 24px; }
.b-stars .off { color: #4a5584; }
.b-pip { display: inline-block; width: 16px; height: 16px; margin-right: 4px; transform: rotate(45deg); border: 2px solid #8fd8ff; background: transparent; }
.b-pip.on { background: #8fd8ff; box-shadow: 0 0 8px #8fd8ff; }
.b-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.b-stat { background: rgba(10,16,52,.6); border-radius: 10px; padding: 4px 10px; font-size: 17px; color: #bcd6ff; }
.b-stat b { display: block; font-size: 22px; color: #fff; }
.b-flash b { animation: bFlash .9s; }
@keyframes bFlash { 0% { color: #fff; transform: scale(1.5); text-shadow: 0 0 14px #ffe36b; } 100% { transform: none; } }
.b-sk { background: rgba(10,16,52,.55); border-left: 4px solid var(--gold); border-radius: 8px; padding: 5px 10px; margin-bottom: 6px; font-size: 18px; line-height: 1.35; }
.b-sk b { color: var(--gold); font-size: 19px; }
.b-sk em { font-style: normal; color: #8fd8ff; font-size: 17px; margin-left: 6px; }
.b-sec { font-size: 20px; font-weight: 900; color: var(--gold); margin: 8px 0 4px; }
.b-bl { font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.b-quote { font-style: italic; font-size: 19px; color: #e6f2ff; margin: 8px 0 4px; line-height: 1.4; }
.b-acts { flex: none; display: flex; gap: 6px; height: 92px; }
.b-act { flex: 1; min-width: 0 !important; min-height: 0 !important; height: 92px; padding: 0 !important; border-width: 12px 12px; border-image-width: 12px 12px; flex-direction: column; gap: 0; font-size: 19px !important; line-height: 1.1; }
.b-act .b-cost { font-size: 17px; line-height: 18px; }
.b-act .ico { width: 18px !important; height: 18px !important; }
.b-act.dim { filter: brightness(.75) saturate(.7); }
.b-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.b-burst i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 12px 4px #ffd25a; animation: bBurst .9s ease-out forwards; }
@keyframes bBurst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* recruit */
.b-rcl { position: absolute; left: 12px; top: 4px; bottom: 10px; display: flex; flex-direction: column; }
.b-rcr { position: absolute; right: 12px; top: 4px; bottom: 10px; width: 300px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.b-rcl .b-scroll { flex: 1; min-height: 0; }
.b-rrow { display: flex; align-items: center; gap: 10px; background: rgba(10,16,52,.6); border: 3px solid var(--rc); border-radius: 12px; padding: 4px 8px 4px 4px; margin-bottom: 6px; min-height: 68px; box-sizing: border-box; cursor: pointer; }
.b-rrow.focus { filter: brightness(1.2); }
.b-rrow .th { flex: none; width: 60px; height: 60px; border-radius: 10px; object-fit: cover; object-position: top; }
.b-rrow.locked .th { filter: brightness(.25); }
.b-rrow .nm { flex: 1; min-width: 0; font-size: 20px; font-weight: 900; line-height: 1.2; }
.b-rrow .nm small { display: block; font-size: 17px; font-weight: 700; color: #bcd6ff; }
.b-rrow .btn { flex: none; min-width: 96px; min-height: 56px; font-size: 20px; }
.b-oimg { width: 130px; height: 130px; object-fit: contain; animation: bFloat 3s ease-in-out infinite; filter: drop-shadow(0 0 14px #ffd25a); }
@keyframes bFloat { 50% { transform: translateY(-8px); } }
.b-odesc { font-size: 18px; line-height: 1.35; }
.b-got { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; padding: 16px; }
.b-got > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 18px; font-weight: 900; min-width: 90px; animation: popIn .35s cubic-bezier(.3,1.6,.5,1) backwards; }
.b-lightb { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px; background: repeating-conic-gradient(rgba(255,230,140,.35) 0 8deg, transparent 8deg 24deg); border-radius: 50%; animation: bSpin 8s linear infinite; pointer-events: none; -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
@keyframes bSpin { to { transform: rotate(360deg); } }

/* team */
.b-tl { position: absolute; left: 12px; top: 2px; width: 650px; bottom: 6px; display: flex; flex-direction: column; gap: 4px; }
.b-slots { flex: none; display: flex; gap: 6px; height: 140px; }
.b-slot { position: relative; flex: 1; border-radius: 14px; background: radial-gradient(ellipse at 50% 90%, rgba(255,255,255,.35), rgba(10,16,52,.7) 60%); border: 3px solid var(--ec, #5a6aa8); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer; overflow: hidden; box-sizing: border-box; }
.b-slot.empty { border-style: dashed; justify-content: center; font-size: 17px; color: #9fb0e0; }
.b-slot.focus { filter: brightness(1.25); }
.b-slot img.sd { width: 84px; height: 84px; object-fit: contain; position: absolute; top: 4px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.5)); }
.b-slot .ped { position: absolute; bottom: 30px; width: 80px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, #fff, var(--ec) 50%, transparent 75%); opacity: .8; }
.b-slot .inf { position: relative; font-size: 17px; font-weight: 900; padding-bottom: 3px; line-height: 1.1; text-align: center; }
.b-tgrid { display: grid; grid-template-columns: repeat(5, 120px); grid-auto-rows: 128px; gap: 6px; justify-content: center; padding: 2px; }
.b-tc { position: relative; border-radius: 10px; border: 3px solid var(--rc); background: rgba(10,16,52,.65); text-align: center; cursor: pointer; overflow: hidden; box-sizing: border-box; font-size: 17px; line-height: 1.15; }
.b-tc.in { border-color: #fff; box-shadow: 0 0 12px 2px var(--gold); }
.b-tc.focus { filter: brightness(1.25); }
.b-tc img.sd { width: 64px; height: 64px; object-fit: contain; display: block; margin: 2px auto 0; }
.b-tc .nm { font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.b-tc .ck { position: absolute; right: 3px; top: 1px; color: var(--gold); font-size: 20px; font-weight: 900; }
.b-tc .ic { position: absolute; left: 2px; top: 2px; display: flex; flex-direction: column; }
.b-tr { position: absolute; left: 676px; right: 10px; top: 2px; bottom: 6px; display: flex; flex-direction: column; gap: 6px; padding: 6px 4px; }
.b-pow { font-size: 22px; font-weight: 900; color: var(--gold); text-align: center; }
.b-tr .b-scroll { flex: 1; min-height: 0; }
.b-bi { background: rgba(10,16,52,.6); border-radius: 8px; padding: 4px 8px; margin-bottom: 5px; font-size: 18px; line-height: 1.25; border-left: 6px solid var(--pc, var(--gold)); }
.b-bi b { display: block; }

/* bonds */
.b-bcol { position: absolute; top: 2px; bottom: 8px; display: flex; flex-direction: column; }
.b-bcol .b-scroll { flex: 1; min-height: 0; padding: 2px 4px; }
.b-brow { background: rgba(10,16,52,.6); border: 3px solid rgba(255,255,255,.18); border-left: 8px solid var(--pc, var(--gold)); border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; font-size: 18px; line-height: 1.35; }
.b-brow.act { border-color: var(--gold); border-left-color: var(--pc, var(--gold)); background: rgba(70,60,10,.5); box-shadow: 0 0 14px rgba(255,215,122,.5); }
.b-brow h3 { margin: 0; font-size: 21px; color: var(--gold); font-family: var(--title-font); }
.b-brow .tier { opacity: .65; } .b-brow .tier.on { opacity: 1; color: #fff3b0; font-weight: 900; }
.b-mems { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.b-mem { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 3px solid #5a6aa8; cursor: pointer; box-sizing: border-box; flex: none; }
.b-mem img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.b-mem.no img { filter: brightness(.22); }
.b-mem.team { border-color: var(--gold); box-shadow: 0 0 10px 2px var(--gold); }
.b-mem.focus { filter: brightness(1.3); transform: scale(1.1); }

/* bag */
.b-bag { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 12px; }
.b-bagrow { display: flex; align-items: center; gap: 12px; background: rgba(10,16,52,.65); border: 3px solid rgba(255,215,122,.5); border-radius: 14px; padding: 8px 12px; min-height: 92px; box-sizing: border-box; }
.b-bagrow .nm { flex: 1; min-width: 0; font-size: 21px; font-weight: 900; line-height: 1.2; }
.b-bagrow .nm small { display: block; font-size: 17px; font-weight: 700; color: #bcd6ff; margin-top: 2px; }
.b-bagrow .n { font-size: 28px; font-weight: 900; color: var(--gold); }

/* reveal */
.b-reveal { position: absolute; inset: 0; background: radial-gradient(ellipse at 35% 50%, rgba(10,16,52,.7), rgba(2,4,20,.94)); overflow: hidden; animation: bFade .3s; cursor: pointer; }
@keyframes bFade { from { opacity: 0; } }
.b-rv-burst { position: absolute; left: 30%; top: 50%; width: 900px; height: 900px; margin: -450px; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--ec) 18%, transparent 62%); animation: bRvBurst .9s ease-out; opacity: .55; }
@keyframes bRvBurst { from { transform: scale(0); opacity: 1; } }
.b-rv-rays { position: absolute; left: 30%; top: 50%; width: 1400px; height: 1400px; margin: -700px; background: repeating-conic-gradient(var(--ec) 0 7deg, transparent 7deg 22deg); opacity: .3; animation: bSpin 24s linear infinite; -webkit-mask-image: radial-gradient(circle, #000 5%, transparent 55%); mask-image: radial-gradient(circle, #000 5%, transparent 55%); }
.b-rv-img { position: absolute; left: 30%; bottom: 20px; height: 500px; width: 333px; margin-left: -166px; object-fit: cover; object-position: top; border-radius: 18px; border: 4px solid var(--rc); box-shadow: 0 0 40px 8px var(--ec); animation: bRise .9s cubic-bezier(.2,1.2,.4,1) .15s backwards; }
@keyframes bRise { from { transform: translateY(160px) scale(.8); opacity: 0; } }
.b-rv-tx { position: absolute; left: 52%; right: 24px; top: 80px; }
.b-rv-new { font-size: 24px; color: #8fd8ff; font-weight: 900; animation: bFade .5s .5s backwards; }
.b-rv-st { font-size: 46px; color: var(--gold); letter-spacing: 6px; height: 56px; }
.b-rv-st span { display: inline-block; animation: bStamp .4s cubic-bezier(.3,1.8,.5,1) backwards; }
@keyframes bStamp { from { transform: scale(3) rotate(-30deg); opacity: 0; } }
.b-rv-nm { font-family: var(--title-font); font-weight: 900; font-size: 54px; color: var(--gold); line-height: 1.1; animation: bPop .45s cubic-bezier(.3,1.6,.5,1) .9s backwards; }
@keyframes bPop { from { transform: scale(.5); opacity: 0; } }
.b-rv-ti { font-size: 24px; color: #fff; margin: 4px 0 10px; animation: bFade .5s 1.1s backwards; }
.b-rv-q { font-size: 21px; font-style: italic; color: #e6f2ff; line-height: 1.45; animation: bFade .6s 1.4s backwards; }
.b-rv-tap { position: absolute; left: 52%; right: 24px; bottom: 26px; font-size: 22px; font-weight: 900; color: #fff; animation: bPulse 1.4s 1.8s infinite backwards; }
