/* menus.css — owner A8. Splash, title, charselect, settings, compendium, gallery, history, gameover, codex. Tokens from base.css. */

/* ============================================================ shared kit */
.mk-glyph { display: inline-flex; width: 1em; height: 1em; flex-shrink: 0; }
.mk-glyph svg { width: 100%; height: 100%; display: block; }
.mk-bg { position: absolute; inset: 0; overflow: hidden; --tint: #5a1a5e; background:
  radial-gradient(ellipse 90% 70% at 50% -10%, color-mix(in srgb, var(--tint) 55%, transparent) 0%, transparent 65%),
  radial-gradient(ellipse 70% 60% at 100% 110%, rgba(255, 45, 149, .16) 0%, transparent 70%),
  radial-gradient(ellipse 70% 60% at 0% 110%, rgba(138, 77, 255, .16) 0%, transparent 70%),
  linear-gradient(180deg, #0d0812 0%, #160c1d 55%, #0b0610 100%); }
.mk-bg::before { content: ''; position: absolute; inset: 0; opacity: .5; background:
  repeating-linear-gradient(45deg, rgba(232, 193, 112, .035) 0 1px, transparent 1px 46px),
  repeating-linear-gradient(-45deg, rgba(232, 193, 112, .035) 0 1px, transparent 1px 46px); }
.mk-bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 200, .9), rgba(255, 79, 139, 0) 70%); filter: blur(6px); animation: mkDrift 24s ease-in-out infinite alternate; pointer-events: none; }
@keyframes mkDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, -90px, 0) scale(1.35); } }
.mk-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .65) 100%); pointer-events: none; }

.mk-head { position: absolute; left: 0; right: 0; top: 0; height: 120px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; z-index: 5; }
.mk-head::after { content: ''; position: absolute; left: 56px; right: 56px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold) 50%, var(--gold-deep) 80%, transparent); opacity: .6; }
.mk-back, .mk-back-ph { width: 230px; }
.mk-back { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text-dim); font-family: var(--f-head); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 22px; border-radius: 40px; cursor: pointer; transition: all .2s var(--ease); width: auto; }
.mk-back .mk-glyph { font-size: 22px; }
.mk-back:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(232, 193, 112, .1); box-shadow: var(--glow-gold); transform: translateX(-3px); }
.mk-title-wrap { text-align: center; }
.mk-title { font-family: var(--f-display); font-weight: 900; font-size: 52px; letter-spacing: .1em; text-transform: uppercase; background: linear-gradient(180deg, #fff6d6 0%, #e8c170 55%, #a87a30 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(60, 20, 20, .7)) drop-shadow(0 0 16px rgba(255, 79, 139, .35)); line-height: 1.1; }
.mk-sub { font-family: var(--f-flavor); font-style: italic; color: var(--text-dim); font-size: 22px; margin-top: 2px; }
.mk-head-right { min-width: 230px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

.mk-divider { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 14px auto; width: 420px; max-width: 100%; }
.mk-divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold)); }
.mk-divider i:last-child { background: linear-gradient(270deg, transparent, var(--gold-deep), var(--gold)); }
.mk-divider svg { width: 46px; height: 18px; flex-shrink: 0; filter: drop-shadow(0 0 5px rgba(232, 193, 112, .7)); }

.mk-scroll { overflow-y: auto; overflow-x: hidden; }
.mk-scroll::-webkit-scrollbar { width: 12px; }
.mk-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); border-radius: 6px; }
.mk-scroll::-webkit-scrollbar-thumb { background: rgba(232, 193, 112, .35); border-radius: 6px; }
.mk-scroll::-webkit-scrollbar-thumb:hover { background: rgba(232, 193, 112, .6); }
.mk-tabs { display: flex; gap: 6px; justify-content: center; }
.mk-tab { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); background: transparent; border: none; border-bottom: 2px solid transparent; padding: 12px 30px; cursor: pointer; transition: all .2s var(--ease); position: relative; }
.mk-tab:hover { color: var(--gold-hi); }
.mk-tab.on { color: var(--gold-hi); border-bottom-color: var(--gold); text-shadow: 0 0 14px rgba(232, 193, 112, .55); }
.mk-tab.on::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 8px; background: radial-gradient(ellipse at 50% 100%, rgba(232, 193, 112, .55), transparent 70%); }
.mk-tab .cnt { font-family: var(--f-num); font-size: 15px; margin-left: 8px; color: var(--text-faint); letter-spacing: .04em; }
.kfocus { outline: none; box-shadow: 0 0 0 2px var(--gold), var(--glow-gold) !important; }

/* heroart */
.mk-heroart { position: relative; width: 100%; height: 100%; overflow: hidden; --hc: #9a8aa8; --hc2: #e0d6ee; background: radial-gradient(ellipse at 50% 28%, color-mix(in srgb, var(--hc) 60%, #000) 0%, #0a050e 80%); color: var(--hc2); }
.mk-heroimg { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mk-sigil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mk-sigil .ring { position: absolute; width: 78%; left: 11%; top: 8%; color: var(--hc2); animation: mkSpin 90s linear infinite; filter: drop-shadow(0 0 10px var(--hc)); }
@keyframes mkSpin { to { transform: rotate(360deg); } }
.mk-sigil .bust { position: absolute; bottom: 0; left: 8%; width: 84%; height: 66%; color: color-mix(in srgb, var(--hc) 70%, #000); filter: drop-shadow(0 -6px 22px color-mix(in srgb, var(--hc) 70%, transparent)); }
.mk-sigil > .mk-glyph { position: absolute; left: 50%; top: 31%; transform: translate(-50%, -50%); width: 26%; height: auto; aspect-ratio: 1; color: var(--hc2); filter: drop-shadow(0 0 14px var(--hc)); opacity: .9; z-index: 2; }

/* ============================================================ splash */
.sp-root { background: #000; display: flex; align-items: center; justify-content: center; }
.sp-studio { display: flex; flex-direction: column; align-items: center; gap: 18px; animation: spIn 1.4s var(--ease-out) both; transition: opacity .7s ease, transform .7s ease; }
.sp-out .sp-studio { opacity: 0; transform: scale(1.04); }
.sp-intro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; transition: opacity .4s ease; }
.sp-out .sp-intro { opacity: 0; }
.sp-sigil { width: 150px; height: 150px; filter: drop-shadow(0 0 24px rgba(232, 193, 112, .55)); animation: spPulse 3.2s ease-in-out infinite; }
.sp-name { font-family: var(--f-display); font-weight: 900; font-size: 54px; letter-spacing: .22em; text-transform: uppercase; color: #f4e3b5; text-shadow: 0 0 22px rgba(232, 193, 112, .4); }
.sp-name span { font-family: var(--f-head); font-weight: 400; letter-spacing: .5em; font-size: .5em; color: var(--gold); display: block; text-align: center; margin-top: 6px; }
.sp-pres { font-family: var(--f-flavor); font-style: italic; font-size: 28px; color: var(--text-dim); letter-spacing: .12em; }
.sp-skip { position: absolute; bottom: 46px; left: 0; right: 0; text-align: center; font-family: var(--f-head); font-size: 15px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); opacity: .6; }
@keyframes spIn { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(6px); } }
@keyframes spPulse { 50% { filter: drop-shadow(0 0 40px rgba(255, 79, 139, .6)); } }
.sp-gate { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: spIn .9s var(--ease-out) both; }
.sp-gate-card { width: 860px; padding: 54px 70px 40px; text-align: center; background: linear-gradient(180deg, rgba(36, 14, 44, .96), rgba(14, 6, 19, .97)); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .8), 0 0 80px rgba(255, 45, 149, .12); }
.sp-18 { width: 112px; height: 112px; margin: -110px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 900; font-size: 46px; color: #fff; background: radial-gradient(circle at 35% 30%, #ff7fae, #b3164f 70%, #5a0f2e); border: 3px solid var(--gold); box-shadow: 0 0 34px rgba(255, 79, 139, .6), 0 10px 30px rgba(0, 0, 0, .7); }
.sp-gate h1 { font-size: 46px; color: var(--gold-hi); letter-spacing: .12em; text-transform: uppercase; }
.sp-lead { font-size: 24px; line-height: 1.45; color: var(--text); margin: 8px 0 18px; }
.sp-warn { list-style: none; padding: 0; margin: 0 auto 8px; max-width: 700px; text-align: left; }
.sp-warn li { position: relative; padding: 8px 0 8px 34px; font-size: 21px; color: var(--text-dim); line-height: 1.35; }
.sp-warn li::before { content: ''; position: absolute; left: 6px; top: 17px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: var(--glow-gold); }
.sp-fine { margin-top: 20px; font-size: 16px; color: var(--text-faint); font-family: var(--f-flavor); font-style: italic; }

/* ============================================================ title */
.tt-root { background-color: #07030b; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.tt-root.in { opacity: 1; }
.tt-root.has-art .tt-proc { display: none; }
.tt-bg { position: absolute; inset: 0; }
.tt-bg > div { position: absolute; }
.tt-sky, .tt-stars, .tt-layer, .tt-mist-wrap { inset: 0; }
.tt-sky { background:
  radial-gradient(ellipse 60% 38% at 62% 100%, rgba(255, 90, 170, .75) 0%, rgba(214, 64, 130, .35) 40%, transparent 75%),
  radial-gradient(ellipse 50% 40% at 66% 30%, rgba(160, 60, 200, .35) 0%, transparent 70%),
  linear-gradient(180deg, #08040f 0%, #170a2a 30%, #36105a 55%, #6a1670 74%, #b02377 90%, #e04a8a 100%); }
.tt-stars svg { width: 100%; height: 100%; }
.tt-stars circle { animation: ttTwinkle 4s ease-in-out infinite; opacity: .25; }
@keyframes ttTwinkle { 50% { opacity: 1; } }
.tt-halo { left: 1130px; top: 70px; width: 1000px; height: 1000px; margin: -250px 0 0 -250px; background: radial-gradient(circle, rgba(255, 150, 210, .55) 0%, rgba(214, 70, 160, .28) 25%, rgba(120, 40, 160, .12) 50%, transparent 70%); animation: ttBreathe 9s ease-in-out infinite; }
.tt-moon { left: 1080px; top: 190px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff9ec 0%, #ffd9ee 30%, #e8a6cf 62%, #b46aa8 100%); box-shadow: 0 0 60px 20px rgba(255, 170, 220, .55), 0 0 160px 70px rgba(255, 79, 139, .3); }
.tt-moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 62% 38%, rgba(120, 50, 110, .38) 0 9%, transparent 10%), radial-gradient(circle at 30% 64%, rgba(120, 50, 110, .3) 0 12%, transparent 13%), radial-gradient(circle at 70% 70%, rgba(120, 50, 110, .26) 0 6%, transparent 7%); }
@keyframes ttBreathe { 50% { opacity: .75; transform: scale(1.06); } }
.tt-cloud { width: 2600px; height: 240px; filter: blur(22px); opacity: .7; animation: ttCloud 120s linear infinite alternate; }
.tt-cloud.c1 { left: -300px; top: 250px; background: radial-gradient(ellipse 22% 50% at 20% 50%, rgba(160, 60, 170, .55), transparent), radial-gradient(ellipse 26% 45% at 55% 40%, rgba(200, 80, 160, .4), transparent), radial-gradient(ellipse 20% 50% at 85% 60%, rgba(120, 50, 160, .5), transparent); }
.tt-cloud.c2 { left: -600px; top: 440px; height: 300px; animation-duration: 160s; animation-direction: alternate-reverse; background: radial-gradient(ellipse 24% 50% at 30% 50%, rgba(220, 80, 150, .38), transparent), radial-gradient(ellipse 28% 50% at 70% 50%, rgba(140, 50, 150, .42), transparent); }
@keyframes ttCloud { to { transform: translateX(380px); } }
.tt-layer { will-change: transform; }
.tt-spire { position: absolute; left: 960px; top: -60px; width: 1000px; height: 1250px; filter: drop-shadow(0 0 40px rgba(255, 45, 149, .3)); }
.tt-spire-svg { width: 100%; height: 100%; }
.tt-spire-svg .win { fill: #ffd27a; animation: ttFlick 4s ease-in-out infinite; filter: drop-shadow(0 0 4px #ffb347); }
@keyframes ttFlick { 0%, 100% { opacity: .95; } 45% { opacity: .5; } 55% { opacity: 1; } 80% { opacity: .7; } }
.tt-mist-wrap { overflow: visible; pointer-events: none; }
.tt-mist { position: absolute; left: 0; width: 3840px; bottom: 0; background-repeat: repeat-x; background-size: 1920px 100%; will-change: transform; }
.tt-mist.m1 { height: 520px; bottom: 120px; opacity: 1; animation: ttMist 110s linear infinite; background-image:
  radial-gradient(ellipse 22% 45% at 15% 60%, rgba(255, 130, 200, .26), transparent 70%), radial-gradient(ellipse 26% 40% at 50% 70%, rgba(190, 90, 220, .24), transparent 70%), radial-gradient(ellipse 20% 50% at 82% 55%, rgba(255, 110, 180, .22), transparent 70%); }
.tt-mist.m2 { height: 420px; bottom: 30px; opacity: .9; animation: ttMist 75s linear infinite reverse; background-image:
  radial-gradient(ellipse 24% 40% at 25% 65%, rgba(255, 150, 210, .3), transparent 70%), radial-gradient(ellipse 28% 38% at 65% 60%, rgba(150, 80, 200, .28), transparent 70%); }
.tt-mist.m3 { height: 300px; bottom: -40px; opacity: .8; animation: ttMist 50s linear infinite; background-image:
  radial-gradient(ellipse 26% 45% at 20% 70%, rgba(40, 10, 60, .75), transparent 70%), radial-gradient(ellipse 24% 40% at 60% 75%, rgba(70, 20, 80, .65), transparent 70%), radial-gradient(ellipse 20% 40% at 90% 70%, rgba(40, 10, 60, .7), transparent 70%); }
@keyframes ttMist { to { transform: translateX(-1920px); } }
.tt-thorns { top: auto; left: -40px; right: -40px; bottom: -20px; height: 260px; }
.tt-thorns svg { width: 100%; height: 100%; display: block; }
.tt-fx { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; mix-blend-mode: screen; }
.tt-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 62% 40%, transparent 40%, rgba(0, 0, 0, .55) 100%), linear-gradient(90deg, rgba(6, 2, 10, .78) 0%, rgba(6, 2, 10, .35) 32%, transparent 55%); }

.tt-logo { position: absolute; left: 76px; top: 79px; width: 880px; text-align: center; animation: ttLogoIn 1.6s var(--ease-out) .3s both; }
.tt-logo-img { width: auto; max-width: 100%; max-height: 350px; filter: drop-shadow(0 0 30px rgba(255, 79, 139, .5)); }
.tt-logo-type { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; line-height: .92; }
.tt-logo-type .l1, .tt-logo-type .l2 { background: linear-gradient(180deg, #fffaf0 0%, #ffe6a3 28%, #e8c170 52%, #b9863a 78%, #ffdc94 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #4a1624) drop-shadow(0 0 24px rgba(255, 60, 150, .55)) drop-shadow(0 0 60px rgba(255, 45, 149, .3)); }
.tt-logo-type .l1 { font-size: 112px; letter-spacing: .08em; }
.tt-logo-type .l2 { font-size: 168px; letter-spacing: .2em; margin-left: .2em; margin-top: -4px; position: relative; }
.tt-logo-type .l2::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ttShine 6s ease-in-out infinite; }
@keyframes ttShine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -80% 0; } }
@keyframes ttLogoIn { from { opacity: 0; transform: translateY(-24px) scale(.97); filter: blur(10px); } }
.tt-tag { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 18px; }
.tt-tag span { font-family: var(--f-flavor); font-style: italic; font-size: 36px; color: #ffd3e6; letter-spacing: .14em; text-shadow: 0 0 16px rgba(255, 79, 139, .7); }
.tt-tag i { width: 130px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.tt-tag i:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.tt-tag i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.tt-tag i:last-child::after { right: auto; left: 0; }

.tt-menu { position: absolute; left: 190px; top: 505px; width: 793px; display: flex; flex-direction: column; animation: ttMenuIn 1.2s var(--ease-out) .9s both; }
@keyframes ttMenuIn { from { opacity: 0; transform: translateX(-30px); } }
.tt-item { position: relative; display: flex; align-items: center; gap: 16px; text-align: left; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 0 20px 0 0; font-family: var(--f-head); transition: color .25s var(--ease), transform .25s var(--ease), text-shadow .25s; outline: none; --ic: var(--gold); }
.tt-item.primary { height: 80px; font-size: 38px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f4e3c8; }
.tt-item.plain { height: 45px; font-size: 25px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tt-orn { width: 26px; height: 26px; color: var(--gold); opacity: 0; transform: translateX(-14px) rotate(-45deg) scale(.4); transition: all .3s var(--ease-out); filter: drop-shadow(0 0 8px var(--gold)); }
.tt-orn .mk-glyph { width: 100%; height: 100%; }
.tt-orn svg { fill: currentColor; }
.tt-txt { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; position: relative; }
.tt-subl { font-family: var(--f-body); font-weight: 400; font-size: 18px; letter-spacing: .04em; text-transform: none; color: var(--text-faint); margin-top: 6px; transition: color .25s; }
.tt-item::before { content: ''; position: absolute; left: 42px; right: 0; bottom: 3px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.tt-item.primary::before { height: 2px; bottom: 0; background: linear-gradient(90deg, var(--rose), transparent); }
.tt-item:hover, .tt-item.kfocus { color: var(--gold-hi); transform: translateX(14px); text-shadow: 0 0 18px rgba(232, 193, 112, .6), 0 0 36px rgba(255, 79, 139, .35); box-shadow: none !important; }
.tt-item.primary:hover, .tt-item.primary.kfocus { color: #fff; text-shadow: 0 0 22px rgba(255, 79, 139, .9), 0 0 50px rgba(255, 45, 149, .5); }
.tt-item:hover .tt-orn, .tt-item.kfocus .tt-orn { opacity: 1; transform: none; }
.tt-item:hover::before, .tt-item.kfocus::before { transform: scaleX(1); }
.tt-item:hover .tt-subl, .tt-item.kfocus .tt-subl { color: var(--ic); }
.tt-item:active { transform: translateX(10px) scale(.99); }
.tt-sep { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px 42px; width: 360px; }
.tt-sep i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); opacity: .7; }
.tt-sep i:last-child { display: none; }
.tt-sep b { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: var(--glow-gold); order: -1; }
.tt-version { position: absolute; right: 30px; bottom: 22px; display: flex; align-items: center; gap: 12px; font-family: var(--f-num); font-size: 16px; letter-spacing: .12em; color: rgba(255, 220, 240, .5); z-index: 3; }
.tt-version i { width: 4px; height: 4px; background: var(--gold-deep); transform: rotate(45deg); }
.tt-hint { position: absolute; left: 190px; bottom: 26px; font-family: var(--f-head); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 220, 240, .32); z-index: 3; }

/* credits modal */
.mk-credits { width: 800px; padding: 50px 70px 36px; text-align: center; background: linear-gradient(180deg, rgba(36, 14, 44, .97), rgba(14, 6, 19, .98)); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .8); }
.mk-credits h2 { font-family: var(--f-display); font-size: 44px; color: var(--gold-hi); letter-spacing: .1em; text-transform: uppercase; }
.mk-credits .flavor { font-size: 26px; }
.cr-block { margin: 16px 0; }
.cr-block h4 { margin: 0 0 4px; font-family: var(--f-head); font-size: 16px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.cr-block p { margin: 0; font-size: 22px; color: var(--text); }
.cr-fine { margin-top: 22px; color: var(--text-faint); font-size: 16px; }

/* ============================================================ charselect */
.cs-lbl { font-family: var(--f-head); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.cs-tabs { position: absolute; left: 56px; top: 150px; width: 430px; display: flex; flex-direction: column; gap: 16px; }
.cs-tab { position: relative; display: flex; align-items: center; gap: 22px; height: 198px; padding: 0 26px; text-align: left; cursor: pointer; border-radius: 12px; color: var(--text); --hc: #9a8aa8; --hc2: #fff; background: linear-gradient(100deg, rgba(36, 16, 44, .9), rgba(18, 8, 24, .82)); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s; }
.cs-tab::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--hc); box-shadow: 0 0 20px var(--hc); opacity: .35; transition: opacity .25s; }
.cs-tab::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 50%, color-mix(in srgb, var(--hc) 38%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cs-tab:hover { transform: translateX(8px); border-color: color-mix(in srgb, var(--hc) 70%, #fff 10%); }
.cs-tab:hover::after { opacity: .7; }
.cs-tab.on { transform: translateX(18px); border-color: var(--hc); box-shadow: 0 0 34px color-mix(in srgb, var(--hc) 45%, transparent), 0 14px 34px rgba(0, 0, 0, .55); background: linear-gradient(100deg, color-mix(in srgb, var(--hc) 24%, #22102a), rgba(18, 8, 24, .9)); }
.cs-tab.on::before { opacity: 1; width: 7px; }
.cs-tab.on::after { opacity: 1; }
.cs-tab.dim:not(.on) { opacity: .4; filter: grayscale(.7); }
.cs-medal { position: relative; width: 112px; height: 112px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--hc2); background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--hc) 75%, #fff 10%), color-mix(in srgb, var(--hc) 45%, #000) 70%, #120816); border: 2px solid var(--gold); box-shadow: inset 0 0 22px rgba(0, 0, 0, .5), 0 0 24px color-mix(in srgb, var(--hc) 55%, transparent); z-index: 1; }
.cs-medal::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(232, 193, 112, .45); }
.cs-tab.on .cs-medal { animation: csMedal 4s ease-in-out infinite; }
@keyframes csMedal { 50% { box-shadow: inset 0 0 22px rgba(0, 0, 0, .5), 0 0 44px var(--hc); } }
.cs-tab.locked .cs-medal { background: radial-gradient(circle at 35% 28%, #3a2a44, #150b1b 75%); color: var(--text-faint); box-shadow: inset 0 0 22px rgba(0, 0, 0, .7); font-size: 48px; border-color: rgba(232, 193, 112, .3); }
.cs-tab-txt { z-index: 1; min-width: 0; }
.cs-tab-name { font-family: var(--f-head); font-weight: 900; font-size: 40px; letter-spacing: .06em; line-height: 1.05; color: #fff4e6; text-shadow: 0 0 18px color-mix(in srgb, var(--hc) 70%, transparent); }
.cs-tab-title { font-family: var(--f-flavor); font-style: italic; font-size: 24px; color: var(--text-dim); margin: 2px 0 8px; line-height: 1.15; }
.cs-tab.locked .cs-tab-name { color: var(--text-faint); text-shadow: none; }
.cs-tab.locked .cs-tab-title { font-family: var(--f-body); font-style: normal; font-size: 19px; color: var(--text-dim); }
.cs-tab-diff { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.cs-pips { display: inline-flex; gap: 6px; }
.cs-pips i { width: 13px; height: 13px; transform: rotate(45deg); border: 1px solid rgba(232, 193, 112, .5); background: rgba(0, 0, 0, .35); }
.cs-pips i.on { background: linear-gradient(135deg, #fff1c4, var(--gold)); box-shadow: var(--glow-gold); border-color: var(--gold-hi); }
.cs-pips.big { gap: 9px; margin-top: 8px; }
.cs-stat .cs-pips.big { margin-top: 12px; }
.cs-pips.big i { width: 18px; height: 18px; }

.cs-art { position: absolute; left: 540px; top: 150px; width: 560px; height: 880px; }
.cs-arch { position: absolute; inset: 0; border-radius: 280px 280px 16px 16px / 230px 230px 16px 16px; overflow: hidden; --hc: #9a8aa8; --hc2: #fff; background: #0a050e; border: 3px solid var(--gold); box-shadow: 0 0 0 7px rgba(10, 5, 14, .85), 0 0 0 8px rgba(232, 193, 112, .4), 0 0 70px color-mix(in srgb, var(--hc) 50%, transparent), 0 30px 80px rgba(0, 0, 0, .7); }
.cs-art.swap .cs-arch { animation: csSwap .6s var(--ease-out); }
@keyframes csSwap { from { opacity: 0; transform: translateY(18px) scale(.985); filter: brightness(1.6) blur(3px); } }
.cs-arch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(6, 2, 10, .92) 100%); pointer-events: none; }
.cs-nameplate { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; z-index: 3; }
.cs-name { font-family: var(--f-display); font-weight: 900; font-size: 62px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(180deg, #fff6d6, var(--gold) 60%, #a87a30); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 20px color-mix(in srgb, var(--hc) 70%, transparent)); line-height: 1; }
.cs-title { font-family: var(--f-flavor); font-style: italic; font-size: 34px; color: #ffe6f1; margin-top: 8px; text-shadow: 0 2px 8px #000; }
.cs-lockveil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgba(8, 3, 12, .72); font-size: 100px; color: var(--gold); padding-bottom: 150px; text-align: center; }
.cs-lockveil span { font-family: var(--f-head); font-size: 24px; letter-spacing: .08em; color: var(--text); max-width: 380px; }

.cs-right { position: absolute; left: 1150px; top: 150px; width: 714px; height: 880px; display: flex; flex-direction: column; }
.cs-detail { flex: 1; display: flex; flex-direction: column; gap: 10px; animation: csFade .5s var(--ease-out); }
@keyframes csFade { from { opacity: 0; transform: translateX(16px); } }
.cs-blurb { margin: 0; font-size: 25px; line-height: 1.22; color: #f1dce9; }
.cs-mech { padding: 8px 18px; border-left: 3px solid var(--hc); background: linear-gradient(90deg, color-mix(in srgb, var(--hc) 18%, transparent), transparent); border-radius: 0 8px 8px 0; }
.cs-mech-txt { font-size: 19px; color: var(--text); line-height: 1.3; margin-top: 3px; }
.cs-stats { display: flex; gap: 14px; }
.cs-stat { flex: 1; padding: 6px 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; }
.cs-statv { font-family: var(--f-num); font-size: 32px; font-weight: 600; line-height: 1.1; }
.cs-statv.rose { color: #ff8fb4; }
.cs-statv.gold { color: var(--gold); }
.cs-trinket { display: flex; align-items: center; gap: 18px; padding: 6px 18px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; }
.cs-trinket .relic-icon { width: 68px; height: 68px; flex-shrink: 0; }
.cs-trinket .relic-icon .relic-ph { width: 56px; height: 56px; font-size: 26px; }
.cs-trinket-name { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--gold-hi); }
.cs-trinket-desc { font-size: 19px; color: var(--text-dim); line-height: 1.25; }
.cs-deckwrap { display: flex; flex-direction: column; gap: 8px; }
.cs-deck { display: flex; gap: 14px; height: 218px; align-items: flex-start; padding-top: 4px; }
.cs-deckcard { position: relative; flex-shrink: 0; transition: transform .2s var(--ease); }
.cs-deckcard:hover { transform: translateY(-8px) scale(1.06); z-index: 5; }
.cs-count { position: absolute; right: -6px; bottom: -6px; min-width: 38px; height: 30px; padding: 0 8px; border-radius: 15px; background: #12060f; border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--f-num); font-size: 19px; display: flex; align-items: center; justify-content: center; z-index: 4; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.cs-sin { padding: 8px 18px 8px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 8px; }
.cs-sin-head { display: flex; align-items: center; justify-content: space-between; }
.cs-sin-name { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 28px; color: #ff9fbf; }
.cs-sin-name b { font-family: var(--f-num); font-size: 34px; color: var(--rose); }
.cs-arrow { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; transition: all .2s; }
.cs-arrow.flip .mk-glyph { transform: rotate(180deg); }
.cs-arrow:hover { background: rgba(232, 193, 112, .15); box-shadow: var(--glow-gold); }
.cs-sinpips { display: flex; gap: 8px; margin: 8px 0 6px; }
.cs-sinpip { flex: 1; height: 34px; font-family: var(--f-num); font-size: 18px; color: var(--text-dim); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; cursor: pointer; transition: all .15s; }
.cs-sinpip:hover:not(.locked) { color: #fff; border-color: var(--rose); }
.cs-sinpip.on { background: linear-gradient(180deg, #c42a5e, #7a1038); color: #fff; border-color: #ff8ab3; box-shadow: var(--glow-rose); }
.cs-sinpip.locked { opacity: .35; cursor: not-allowed; }
.cs-sin-desc { font-size: 19px; line-height: 1.25; color: var(--text-dim); min-height: 48px; }
.cs-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; padding-top: 8px; }
.cs-begin { height: 62px; padding: 0 44px; font-size: 26px; letter-spacing: .12em; animation: csBegin 3s ease-in-out infinite; }
.cs-begin:disabled { animation: none; }
@keyframes csBegin { 50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 36px rgba(255, 79, 139, .65), 0 6px 18px rgba(0, 0, 0, .5); } }
.cs-locked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-dim); gap: 6px; }
.cs-locked h2 { font-size: 40px; color: var(--gold-hi); margin-top: 10px; }
.cs-locked p { font-size: 26px; max-width: 520px; }

/* ============================================================ settings */
.st-panel { position: absolute; left: 330px; top: 160px; width: 1260px; max-height: 880px; padding: 52px 56px 40px; background: linear-gradient(180deg, rgba(34, 14, 42, .94), rgba(14, 6, 19, .95)); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .75); animation: csFade .5s var(--ease-out); }
.st-cols { display: flex; gap: 70px; }
.st-col { flex: 1; display: flex; flex-direction: column; gap: 38px; }
.st-sec-title { display: flex; align-items: center; gap: 18px; font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.st-sec-title i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.st-label { display: flex; flex-direction: column; min-width: 0; }
.st-label span { font-family: var(--f-head); font-size: 22px; letter-spacing: .06em; color: var(--text); }
.st-label small { font-size: 16px; color: var(--text-faint); margin-top: 1px; line-height: 1.2; }
.st-ctl { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.st-val { width: 56px; text-align: right; font-family: var(--f-num); font-size: 20px; color: var(--gold-hi); }
.st-range { -webkit-appearance: none; appearance: none; width: 220px; height: 8px; border-radius: 4px; outline: none; cursor: pointer; --p: 50%; background: linear-gradient(90deg, var(--rose) 0, var(--magenta) var(--p), rgba(255, 255, 255, .12) var(--p), rgba(255, 255, 255, .12) 100%); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.st-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 55%, #8a6226); border: 2px solid #3a1d10; box-shadow: 0 0 12px rgba(232, 193, 112, .7), 0 2px 6px rgba(0, 0, 0, .7); transition: transform .15s; }
.st-range:hover::-webkit-slider-thumb { transform: scale(1.18); }
.st-switch { position: relative; width: 74px; height: 38px; border-radius: 19px; cursor: pointer; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); transition: all .25s var(--ease); padding: 0; }
.st-switch i { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8c9d4, #8b7a8b); box-shadow: 0 2px 6px rgba(0, 0, 0, .6); transition: all .25s var(--ease-out); }
.st-switch.on { background: linear-gradient(90deg, #7a1038, #c42a5e); border-color: #ff8ab3; box-shadow: var(--glow-rose); }
.st-switch.on i { left: 40px; background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 60%, #8a6226); }
.st-switch:hover { filter: brightness(1.2); }
.st-seg { display: flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.st-segbtn { font-family: var(--f-head); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 18px; color: var(--text-dim); background: rgba(255, 255, 255, .04); border: none; border-right: 1px solid rgba(255, 255, 255, .08); cursor: pointer; transition: all .2s; }
.st-segbtn:last-child { border-right: none; }
.st-segbtn:hover { color: var(--gold-hi); background: rgba(232, 193, 112, .1); }
.st-segbtn.on { color: #2a1408; background: linear-gradient(180deg, #f0cf86, #b98a3e); font-weight: 700; }
.st-select { font-family: var(--f-body); font-size: 19px; color: var(--gold-hi); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 14px; min-width: 260px; cursor: pointer; pointer-events: auto; }
.st-select:hover { background: rgba(232, 193, 112, .1); }
.st-select option { background: #22102a; color: var(--text); }
.st-data { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.st-reset { color: #ff8f8f; border-color: rgba(255, 107, 107, .35); }
.st-reset:hover:not(:disabled) { box-shadow: 0 0 22px rgba(255, 70, 70, .45) !important; }
.st-ver { font-family: var(--f-num); font-size: 16px; letter-spacing: .12em; color: var(--text-faint); }
.st-modal { width: 1220px; max-height: 960px; overflow-y: auto; padding: 34px 54px 34px; background: linear-gradient(180deg, rgba(36, 14, 44, .97), rgba(14, 6, 19, .98)); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .85); }
.st-modal::-webkit-scrollbar { width: 10px; }
.st-modal::-webkit-scrollbar-thumb { background: rgba(232, 193, 112, .35); border-radius: 5px; }
.st-modal-head { text-align: center; margin-bottom: 14px; }
.st-modal-head h2 { font-family: var(--f-display); font-weight: 900; font-size: 44px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 0 20px rgba(255, 79, 139, .45); }
.st-modal .st-sec-title { font-size: 21px; }
.st-modal .st-row { padding: 11px 0; }
.st-modal .st-col { gap: 26px; }
.st-modal .st-label span { font-size: 20px; }
.st-runbtns { display: flex; justify-content: center; gap: 22px; margin-top: 26px; }
.st-abandon { color: #ff9a9a; border-color: rgba(255, 107, 107, .4); }

/* ============================================================ compendium */
.cp-total { font-family: var(--f-head); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.cp-tabs { position: absolute; left: 0; right: 0; top: 128px; z-index: 4; }
.cp-bar { position: absolute; left: 56px; right: 56px; top: 190px; height: 54px; display: flex; align-items: center; justify-content: space-between; z-index: 4; }
.cp-bar-l, .cp-bar-r, .cp-bar-m { display: flex; align-items: center; gap: 8px; }
.cp-bar-r { gap: 26px; }
.cp-info { font-family: var(--f-num); font-size: 20px; letter-spacing: .08em; color: var(--text-dim); min-width: 140px; text-align: right; }
.cp-sub { --sc: var(--gold); font-size: 17px; padding: 7px 18px; }
.cp-sub.on, .cp-sub:hover { border-color: var(--sc); color: #fff; background: color-mix(in srgb, var(--sc) 24%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--sc) 40%, transparent); }
.cp-scroll { position: absolute; left: 0; right: 0; top: 252px; bottom: 0; padding: 14px 56px 60px; }
.cp-grid { display: grid; gap: 30px 26px; justify-content: center; }
.cp-grid.g-cards { grid-template-columns: repeat(7, 220px); gap: 36px 28px; padding-top: 12px; }
.cp-grid.g-relics, .cp-grid.g-potions { grid-template-columns: repeat(8, 188px); gap: 26px 22px; }
.cp-grid.g-enemies { grid-template-columns: repeat(4, 405px); gap: 26px 26px; }
.cp-card { width: 220px; height: 308px; transition: transform .2s var(--ease); }
.cp-card:hover { transform: translateY(-6px) scale(1.04); z-index: 3; }
.cp-unseen-card { width: 220px; height: 308px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(160deg, rgba(40, 24, 48, .75), rgba(14, 8, 18, .85)); display: flex; flex-direction: column; align-items: center; padding-top: 52px; gap: 10px; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.cp-arch { width: 160px; height: 124px; border-radius: 80px 80px 8px 8px / 62px 62px 8px 8px; background: radial-gradient(ellipse at 50% 30%, #2c1c36, #0c060f 80%); display: flex; align-items: center; justify-content: center; font-size: 48px; color: rgba(232, 193, 112, .3); border: 1px solid rgba(232, 193, 112, .18); }
.cp-q { font-family: var(--f-head); font-weight: 700; font-size: 40px; letter-spacing: .2em; color: rgba(191, 169, 188, .45); margin-top: 18px; }
.cp-qs { font-family: var(--f-flavor); font-style: italic; font-size: 18px; color: var(--text-faint); }
.cp-cell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 10px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(34, 16, 42, .85), rgba(16, 8, 21, .85)); border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; --tc: #b7b0c2; }
.cp-cell:hover { transform: translateY(-5px); border-color: var(--tc); box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--tc) 30%, transparent); }
.cp-cell.tier-uncommon { --tc: #ff86b8; }
.cp-cell.tier-rare { --tc: #ffd77a; }
.cp-cell.tier-boss { --tc: #ff6b4a; }
.cp-cell.tier-shop { --tc: #7dffe0; }
.cp-cell.tier-event { --tc: #b99aff; }
.cp-cell.tier-starter { --tc: #9ad0ff; }
.cp-icon { width: 108px; height: 108px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--tc) 22%, #1a0c22), #0c060f 75%); border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); box-shadow: inset 0 0 22px rgba(0, 0, 0, .6); }
.cp-icon .relic-icon, .cp-icon .potion-icon { width: 84px; height: 84px; }
.cp-icon .relic-ph { width: 70px; height: 70px; font-size: 30px; }
.cp-icon .potion-ph { width: 38px; height: 52px; }
.cp-icon.q { font-size: 44px; color: rgba(232, 193, 112, .28); }
.cp-name { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.15; color: var(--text); margin-top: 12px; min-height: 46px; display: flex; align-items: center; }
.cp-tier { font-family: var(--f-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--tc); opacity: .85; }
.cp-cell.unseen .cp-name { color: var(--text-faint); }
.cp-cell.unseen .cp-tier { color: var(--text-faint); }
.cp-act { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; margin: 18px 0 2px; font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.cp-act i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.cp-act i:last-child { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.cp-enemy { display: flex; gap: 0; height: 190px; border-radius: 12px; overflow: hidden; background: linear-gradient(100deg, rgba(34, 16, 42, .9), rgba(16, 8, 21, .9)); border: 1px solid rgba(255, 255, 255, .08); transition: transform .2s var(--ease), border-color .2s; }
.cp-enemy:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.cp-enemy.t-elite { border-color: rgba(255, 134, 184, .35); }
.cp-enemy.t-boss { border-color: rgba(255, 215, 122, .5); box-shadow: 0 0 24px rgba(255, 215, 122, .12); }
.cp-eart { --ec: #c04070; width: 150px; flex-shrink: 0; position: relative; background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--ec) 55%, #000), #0a050e 85%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.cp-eimg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cp-esigil { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 66px; color: color-mix(in srgb, var(--ec) 40%, #fff); filter: drop-shadow(0 0 14px var(--ec)); opacity: .8; }
.cp-esigil.q { color: rgba(232, 193, 112, .25); filter: none; }
.cp-ebody { flex: 1; padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cp-ename { font-family: var(--f-head); font-weight: 700; font-size: 25px; color: var(--gold-hi); line-height: 1.1; }
.cp-emeta { display: flex; gap: 10px; align-items: center; font-family: var(--f-num); font-size: 16px; color: var(--text-dim); letter-spacing: .04em; }
.cp-emeta .tag { font-family: var(--f-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #ffb3d0; padding: 2px 10px; border: 1px solid rgba(255, 134, 184, .4); border-radius: 12px; }
.cp-enemy.t-boss .tag { color: #ffd77a; border-color: rgba(255, 215, 122, .5); }
.cp-edesc { font-family: var(--f-flavor); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--text-dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.cp-enemy.unseen .cp-ename { color: var(--text-faint); }

/* ============================================================ gallery */
.gl-hr { display: flex; align-items: center; gap: 18px; }
.gl-chips { position: absolute; left: 56px; top: 138px; z-index: 4; }
.gl-sep { align-self: center; width: 1px; height: 26px; margin: 0 10px; background: var(--line-strong); }
.gl-scroll { position: absolute; left: 0; right: 0; top: 190px; bottom: 0; padding: 10px 70px 70px; }
.gl-grid { display: grid; grid-template-columns: repeat(5, 328px); gap: 28px 30px; justify-content: center; }
.gl-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; margin: 22px 0 4px; font-family: var(--f-head); font-weight: 700; font-size: 30px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.gl-group i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.gl-group i:last-child { background: linear-gradient(270deg, transparent, var(--gold-deep)); }
.gl-group em { font-family: var(--f-num); font-style: normal; font-size: 20px; letter-spacing: .1em; color: var(--text-faint); }
.gl-cell { cursor: pointer; border-radius: 12px; background: linear-gradient(180deg, rgba(34, 16, 42, .9), rgba(16, 8, 21, .92)); border: 1px solid var(--line); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s, border-color .22s; }
.gl-cell:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 14px 36px rgba(0, 0, 0, .6), 0 0 26px rgba(232, 193, 112, .25); }
.gl-cell.locked { cursor: default; }
.gl-cell.locked:hover { border-color: rgba(255, 255, 255, .15); box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.gl-thumb { position: relative; width: 100%; height: 184px; --gc: #c04080; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--gc) 45%, #14081a), #09040c 85%); border-bottom: 1px solid var(--line); }
.gl-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gl-cell:hover .gl-img { transform: scale(1.06); }
.gl-ph { position: absolute; inset: 10px; border: 1px solid rgba(232, 193, 112, .35); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 54px; color: color-mix(in srgb, var(--gc) 55%, #fff); background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--gc) 25%, transparent), transparent 70%); }
.gl-ph .mk-glyph { filter: drop-shadow(0 0 12px var(--gc)); }
.gl-ph.gl-img { width: auto; height: auto; }
.gl-cell:hover .gl-ph.gl-img { transform: none; }
.gl-ph em { font-family: var(--f-flavor); font-style: italic; font-size: 21px; color: var(--text); text-align: center; padding: 0 12px; line-height: 1.1; }
.gl-locked { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(4, 2, 8, .55) 0 9px, rgba(255, 255, 255, .05) 9px 11px, transparent 11px 20px), rgba(8, 4, 12, .35); }
/* Shaun 2026-10-26: the locked tease is blurred and dimmed (scaled up so the blur has no soft edge) */
.gl-cell.locked .gl-img, .gl-cell.locked:hover .gl-img { filter: blur(7px) saturate(.85) brightness(.7); transform: scale(1.08); }
.gl-lock { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: rgba(232, 193, 112, .55); border: 1px solid rgba(232, 193, 112, .35); background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 20px rgba(0, 0, 0, .6); }
.gl-meta { padding: 10px 16px 14px; }
.gl-title { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--gold-hi); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-sub { font-size: 17px; color: var(--text-dim); margin-top: 2px; line-height: 1.2; min-height: 21px; }
.gl-cell.locked .gl-title { color: var(--text-faint); }
.gl-cell.locked .gl-sub { font-family: var(--f-flavor); font-style: italic; font-size: 19px; color: var(--text-faint); }

/* ============================================================ history */
.hs-left { position: absolute; left: 56px; top: 146px; width: 560px; bottom: 30px; padding: 6px 12px 6px 6px; }
.hs-stats { padding: 28px 30px; background: linear-gradient(180deg, rgba(34, 14, 42, .92), rgba(14, 6, 19, .94)); border: 1px solid var(--line-strong); border-radius: 12px; margin-left: 8px; margin-top: 4px; }
.hs-h { font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hs-h.sm { font-size: 20px; margin: 22px 0 8px; }
.hs-level { display: flex; align-items: center; gap: 22px; margin: 16px 0 18px; padding: 14px 18px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 79, 139, .16), rgba(0, 0, 0, .2)); border: 1px solid rgba(255, 79, 139, .3); }
.hs-lv-num { width: 98px; height: 98px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 28%, #ff7fae, #b3164f 70%, #5a0f2e); border: 3px solid var(--gold); box-shadow: 0 0 26px rgba(255, 79, 139, .55); }
.hs-lv-num span { font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ffd6e6; }
.hs-lv-num b { font-family: var(--f-num); font-size: 44px; line-height: 1; color: #fff; }
.hs-lv-txt { flex: 1; min-width: 0; }
.hs-lv-title { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--gold-hi); }
.hs-bar { height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(232, 193, 112, .35); margin: 8px 0 4px; overflow: hidden; }
.hs-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose-deep), var(--rose), #ffb3d0); box-shadow: 0 0 12px var(--rose); border-radius: 6px; }
.hs-lv-xp { font-family: var(--f-num); font-size: 16px; color: var(--text-dim); letter-spacing: .06em; }
.hs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hs-stat { padding: 7px 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; }
.hs-v { font-family: var(--f-num); font-size: 27px; white-space: nowrap; font-weight: 600; color: var(--text); line-height: 1.1; }
.hs-stat.gold .hs-v { color: var(--gold); }
.hs-stat.rose .hs-v { color: #ff8fb4; }
.hs-l { font-family: var(--f-head); font-size: 11px; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: var(--text-faint); }
.hs-hrow { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 20px; }
.hs-hdot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.hs-hname { font-family: var(--f-head); font-weight: 700; flex: 1; }
.hs-hwins { font-family: var(--f-num); color: var(--gold); }
.hs-hsin { font-family: var(--f-num); color: #ff9fbf; min-width: 60px; text-align: right; }
.hs-hrow.locked { color: var(--text-faint); }
.hs-right { position: absolute; left: 650px; top: 146px; right: 56px; bottom: 30px; display: flex; flex-direction: column; }
.hs-rhead { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 8px 12px; font-family: var(--f-num); color: var(--text-faint); font-size: 18px; }
.hs-rscroll { flex: 1; padding: 4px 10px 40px 4px; }
.hr-list { display: flex; flex-direction: column; gap: 12px; }
.hr-row { --hc: #9a8aa8; border-radius: 12px; background: linear-gradient(100deg, rgba(34, 16, 42, .92), rgba(18, 8, 24, .9)); border: 1px solid rgba(255, 255, 255, .08); border-left: 5px solid var(--hc); overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s; }
.hr-row:hover { border-color: var(--line-strong); border-left-color: var(--hc); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.hr-row.victory { background: linear-gradient(100deg, rgba(60, 40, 14, .6), rgba(18, 8, 24, .92) 60%); }
.hr-row.open { border-color: var(--line-strong); border-left-color: var(--hc); }
.hr-head { display: flex; align-items: center; gap: 22px; height: 92px; padding: 0 22px 0 18px; cursor: pointer; }
.hr-medal { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--hc) 80%, #fff 10%), color-mix(in srgb, var(--hc) 45%, #000) 75%); border: 2px solid var(--gold); flex-shrink: 0; }
.hr-who { width: 250px; }
.hr-name { font-family: var(--f-head); font-weight: 900; font-size: 26px; color: #fff4e6; line-height: 1.1; }
.hr-sub { font-family: var(--f-flavor); font-style: italic; font-size: 19px; color: var(--text-dim); }
.hr-out { width: 270px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hr-out .badge { font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; padding: 2px 14px; border-radius: 14px; border: 1px solid; }
.hr-row.victory .badge { color: #2a1408; background: linear-gradient(180deg, #f6d890, #c0903e); border-color: var(--gold-hi); }
.hr-row.defeat .badge { color: #ff9fbf; border-color: rgba(255, 79, 139, .6); background: rgba(255, 79, 139, .12); }
.hr-row.abandoned .badge { color: var(--text-dim); border-color: rgba(255, 255, 255, .25); }
.hr-why { font-size: 18px; color: var(--text-dim); }
.hr-fl { display: flex; flex-direction: column; width: 100px; }
.hr-fl b { font-family: var(--f-head); font-size: 20px; color: var(--text); }
.hr-fl span { font-family: var(--f-num); font-size: 18px; color: var(--text-dim); }
.hr-score { display: flex; flex-direction: column; width: 110px; }
.hr-score b { font-family: var(--f-num); font-size: 32px; color: var(--gold); line-height: 1.05; }
.hr-score span { font-family: var(--f-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.hr-date { flex: 1; text-align: right; font-family: var(--f-num); font-size: 18px; color: var(--text-faint); letter-spacing: .04em; }
.hr-chev { font-size: 24px; color: var(--gold); transition: transform .3s var(--ease); transform: rotate(-90deg); }
.hr-row.open .hr-chev { transform: rotate(90deg); }
.hr-detail { padding: 6px 26px 22px 26px; border-top: 1px solid var(--line); animation: csFade .35s var(--ease-out); }
.hr-cols { display: flex; gap: 40px; padding-top: 14px; }
.hr-col { flex: 1.5; min-width: 0; }
.hr-col.narrow { flex: 1; }
.hr-deck { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hr-card { font-family: var(--f-head); font-size: 17px; padding: 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: var(--text); cursor: default; }
.hr-card b { font-family: var(--f-num); color: var(--gold); font-weight: 600; }
.hr-card.rar-uncommon { border-color: rgba(255, 134, 184, .55); color: #ffc0da; }
.hr-card.rar-rare { border-color: rgba(255, 215, 122, .7); color: #ffe4a0; background: rgba(255, 215, 122, .08); }
.hr-card.rar-curse { border-color: rgba(160, 101, 200, .6); color: #cfa6ec; }
.hr-relics { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.hr-relics .relic-icon { width: 46px; height: 46px; }
.hr-relics .relic-ph { width: 38px; height: 38px; font-size: 18px; }
.hr-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 18px; color: var(--text-dim); }
.hr-facts b { font-family: var(--f-num); color: var(--text); font-weight: 600; }
.hr-empty { text-align: center; padding: 140px 0; color: var(--text-faint); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hr-empty h2 { font-size: 40px; color: var(--text-dim); }
.hr-empty p { font-size: 28px; margin: 0; }

/* ============================================================ gameover */
.go-root { background: #07030a; overflow: hidden; --hc: #d0313f; }
.go-bg, .go-glow, .go-rays, .go-fx { position: absolute; inset: 0; }
.go-fx { width: 1920px; height: 1080px; pointer-events: none; mix-blend-mode: screen; }
.go-glow { background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(190, 20, 70, .55), rgba(60, 5, 28, .5) 45%, #07030a 85%); animation: goPulse 5s ease-in-out infinite; }
.go-root.victory .go-glow { background: radial-gradient(ellipse 75% 60% at 50% 35%, rgba(255, 190, 90, .5), rgba(200, 40, 130, .38) 45%, #0a0410 88%); }
.go-root.abandoned .go-glow { background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(110, 70, 150, .4), #07030a 85%); }
.go-rays { background: repeating-conic-gradient(from 0deg at 50% 38%, rgba(255, 220, 160, .07) 0deg 5deg, transparent 5deg 15deg); mask-image: radial-gradient(circle at 50% 38%, #000, transparent 65%); -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, transparent 65%); animation: mkSpin 160s linear infinite; opacity: 0; transition: opacity 3s; transform-origin: 50% 38%; }
.go-root.victory .go-rays { opacity: 1; }
@keyframes goPulse { 50% { opacity: .75; transform: scale(1.04); } }
.go-titlebox { position: absolute; left: 0; right: 0; top: 46px; text-align: center; transform: translateY(300px) scale(1.55); transition: transform 1.2s var(--ease-out); z-index: 4; opacity: 1; }
.go-root.settled .go-titlebox { transform: none; }
.go-title { font-family: var(--f-display); font-weight: 900; font-size: 104px; letter-spacing: .06em; line-height: 1.1; color: #ffd9e6; text-shadow: 0 0 40px rgba(255, 45, 110, .7), 0 5px 0 #4a0a22; }
.go-root.victory .go-title { filter: drop-shadow(0 4px 0 #5a1a24) drop-shadow(0 0 30px rgba(255, 150, 80, .7)); text-shadow: none; }
.go-root.victory .go-ch { background: linear-gradient(180deg, #fffbe8, #ffe08a 45%, #e8a640 75%, #fff0b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.go-root.defeat .go-title { color: #ffc8d6; }
.go-root.abandoned .go-title { color: #d8c8ec; text-shadow: 0 0 30px rgba(150, 100, 220, .6), 0 4px 0 #2a1448; }
.go-ch { display: inline-block; opacity: 0; animation: goCh .9s var(--ease-out) forwards; }
@keyframes goCh { from { opacity: 0; transform: translateY(28px) scale(1.3); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.go-sub { font-family: var(--f-flavor); font-style: italic; font-size: 32px; color: #f0d4e2; margin-top: 4px; opacity: 0; transition: opacity 1s .8s; }
.go-sub b { font-family: var(--f-head); font-style: normal; color: var(--gold-hi); letter-spacing: .04em; }
.go-root.settled .go-sub, .go-root.settled .go-daily { opacity: 1; }
.go-daily { font-family: var(--f-head); font-size: 16px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 6px; opacity: 0; transition: opacity 1s 1s; }
.go-title { transition: font-size 1s; }
.go-root.settled .go-title { font-size: 84px; }
.go-panels { position: absolute; left: 130px; right: 130px; top: 250px; height: 690px; display: flex; gap: 60px; opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s var(--ease-out); z-index: 4; }
.go-panels.in { opacity: 1; transform: none; }
.go-panel { flex: 1; padding: 30px 40px; background: linear-gradient(180deg, rgba(30, 10, 36, .88), rgba(12, 5, 17, .92)); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); backdrop-filter: blur(4px); display: flex; flex-direction: column; min-height: 0; }
.go-ph { font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.go-ph.sm { font-size: 18px; margin-top: 20px; }
.go-panel .mk-divider.left { margin: 10px 0 14px; width: 100%; }
.go-rows { display: flex; flex-direction: column; gap: 4px; }
.go-row { display: flex; align-items: baseline; gap: 16px; padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); opacity: 0; transform: translateX(-24px); transition: all .45s var(--ease-out); }
.go-row.in { opacity: 1; transform: none; }
.go-rl { font-family: var(--f-head); font-size: 22px; color: var(--text); flex: 1; }
.go-rd { font-family: var(--f-num); font-size: 19px; color: var(--text-faint); letter-spacing: .04em; }
.go-rv { font-family: var(--f-num); font-size: 29px; color: var(--gold-hi); min-width: 96px; text-align: right; font-weight: 600; }
.go-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding: 10px 18px; border-radius: 10px; background: linear-gradient(90deg, rgba(232, 193, 112, .14), rgba(255, 79, 139, .16)); border: 1px solid var(--gold); opacity: 0; transform: scale(.96); transition: all .5s var(--ease-out); }
.go-total.in { opacity: 1; transform: none; }
.go-total span { font-family: var(--f-head); font-weight: 700; font-size: 28px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.go-total b { font-family: var(--f-num); font-size: 52px; color: #fff; font-weight: 600; text-shadow: 0 0 22px rgba(255, 79, 139, .7); }
.go-total.done b { text-shadow: 0 0 30px rgba(255, 215, 122, .9); }
.go-xp { display: flex; align-items: center; gap: 26px; padding: 14px 6px; opacity: 0; transition: opacity .6s; }
.go-xp.in { opacity: 1; }
.go-lvbadge { width: 118px; height: 118px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 28%, #ff7fae, #b3164f 70%, #5a0f2e); border: 3px solid var(--gold); box-shadow: 0 0 30px rgba(255, 79, 139, .6); }
.go-lvbadge.pop { animation: goPop .9s var(--ease-out); }
@keyframes goPop { 0% { transform: scale(1); } 30% { transform: scale(1.35); box-shadow: 0 0 80px 20px rgba(255, 215, 122, .8); } 100% { transform: scale(1); } }
.go-lvbadge span { font-family: var(--f-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #ffd6e6; }
.go-lvbadge b { font-family: var(--f-num); font-size: 54px; line-height: 1; color: #fff; }
.go-xpt { flex: 1; min-width: 0; }
.go-lvtitle { font-family: var(--f-head); font-weight: 700; font-size: 30px; color: var(--gold-hi); }
.go-xpbar { height: 18px; border-radius: 9px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(232, 193, 112, .45); margin: 10px 0 8px; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.go-xpbar i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--rose-deep), var(--rose), #ffc4dc); box-shadow: 0 0 16px var(--rose); transition: width 1s var(--ease-out); }
.go-xpmeta { display: flex; justify-content: space-between; font-family: var(--f-num); font-size: 20px; color: var(--text-dim); }
.go-xpgain { color: #ffb3d0; font-size: 26px; }
.go-unlockwrap { flex: 1; min-height: 0; padding-right: 8px; }
.go-unlocks { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.go-none { font-family: var(--f-flavor); font-style: italic; font-size: 24px; color: var(--text-faint); padding: 14px 4px; }
.go-unlock { display: flex; align-items: center; gap: 18px; padding: 10px 18px 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(232, 193, 112, .12), rgba(0, 0, 0, .2)); border: 1px solid var(--line-strong); opacity: 0; transform: translateX(40px) scale(.97); transition: all .55s var(--ease-out); }
.go-unlock.in { opacity: 1; transform: none; }
.go-unlock.hero { border-color: #ff8ab3; background: linear-gradient(90deg, rgba(255, 79, 139, .22), rgba(0, 0, 0, .2)); }
.go-unlock.sin { border-color: #ff9a7a; }
.go-ui { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--gold-hi); background: radial-gradient(circle at 35% 28%, #5a2a50, #1a0a20 75%); border: 2px solid var(--gold); box-shadow: var(--glow-gold); }
.go-utag { font-family: var(--f-head); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--rose); }
.go-uname { font-family: var(--f-head); font-weight: 700; font-size: 24px; color: var(--gold-hi); line-height: 1.15; }
.go-udesc { font-size: 17px; color: var(--text-dim); line-height: 1.2; }
.go-btns { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; justify-content: center; gap: 30px; opacity: 0; transform: translateY(16px); transition: all .7s var(--ease-out); pointer-events: none; z-index: 6; }
.go-btns.in { opacity: 1; transform: none; pointer-events: auto; }
.go-btns .btn { min-width: 260px; font-size: 26px; padding: 16px 40px; }
.go-hint { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-family: var(--f-head); font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 220, 240, .35); transition: opacity .4s; z-index: 5; }
.go-hint.off { opacity: 0; }

/* ============================================================ codex / progression */
.pg-scroll { position: absolute; left: 0; right: 0; top: 124px; bottom: 0; }
.pg-page { width: 1740px; margin: 0 auto; padding: 20px 0 80px; }
.pg-sec { margin-bottom: 44px; }
.pg-h { display: flex; align-items: center; gap: 22px; font-family: var(--f-head); font-weight: 700; font-size: 30px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.pg-h i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-deep), transparent); }
.pg-h em { font-style: normal; font-family: var(--f-num); font-size: 24px; letter-spacing: .1em; color: var(--text-dim); order: 3; }
.pg-lvhead { display: flex; align-items: center; gap: 34px; padding: 22px 34px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 79, 139, .18), rgba(24, 10, 30, .85) 60%); border: 1px solid rgba(255, 79, 139, .35); }
.pg-lvbadge { width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 28%, #ff7fae, #b3164f 70%, #5a0f2e); border: 3px solid var(--gold); box-shadow: 0 0 34px rgba(255, 79, 139, .6); }
.pg-lvbadge span { font-family: var(--f-head); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: #ffd6e6; }
.pg-lvbadge b { font-family: var(--f-num); font-size: 62px; line-height: 1; color: #fff; }
.pg-lvtxt { flex: 1; }
.pg-lvtitle { font-family: var(--f-display); font-weight: 900; font-size: 46px; letter-spacing: .06em; color: var(--gold-hi); text-shadow: 0 0 20px rgba(255, 79, 139, .45); }
.pg-xpbar, .pg-abar { height: 18px; border-radius: 9px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(232, 193, 112, .45); margin: 12px 0 8px; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .6); }
.pg-xpbar i, .pg-abar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--rose-deep), var(--rose), #ffc4dc); box-shadow: 0 0 16px var(--rose); }
.pg-abar { height: 12px; margin: 0 0 22px; }
.pg-abar i { background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi)); box-shadow: 0 0 14px rgba(232, 193, 112, .6); }
.pg-xpmeta { display: flex; justify-content: space-between; font-family: var(--f-num); font-size: 21px; color: var(--text-dim); }
.pg-trackwrap { padding: 120px 70px 130px; }
.pg-track { position: relative; height: 6px; }
.pg-line { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.pg-line.fill { right: auto; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 14px rgba(232, 193, 112, .6); }
.pg-node { position: absolute; top: 3px; transform: translateX(-50%); }
.pg-dot { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #1a0c22; border: 2px solid rgba(255, 255, 255, .2); font-family: var(--f-num); font-size: 20px; color: var(--text-faint); transition: transform .2s; }
.pg-node:hover .pg-dot { transform: scale(1.2); }
.pg-node.done .pg-dot { background: radial-gradient(circle at 35% 30%, #fff1c4, var(--gold) 60%, #8a6226); border-color: var(--gold-hi); color: #2a1408; box-shadow: var(--glow-gold); }
.pg-node.cur .pg-dot { background: radial-gradient(circle at 35% 28%, #ff7fae, #b3164f 75%); border-color: var(--gold-hi); color: #fff; width: 58px; height: 58px; left: -29px; top: -29px; font-size: 28px; box-shadow: 0 0 30px rgba(255, 79, 139, .8); animation: pgCur 2.4s ease-in-out infinite; }
@keyframes pgCur { 50% { box-shadow: 0 0 50px rgba(255, 79, 139, 1); } }
.pg-ntitle { position: absolute; left: 50%; transform: translateX(-50%); width: 200px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.pg-node.up .pg-ntitle { bottom: 42px; }
.pg-node.down .pg-ntitle { top: 42px; }
.pg-ntitle span { font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--text-dim); }
.pg-ntitle small { font-family: var(--f-num); font-size: 15px; letter-spacing: .06em; color: var(--text-faint); }
.pg-node.done .pg-ntitle span { color: var(--gold-hi); }
.pg-node.cur .pg-ntitle span { color: #fff; font-size: 22px; text-shadow: 0 0 14px rgba(255, 79, 139, .8); }
.pg-heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pg-hero { --hc: #9a8aa8; display: flex; gap: 20px; align-items: center; padding: 20px 22px; border-radius: 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--hc) 20%, #1e0e26), rgba(16, 8, 21, .9)); border: 1px solid color-mix(in srgb, var(--hc) 60%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--hc) 18%, transparent); }
.pg-hero.locked { background: rgba(20, 10, 26, .8); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.pg-hmedal { width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--hc) 80%, #fff 10%), color-mix(in srgb, var(--hc) 45%, #000) 75%); border: 2px solid var(--gold); }
.pg-hero.locked .pg-hmedal { background: radial-gradient(circle at 35% 28%, #3a2a44, #150b1b); color: var(--text-faint); border-color: rgba(232, 193, 112, .3); }
.pg-hname { font-family: var(--f-head); font-weight: 900; font-size: 30px; color: #fff4e6; line-height: 1.1; }
.pg-htitle { font-family: var(--f-flavor); font-style: italic; font-size: 21px; color: var(--text-dim); }
.pg-hero.locked .pg-hname { color: var(--text-faint); }
.pg-hstat { font-size: 19px; color: var(--text-dim); margin-top: 4px; }
.pg-hstat b { font-family: var(--f-num); color: var(--gold); font-weight: 600; }
.pg-sinpips { display: flex; gap: 4px; margin-top: 6px; }
.pg-sinpips i { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid rgba(255, 140, 170, .45); background: rgba(0, 0, 0, .4); }
.pg-sinpips i.on { background: linear-gradient(135deg, #ff9fbf, var(--rose)); box-shadow: 0 0 8px var(--rose); }
.pg-ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 20px; }
.pg-a { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 10px; background: rgba(20, 10, 26, .75); border: 1px solid rgba(255, 255, 255, .07); transition: transform .2s var(--ease), border-color .2s; }
.pg-a:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.pg-a.got { background: linear-gradient(100deg, rgba(232, 193, 112, .14), rgba(24, 10, 30, .9) 70%); border-color: rgba(232, 193, 112, .45); }
.pg-aicon { width: 66px; height: 66px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--text-faint); background: radial-gradient(circle at 35% 28%, #2e1c38, #130a19 75%); border: 2px solid rgba(255, 255, 255, .12); }
.pg-a.got .pg-aicon { color: var(--gold-hi); background: radial-gradient(circle at 35% 28%, #6a3258, #1e0e26 75%); border-color: var(--gold); box-shadow: var(--glow-gold); }
.pg-aname { font-family: var(--f-head); font-weight: 700; font-size: 23px; color: var(--text); line-height: 1.15; }
.pg-a.lock .pg-aname { color: var(--text-dim); }
.pg-adesc { font-size: 18px; color: var(--text-dim); line-height: 1.25; margin-top: 2px; }
.pg-a.lock .pg-adesc { color: var(--text-faint); }
.pg-adate { font-family: var(--f-num); font-size: 14px; letter-spacing: .08em; color: var(--gold); margin-top: 4px; opacity: .8; }

/* real title art present: the procedural foreground thorns would draw over it */
.has-art .tt-thorns { display: none; }

/* ---- Steam DLC heroes (owner: Steam/DLC agent; src/core/dlc.js) ---- */
.cs-tab.dlc .cs-tab-name { color: #fff4e6; opacity: .78; text-shadow: 0 0 14px color-mix(in srgb, var(--hc) 50%, transparent); }
.cs-tab.dlc .cs-tab-title { color: var(--gold); letter-spacing: .04em; }
.cs-lockveil.dlc { background: linear-gradient(180deg, rgba(8, 3, 12, .15), rgba(8, 3, 12, .55) 60%, rgba(8, 3, 12, .8)); font-size: 64px; justify-content: flex-end; padding-bottom: 240px; }
.cs-dlc { margin-top: 18px; padding: 22px 26px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--hc) 60%, var(--gold) 40%); background: linear-gradient(120deg, color-mix(in srgb, var(--hc) 20%, rgba(26, 10, 32, .92)), rgba(14, 6, 20, .92)); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cs-dlc-name { font-family: var(--f-head); font-weight: 900; font-size: 30px; color: #fff4e6; letter-spacing: .04em; }
.cs-dlc-txt { font-size: 22px; color: var(--text-dim); }
.cs-dlc-buy { margin-top: 8px; }
.cp-dlc-note { display: flex; align-items: center; gap: 18px; margin: 6px 0 16px; padding: 14px 20px; border-radius: 10px; border: 1px solid rgba(232, 193, 112, .4); background: rgba(26, 10, 32, .8); font-size: 20px; color: var(--text-dim); grid-column: 1 / -1; }
.cp-dlc-note b { color: var(--gold); font-family: var(--f-head); letter-spacing: .04em; }
/* six heroes (base + 5 DLC) must fit the 1080 stage: compact hero tabs */
.cs-tabs { top: 140px; gap: 10px; }
.cs-tab { height: 142px; gap: 18px; padding: 0 22px; }
.cs-tab .cs-medal { width: 86px; height: 86px; font-size: 42px; }
.cs-tab.locked .cs-medal { font-size: 36px; }
.cs-tab-name { font-size: 33px; }
.cs-tab-title { font-size: 21px; margin: 1px 0 5px; }
.cs-tab.locked .cs-tab-title { font-size: 18px; }
