/* Boss Fight — Celestial arena. Shared by production and the standalone preview. */
body.bossfight-page {
    --bf-accent: #f2c14e; --bf-bg: #090d12; --bf-panel: #10151c;
    --bf-line: #ffffff12; --bf-text: #f0ede6; --bf-muted: #9da4ad;
    --bf-phys: #ff6b5e; --bf-magic: #55a8ff;
    margin: 0; padding: 80px 0 0; min-height: 100vh; background: var(--bf-bg); color: var(--bf-text);
    font-family: "Outfit", system-ui, sans-serif; overflow-x: hidden;
}
.bossfight-page * { box-sizing: border-box; }
body.bossfight-page .hidden { display: none !important; }
.bossfight-page :is(button, a, input, select, [tabindex]):focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 5px; }
#bf-bg { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(#090d12d9, #090d12fa 85%), url("../image/bossfight/arena_bossfight.webp") center / cover; }
#bf-vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 60% 10%, color-mix(in srgb, var(--bf-accent) 5%, transparent), transparent 65%); }
#bf-app { position: relative; z-index: 2; width: min(1560px, 100%); margin: 0 auto; padding: 32px 44px 70px; }
.bossfight-page .landing-topbar { background: #0a0e14f2; border-bottom: 1px solid #bfa26b26; box-shadow: 0 8px 24px #0003; }
.bf-loading, .bf-error { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 65vh; text-align: center; color: var(--bf-muted); }
.bf-loading::before { content: ""; width: 42px; height: 42px; border: 1px solid #ffffff18; border-top-color: var(--bf-accent); transform: rotate(45deg); animation: bf-orbit 3s linear infinite; }
.bf-error p { max-width: 520px; }
.bf-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
.bf-eyebrow { margin: 0 0 9px; color: #9099a5; font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.bf-eyebrow span { color: #b39a67; margin: 0 10px; }
.bf-page-heading h2 { margin: 0; font: 400 38px/1.2 "AOW", Georgia, serif; letter-spacing: -.02em; }
.bf-page-heading h2 span { color: var(--bf-accent); }
.bf-season { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .14em; color: #d5c6a6; }
.bf-season > span:last-child { color: var(--bf-muted); letter-spacing: .025em; font-size: 12px; }
.bf-season-divider { height: 20px; width: 1px; background: #ffffff20; margin: 0 8px; }
.bf-live-dot { display: inline-block; width: 5px; height: 5px; background: var(--bf-accent); border-radius: 50%; box-shadow: 0 0 10px color-mix(in srgb, var(--bf-accent) 60%, transparent); flex-shrink: 0; }
/* ---------- gombok ---------- */

.bf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border-radius: 6px; cursor: pointer; text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--bf-accent) 60%, transparent);
    font: 700 .82rem/1 "Outfit", sans-serif; letter-spacing: .08em; text-transform: uppercase;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.bf-btn img { width: 18px; height: 18px; object-fit: contain; }
.bf-btn-primary {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bf-accent) 85%, #fff 0%), color-mix(in srgb, var(--bf-accent) 55%, #000));
    color: #1a1204; border-color: transparent;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--bf-accent) 30%, transparent);
}
.bf-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 26px color-mix(in srgb, var(--bf-accent) 55%, transparent); }
.bf-btn-ghost { background: rgba(255, 255, 255, .05); color: var(--bf-text); border-color: var(--bf-line); }
.bf-btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.bf-btn-sm { padding: 7px 12px; font-size: .72rem; }
.bf-btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }


/* Cinematic encounter and progression rail. */
.bf-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; border: 1px solid #b9a27c38; background: #0e1319; box-shadow: 0 24px 70px #0005; border-radius: 3px; overflow: hidden; --bf-aura-opacity: .14; }
.bf-stage { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 34px 26px; isolation: isolate; overflow: hidden; }
.bf-hero-art, .bf-stage-shade, #bf-vfx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bf-hero-art { z-index: -5; }
.bf-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 63% center; animation: bf-art-breathe 18s ease-in-out infinite alternate; }
.bf-stage-shade { z-index: -3; background: linear-gradient(90deg, #090e16f5 0%, #090e16d9 24%, #090e1660 53%, #090e1600 78%), linear-gradient(0deg, #090e16ee, #090e1600 30%, #090e1600 78%, #090e1670); }
.bf-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bf-kicker { display: inline-flex; align-items: center; gap: 9px; color: #f5e4ba; font-size: 10px; letter-spacing: .2em; font-weight: 600; }
.bf-motion-toggle { padding: 6px 9px; border: 1px solid #ffffff26; border-radius: 2px; background: #090e1690; color: #dbdfe3; cursor: pointer; font: 10px "Outfit", sans-serif; letter-spacing: .05em; }
.bf-hero-info { position: relative; z-index: 2; width: min(430px, 58%); margin-top: 50px; margin-bottom: 36px; }
.bf-element { font-size: 9px; letter-spacing: .22em; color: #c1bdb2; margin-bottom: 16px; }
.bf-hero-info h1 { font: 400 clamp(42px, 4.8vw, 72px)/1 "AOW", Georgia, serif; letter-spacing: -.04em; margin: 0 0 12px; text-shadow: 0 3px 24px #000a; }
.bf-boss-title { margin: 0 0 20px; font: 400 19px/1.3 "AOW", Georgia, serif; color: var(--bf-accent); }
.bf-boss-desc { max-width: 320px; margin: 0 0 30px; color: #b9bec6; font-size: 13px; line-height: 1.8; }
.bf-ability-heading { display: flex; align-items: center; gap: 24px; color: #b7b8bc; font-size: 9px; letter-spacing: .13em; margin-bottom: 12px; }
.bf-ability-heading span { font-size: 9px; color: #808791; }
.bf-abilities { display: flex; gap: 9px; }
.bf-ability { position: relative; display: block; width: 46px; height: 46px; padding: 3px; border: 1px solid #b7a47c69; background: #131821; border-radius: 3px; cursor: help; transition: border-color .2s, transform .2s; }
.bf-ability img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.bf-ability-passive { border-color: var(--bf-accent); margin-right: 7px; }
.bf-ability:hover, .bf-ability:focus-visible { border-color: var(--bf-accent); transform: translateY(-3px); }
.bf-ability i { position: absolute; left: 0; bottom: calc(100% + 10px); width: max-content; max-width: 220px; padding: 8px 12px; border: 1px solid #b7a47c69; background: #10151cf5; color: #eee; font: normal 11px/1.4 "Outfit", sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bf-ability:hover i, .bf-ability:focus-visible i { opacity: 1; }
.bf-stage-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; position: relative; z-index: 2; }
.bf-countdown { display: flex; flex-direction: column; gap: 7px; }
.bf-countdown span { color: #a6a9b0; font-size: 10px; letter-spacing: .055em; }
.bf-countdown b { color: #eae6dd; font: 500 18px "Outfit", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .09em; }
.bf-stage-caption { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.bf-stage-caption span { font-size: 8px; letter-spacing: .25em; color: #bac0c8; }
.bf-stage-caption b { font-size: 10px; letter-spacing: .15em; color: var(--bf-accent); text-transform: uppercase; }
.bf-hero-side { padding: 26px 22px 20px; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid #b9a27c38; background: linear-gradient(145deg, #1b2027, #0d1219 55%); }
.bf-challenge-heading .bf-eyebrow { font-size: 9px; color: #aa9470; }
.bf-challenge-heading h2 { margin: 0 0 6px; font: 400 21px/1.3 "AOW", Georgia, serif; }
.bf-challenge-heading p { margin: 0; color: #929aa5; font-size: 11px; }
.bf-tiers { display: grid; gap: 6px; }
.bf-tier { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ffffff0c; border-radius: 2px; background: #ffffff02; }
.bf-tier-number { width: 25px; color: #8d949e; font: 400 21px "AOW", Georgia, serif; }
.bf-tier-copy { display: flex; flex-direction: column; gap: 2px; }
.bf-tier-copy b { font-size: 11px; letter-spacing: .04em; font-weight: 500; }
.bf-tier-copy > span { font-size: 10px; color: #8b949f; font-variant-numeric: tabular-nums; }
.bf-tier em { margin-left: auto; font-style: normal; text-transform: uppercase; font-size: 8px; letter-spacing: .09em; color: #727c89; }
.bf-tier.is-current { border-color: color-mix(in srgb, var(--bf-accent) 48%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--bf-accent) 10%, transparent), transparent); }
.bf-tier.is-current::before { content: ""; position: absolute; left: -1px; top: 13px; bottom: 13px; width: 2px; background: var(--bf-accent); box-shadow: 0 0 14px var(--bf-accent); }
.bf-tier.is-current :is(.bf-tier-number, em) { color: var(--bf-accent); }
.bf-tier.is-cleared em { color: #8aa99d; }
.bf-tier.is-locked { opacity: .55; }
.bf-fight-card { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.bf-energy { display: flex; align-items: center; gap: 13px; }
.bf-energy img { width: 42px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 9px #e3c76c25); }
.bf-energy-label { font-size: 8px; letter-spacing: .16em; color: #98a1ac; }
.bf-energy-stock { display: flex; align-items: baseline; gap: 6px; }
.bf-energy-stock strong { font: 500 26px/1.1 "Outfit", sans-serif; }
.bf-energy-stock > span { font-size: 12px; color: #657181; }
.bf-energy small { font-size: 10px; color: #9aa4b0; font-variant-numeric: tabular-nums; }
.bf-fight-btn { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px; border: 1px solid #ffe9ab8c; border-radius: 2px; color: #171510; background: linear-gradient(110deg, #e2c58b, #bda06b); box-shadow: inset 0 0 0 3px #1e190b17, 0 5px 24px #d7b57416; cursor: pointer; font: 700 11px "Outfit", sans-serif; letter-spacing: .14em; transition: filter .2s, box-shadow .2s, transform .2s; }
.bf-fight-btn span { font-size: 19px; line-height: .5; }
.bf-fight-btn:hover:not(:disabled) { filter: brightness(1.14); box-shadow: 0 5px 30px #d7b57430; transform: translateY(-1px); }
.bf-fight-btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.8); }
.bf-fight-note { margin: 0; text-align: center; font-size: 9px; line-height: 1.5; color: #929ba6; }
.bf-next { display: flex; gap: 11px; align-items: center; padding-top: 16px; border-top: 1px solid #ffffff0d; }
.bf-next img { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; filter: saturate(.6); border: 1px solid #ffffff20; }
.bf-next small { display: block; color: #8893a1; font-size: 8px; text-transform: uppercase; letter-spacing: .15em; }
.bf-next strong { display: block; margin: 3px 0 1px; font: 400 14px "AOW", Georgia, serif; }
.bf-next span { display: block; color: #828c98; font-size: 10px; }
.bf-intel { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; border: 1px solid #ffffff0b; border-top: 0; background: #11161de6; margin-bottom: 28px; }
.bf-intel > div { padding: 18px 24px; position: relative; }
.bf-intel > div + div::before { content: ""; width: 1px; background: #ffffff12; position: absolute; left: 0; top: 20px; bottom: 20px; }
.bf-intel span { display: block; font-size: 8px; color: #85909e; letter-spacing: .14em; margin-bottom: 7px; }
.bf-intel strong { display: block; font-size: 19px; font-weight: 500; color: #d8dbe1; }
.bf-intel small { font-size: 8px; color: #959ca6; letter-spacing: .08em; margin-left: 3px; }
.bf-intel i { font: 300 18px "Outfit", sans-serif; color: #4f5966; margin: 0 12px; }
.bf-intel-reward { display: flex; gap: 13px; align-items: center; }
.bf-intel-reward img { width: 34px; height: 34px; object-fit: contain; }
.bf-intel-reward strong { color: #dbc18c; }
/* Increasing aura, orbit rings, rays and particle density follow the actual boss tier. */
#bf-vfx { z-index: -1; }
.bf-aura { pointer-events: none; position: absolute; z-index: -2; width: 70%; height: 100%; top: 0; right: -4%; background: radial-gradient(ellipse, var(--bf-accent), transparent 65%); mix-blend-mode: screen; opacity: var(--bf-aura-opacity); animation: bf-aura-breathe 6s ease-in-out infinite; }
.bf-energy-ring { position: absolute; pointer-events: none; z-index: -2; right: 8%; top: 20%; width: 39%; aspect-ratio: 1; border: 1px solid var(--bf-accent); border-radius: 50%; opacity: 0; box-shadow: 0 0 24px color-mix(in srgb, var(--bf-accent) 22%, transparent), inset 0 0 24px color-mix(in srgb, var(--bf-accent) 12%, transparent); }
.bf-energy-ring::after { content: ""; position: absolute; inset: -8px; border: 1px dashed var(--bf-accent); border-radius: 50%; opacity: .5; }
.bf-energy-ring-one { animation: bf-orbit 35s linear infinite; }
.bf-energy-ring-two { right: 4%; top: 14%; width: 47%; animation: bf-orbit 24s linear infinite reverse; }
.bf-energy-rays { position: absolute; inset: -25%; pointer-events: none; z-index: -2; opacity: 0; background: repeating-conic-gradient(from 10deg at 64% 50%, transparent 0deg 18deg, color-mix(in srgb, var(--bf-accent) 12%, transparent) 19deg, transparent 22deg 40deg); mask-image: radial-gradient(ellipse at 64% 50%, #000, transparent 63%); animation: bf-rays 16s ease-in-out infinite alternate; }
.bf-hero[data-tier] { --bf-aura-opacity: .42; border-color: color-mix(in srgb, var(--bf-accent) 60%, transparent); }
.bf-hero[data-tier] .bf-energy-ring-one { opacity: .5; animation-duration: 20s; }
.bf-hero[data-tier] .bf-energy-ring-two { opacity: .3; animation-duration: 14s; }
.bf-hero[data-tier] .bf-energy-rays { opacity: .9; }
.bf-hero[data-tier] .bf-aura { animation-duration: 3.5s; }
.bf-hero[data-tier="2"] { --bf-aura-opacity: .48; }
.bf-hero[data-tier="3"] { --bf-aura-opacity: .54; }
.bf-hero[data-tier="4"] { --bf-aura-opacity: .62; }
.bf-hero.is-vfx-paused *, .bf-hero.is-vfx-paused *::after { animation-play-state: paused !important; }
@keyframes bf-art-breathe { to { transform: scale(1.035); } }
@keyframes bf-aura-breathe { 50% { opacity: calc(var(--bf-aura-opacity) * .55); transform: scale(.93); } }
@keyframes bf-orbit { to { transform: rotate(360deg); } }
@keyframes bf-rays { to { transform: rotate(9deg) scale(1.08); } }
/* ---------- Fülek ---------- */

.bf-tabs { display: flex; align-items: center; gap: 4px; margin: 22px 0 0; padding: 0 4px; border-bottom: 1px solid var(--bf-line); overflow-x: auto; scrollbar-width: none; }
.bf-tabs::-webkit-scrollbar { display: none; }
.bf-tabs button {
    position: relative; flex: 0 0 auto; padding: 14px 22px; border: 0; background: none; cursor: pointer;
    color: var(--bf-muted); font: 700 .86rem/1 "Outfit", sans-serif; letter-spacing: .1em; text-transform: uppercase;
    transition: color .2s;
}
.bf-tabs button:hover { color: var(--bf-text); }
.bf-tabs button.is-active { color: var(--bf-accent); }
.bf-tabs button.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--bf-accent); box-shadow: 0 0 14px var(--bf-accent); }
.bf-cec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--bf-line); border-radius: 999px; background: rgba(0, 0, 0, .4); flex: 0 0 auto; }
.bf-cec img { width: 24px; height: 24px; object-fit: contain; }
.bf-cec b { font-variant-numeric: tabular-nums; }

.bf-panel { padding: 22px clamp(12px, 2vw, 26px) 28px; border: 1px solid var(--bf-line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--bf-panel); backdrop-filter: blur(8px); min-height: 320px; }
.bf-panel h2 { margin: 0 0 4px; font: 400 1.5rem/1.2 "AOW", serif; letter-spacing: .04em; }
.bf-subtitle { margin: 26px 0 12px; font: 700 .9rem/1 "Outfit", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-muted); }
.bf-empty { padding: 26px; text-align: center; color: var(--bf-muted); list-style: none; }

.bf-subtabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.bf-subtabs button { position: relative; padding: 9px 18px; border: 1px solid var(--bf-line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--bf-muted); cursor: pointer; font: 700 .8rem/1 "Outfit", sans-serif; letter-spacing: .06em; }
.bf-subtabs button.is-active { border-color: var(--bf-accent); color: var(--bf-accent); background: color-mix(in srgb, var(--bf-accent) 12%, transparent); }
.bf-subtabs button.is-locked:not(.is-active) { opacity: .6; }
.bf-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ff5b5b; box-shadow: 0 0 8px #ff5b5b; }

.bf-track-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.bf-track-head p { margin: 0; max-width: 62ch; color: var(--bf-muted); font-size: .86rem; line-height: 1.5; }
.bf-track-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bf-track-score small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-muted); }
.bf-track-score strong { display: inline-flex; align-items: center; gap: 8px; font: 700 1.8rem/1 "Outfit", sans-serif; font-variant-numeric: tabular-nums; }
.bf-track-score strong img { width: 28px; height: 28px; }
.bf-track-score span { color: var(--bf-muted); font-size: .78rem; }

.bf-progress { height: 10px; margin: 6px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bf-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bf-accent) 60%, #000), var(--bf-accent)); box-shadow: 0 0 14px var(--bf-accent); transition: width .6s ease; }
.bf-lock-note { margin: 0 0 14px; padding: 9px 14px; border-radius: 8px; border: 1px solid rgba(255, 190, 90, .35); background: rgba(255, 190, 90, .08); color: #ffd79a; font-size: .84rem; }

.bf-milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bf-milestone { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--bf-line); border-radius: 10px; background: rgba(0, 0, 0, .3); transition: transform .15s, border-color .2s; }
.bf-milestone header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bf-milestone header span { color: var(--bf-muted); font-size: .8rem; }
.bf-milestone header b { font-variant-numeric: tabular-nums; }
.bf-milestone header small { margin-left: auto; color: var(--bf-muted); font-size: .7rem; }
.bf-milestone footer { margin-top: auto; }
.bf-milestone.is-ready { border-color: var(--bf-accent); background: color-mix(in srgb, var(--bf-accent) 10%, rgba(0, 0, 0, .3)); box-shadow: 0 0 22px color-mix(in srgb, var(--bf-accent) 22%, transparent); }
.bf-milestone.is-claimed { opacity: .55; }
.bf-milestone.is-locked { opacity: .85; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--bf-line); font-size: .78rem; }
.bf-chip img { width: 18px; height: 18px; object-fit: contain; }
.bf-chip b { font-variant-numeric: tabular-nums; }
.bf-claimed { color: #6fe39b; font-size: .8rem; font-weight: 600; }
.bf-need { color: var(--bf-muted); font-size: .74rem; }
.bf-milestone .bf-btn { width: 100%; }
.bf-track-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.bf-cec-rule { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--bf-line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: var(--bf-muted); font-size: .84rem; line-height: 1.45; }
.bf-cec-rule img { width: 26px; height: 26px; flex: 0 0 auto; }
.bf-cec-rule b { color: var(--bf-text); }

/* ---------- Shop ---------- */

.bf-shop-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.bf-shop-grid-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bf-shop-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--bf-line); border-radius: 12px; background: rgba(0, 0, 0, .32); transition: transform .18s, box-shadow .2s; }
.bf-shop-card:hover { transform: translateY(-3px); }
.bf-shop-skin.tier-epic { border-color: rgba(170, 100, 255, .5); box-shadow: 0 0 20px rgba(170, 100, 255, .12); }
.bf-shop-skin.tier-legendary { border-color: rgba(255, 185, 60, .7); box-shadow: 0 0 28px rgba(255, 185, 60, .22); background: linear-gradient(180deg, rgba(255, 185, 60, .1), rgba(0, 0, 0, .32)); }
.bf-shop-skin.is-owned { opacity: .6; }
.bf-shop-art { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: rgba(0, 0, 0, .4); }
.bf-shop-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bf-shop-meta { display: flex; flex-direction: column; gap: 2px; min-height: 52px; }
.bf-shop-meta strong { font-size: .94rem; }
.bf-shop-meta small { color: var(--bf-muted); font-size: .76rem; line-height: 1.35; }
.bf-shop-meta em { font-style: normal; color: var(--bf-muted); font-size: .72rem; margin-top: 3px; }
.bf-rarity { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c9a0ff; }
.bf-shop-skin.tier-legendary .bf-rarity { color: #ffc65c; }
.bf-shop-item { flex-direction: row; align-items: center; }
.bf-shop-item .bf-shop-meta { flex: 1; min-height: 0; }
.bf-shop-icon { flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.bf-shop-icon img { width: 40px; height: 40px; object-fit: contain; }
.bf-inline-icon { width: 18px; height: 18px; vertical-align: -4px; }

/* ---------- Toplista ---------- */

.bf-top-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.bf-top-reward { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--bf-line); border-radius: 10px; background: rgba(0, 0, 0, .28); }
.bf-top-reward.rank-1 { border-color: rgba(255, 205, 80, .5); }
.bf-top-reward.rank-2 { border-color: rgba(200, 210, 225, .4); }
.bf-top-reward.rank-3 { border-color: rgba(205, 140, 90, .45); }
.bf-top-reward > span { display: flex; flex-wrap: wrap; gap: 5px; }
.bf-lb-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bf-lb-controls select, .bf-lb-controls input {
    padding: 10px 12px; border: 1px solid var(--bf-line); border-radius: 8px; background: rgba(0, 0, 0, .4); color: var(--bf-text);
    font: 500 .88rem "Outfit", sans-serif; min-width: 0;
}
.bf-lb-controls select { flex: 0 1 260px; }
.bf-lb-controls input { flex: 1 1 200px; }
.bf-lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; transition: opacity .2s; }
.bf-lb-list.is-loading { opacity: .45; }
.bf-lb-row { display: grid; grid-template-columns: 56px 40px minmax(0, 1fr) 80px 120px; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--bf-line); border-radius: 8px; background: rgba(0, 0, 0, .28); }
.bf-lb-row.rank-1 { background: linear-gradient(90deg, rgba(255, 205, 80, .16), rgba(0, 0, 0, .28)); border-color: rgba(255, 205, 80, .4); }
.bf-lb-row.rank-2 { background: linear-gradient(90deg, rgba(200, 210, 225, .12), rgba(0, 0, 0, .28)); }
.bf-lb-row.rank-3 { background: linear-gradient(90deg, rgba(205, 140, 90, .14), rgba(0, 0, 0, .28)); }
.bf-lb-row.is-me { border-color: var(--bf-accent); box-shadow: 0 0 16px color-mix(in srgb, var(--bf-accent) 30%, transparent); }
.bf-lb-rank { font-weight: 700; color: var(--bf-muted); }
.bf-lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--bf-line); }
.bf-lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bf-lb-name em { font-style: normal; color: var(--bf-accent); font-size: .78rem; }
.bf-lb-tier { color: var(--bf-muted); font-size: .78rem; text-align: right; }
.bf-lb-damage { text-align: right; font-variant-numeric: tabular-nums; }
.bf-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; color: var(--bf-muted); font-size: .84rem; }

/* ---------- Előzmények ---------- */

.bf-history-list { display: flex; flex-direction: column; gap: 10px; }
.bf-history-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--bf-line); border-left: 3px solid var(--bf-accent); border-radius: 10px; background: rgba(0, 0, 0, .28); cursor: pointer; }
.bf-history-card:hover { background: rgba(255, 255, 255, .05); }
.bf-history-card > img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.bf-history-main small, .bf-history-rank small { display: block; color: var(--bf-muted); font-size: .76rem; margin-top: 2px; }
.bf-history-rank { text-align: right; }
.bf-history-rank b { font-size: 1.15rem; }
.bf-history-cec { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bf-history-cec img { width: 20px; height: 20px; }
.bf-history-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bf-history-top:empty { display: none; }
.bf-history-top-row { font-size: .84rem; color: var(--bf-text); }

/* ---------- Modal / toast ---------- */

#bf-modal-root { position: relative; z-index: 200; }
.bf-modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 5, 10, .78); backdrop-filter: blur(6px); animation: bf-fade .2s ease; }
@keyframes bf-fade { from { opacity: 0; } to { opacity: 1; } }
.bf-modal { width: min(420px, 100%); padding: 24px; border: 1px solid var(--bf-line); border-radius: 14px; background: #0b121b; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.bf-modal h3 { margin: 0 0 12px; font: 400 1.3rem "AOW", serif; }
.bf-modal-body p { margin: 0 0 16px; color: var(--bf-muted); line-height: 1.5; }
.bf-modal-body b { color: var(--bf-text); }
.bf-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.bf-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 22px; border-radius: 8px; background: #101a26; border: 1px solid var(--bf-line); font-size: .9rem; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.bf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.bf-toast-success { border-color: rgba(111, 227, 155, .6); }
.bf-toast-error { border-color: rgba(255, 110, 110, .6); }

/* ---------- Eredmény-popup ---------- */

.bf-result-overlay { opacity: 0; transition: opacity .3s; overflow-y: auto; align-items: flex-start; }
.bf-result-overlay.is-visible { opacity: 1; }
.bf-result {
    position: relative; width: min(980px, 100%); margin: auto; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr);
    border: 1px solid color-mix(in srgb, var(--bf-accent) 55%, transparent); border-radius: 16px; overflow: hidden;
    background: linear-gradient(120deg, color-mix(in srgb, var(--bf-accent) 16%, #070c14), #070c14 55%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .8), 0 0 80px color-mix(in srgb, var(--bf-accent) 22%, transparent);
    transform: scale(.94) translateY(12px); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2);
}
.bf-result-overlay.is-visible .bf-result { transform: none; }
.bf-result-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bf-result-fx i { position: absolute; bottom: -12px; border-radius: 50%; background: var(--bf-accent); box-shadow: 0 0 10px var(--bf-accent); opacity: 0; animation: bf-rise linear infinite; }
@keyframes bf-rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-110vh) scale(.4); opacity: 0; } }
.bf-result-boss { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding: 18px; }
.bf-result-boss img { max-width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--bf-accent) 55%, transparent)); }
.bf-result-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 26px 8px; }
.bf-result-outcome { margin: 0; font: 400 clamp(1.8rem, 3.6vw, 2.6rem)/1 "AOW", serif; letter-spacing: .1em; }
.bf-result.is-won .bf-result-outcome { color: #ffe08a; text-shadow: 0 0 26px rgba(255, 210, 90, .6); }
.bf-result-team { display: flex; gap: 8px; }
.bf-result-team img { width: clamp(40px, 6vw, 58px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in srgb, var(--bf-accent) 60%, transparent); }

.bf-result-damage { display: flex; flex-direction: column; gap: 2px; }
.bf-result-damage small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bf-muted); }
.bf-result-damage strong { font: 700 clamp(2.6rem, 7vw, 4.6rem)/1 "Outfit", sans-serif; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 24px color-mix(in srgb, var(--bf-accent) 70%, transparent); }
.bf-result-damage span { color: var(--bf-muted); font-size: .84rem; }
.bf-newbest { color: #6fe39b; font-weight: 700; }
/* a sebzés nagyságával erősödő hatások */
.bf-dmg-lv-2 .bf-result-damage strong { text-shadow: 0 0 34px var(--bf-accent), 0 0 8px #fff; }
.bf-dmg-lv-3 .bf-result-damage strong { text-shadow: 0 0 44px var(--bf-accent), 0 0 12px #fff; animation: bf-throb 1.6s ease-in-out infinite; }
.bf-dmg-lv-4 .bf-result-damage strong { text-shadow: 0 0 60px var(--bf-accent), 0 0 20px #fff; animation: bf-throb 1.1s ease-in-out infinite; }
.bf-dmg-lv-5 .bf-result-damage strong {
    background: linear-gradient(180deg, #fff, #ffd76a 60%, #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 190, 70, .85)); animation: bf-throb .8s ease-in-out infinite;
}
.bf-dmg-lv-4 .bf-result, .bf-dmg-lv-5.bf-result { box-shadow: 0 30px 100px rgba(0, 0, 0, .8), 0 0 140px color-mix(in srgb, var(--bf-accent) 45%, transparent); }
@keyframes bf-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
body.bf-shake { animation: bf-shake .7s ease; }
@keyframes bf-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

.bf-result-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bf-result-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 76px; align-items: center; gap: 10px; }
.bf-result-row > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.bf-result-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.bf-result-bars { display: flex; flex-direction: column; gap: 3px; }
.bf-bar { position: relative; display: block; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bf-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; animation: bf-bar-grow 1.1s .3s ease forwards; }
@keyframes bf-bar-grow { to { width: var(--w); } }
.bf-bar-phys i { background: linear-gradient(90deg, #9b2c25, var(--bf-phys)); }
.bf-bar-magic i { background: linear-gradient(90deg, #2a5ea8, var(--bf-magic)); }
.bf-bar em { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 .62rem/1 "Outfit", sans-serif; font-style: normal; text-shadow: 0 1px 2px #000; }
.bf-result-legend { display: flex; gap: 16px; font-size: .72rem; color: var(--bf-muted); }
.bf-result-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bf-result-legend .phys::before { background: var(--bf-phys); }
.bf-result-legend .magic::before { background: var(--bf-magic); }

.bf-result-tier { display: flex; align-items: center; gap: 12px; font: 700 1.15rem/1 "Outfit", sans-serif; }
.bf-result-tier i { color: var(--bf-accent); font-style: normal; }
.bf-result-tier span.is-up { color: #6fe39b; text-shadow: 0 0 14px rgba(111, 227, 155, .6); }
.bf-result-tier em { font-style: normal; font-size: .76rem; font-weight: 600; letter-spacing: .1em; color: var(--bf-muted); text-transform: uppercase; }
.bf-result-rewards { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-reward { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 88px; padding: 10px; border: 1px solid color-mix(in srgb, var(--bf-accent) 40%, transparent); border-radius: 10px; background: rgba(0, 0, 0, .35); animation: bf-pop .5s .6s backwards cubic-bezier(.2, .9, .3, 1.4); }
.bf-reward img { width: 36px; height: 36px; object-fit: contain; }
.bf-reward b { font-size: 1.05rem; }
.bf-reward small { color: var(--bf-muted); font-size: .68rem; letter-spacing: .06em; }
@keyframes bf-pop { from { transform: scale(.5); opacity: 0; } }
.bf-reward-none { color: var(--bf-muted); font-size: .86rem; }
.bf-result-hint { margin: 0; color: var(--bf-accent); font-size: .84rem; }
.bf-result-warning { margin: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 190, 90, .4); background: rgba(255, 190, 90, .08); color: #ffd79a; font-size: .8rem; }
.bf-result-close { align-self: flex-start; padding: 13px 34px; }

/* Supporting panels and result dialog. */
@media (max-width: 1280px) {
    .bf-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .bf-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-shop-grid-items, .bf-top-rewards { grid-template-columns: 1fr; }
    .bf-lb-row { grid-template-columns: 44px 34px minmax(0, 1fr) auto; }
    .bf-lb-tier { display: none; }
    .bf-history-card { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .bf-history-cec { display: none; }
    .bf-result { grid-template-columns: 1fr; }
    .bf-result-boss { padding-bottom: 0; }
    .bf-result-boss img { max-height: 200px; }
    .bf-result-main { padding: 8px 18px 22px; }
    .bf-track-score { align-items: flex-start; }
}
@media (max-width: 520px) {
    .bf-shop-grid { gap: 10px; }
    .bf-result-row { grid-template-columns: 32px minmax(0, 1fr) 64px; gap: 8px; }
    .bf-result-row > img { width: 32px; height: 32px; }
}
/* Unified quieter surfaces keep the encounter artwork in focus. */
.bf-tabs { margin: 0; gap: 12px; padding: 0 0 12px; overflow-x: auto; }
.bf-tabs button { padding: 15px 16px; font-size: 10px; letter-spacing: .11em; }
.bf-tabs button:first-child { padding-left: 0; }
.bf-tabs button.is-active { color: #e0c798; }
.bf-tabs button.is-active::after { left: 0; right: 0; height: 2px; background: #d5b47b; box-shadow: none; }
.bf-cec { padding: 7px 12px; border-radius: 3px; background: #121922; border-color: #c2a77326; gap: 8px; }
.bf-cec > span { font-size: 8px; letter-spacing: .13em; color: #8793a0; margin-right: 5px; }
.bf-cec b { font-size: 14px; color: #e1c794; }
.bf-cec img { width: 22px; height: 22px; }
.bf-panel { padding: 26px 0 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; }
.bf-subtabs { gap: 6px; margin-bottom: 24px; }
.bf-subtabs button { border-radius: 2px; padding: 9px 18px; font-size: 10px; letter-spacing: .08em; background: #131a23; }
.bf-subtabs button.is-active { background: #c9ad7314; color: #e1c794; border-color: #c9ad7355; }
.bf-lock-icon { width: 11px; height: 11px; object-fit: contain; vertical-align: -1px; margin-left: 5px; }
.bf-dot { width: 4px; height: 4px; background: #d5b47b; box-shadow: 0 0 6px #d5b47b55; }
.bf-track-head { margin-bottom: 20px; }
.bf-panel h2 { font-size: 22px; }
.bf-track-head p { font-size: 12px; max-width: 72ch; color: #87929f; margin-top: 7px; }
.bf-track-score { display: grid; grid-template-columns: auto auto; gap: 3px 8px; align-items: baseline; }
.bf-track-score small { grid-column: 1 / -1; text-align: right; font-size: 8px; }
.bf-track-score strong { font-size: 27px; color: #e0c798; font-weight: 500; }
.bf-track-score span { font-size: 11px; }
.bf-progress { height: 4px; margin-bottom: 24px; background: #ffffff0e; }
.bf-progress i { background: linear-gradient(90deg, #796546, #ddc18d); box-shadow: 0 0 12px #ddc18d33; }
.bf-milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bf-milestone { border-radius: 3px; padding: 18px; background: linear-gradient(145deg, #1a212b88, #10151d); gap: 18px; }
.bf-milestone header { gap: 8px; }
.bf-milestone header span { font: 400 12px "AOW", serif; color: #ad9570; }
.bf-milestone header b { font-size: 12px; font-weight: 500; }
.bf-milestone header small { font-size: 9px; }
.bf-milestone.is-ready { border-color: #c6a36a55; background: linear-gradient(135deg, #b3935420, #10151d 70%); box-shadow: none; }
.bf-milestone.is-ready:hover { border-color: #c6a36aaa; transform: translateY(-2px); }
.bf-chip { border: 0; background: #ffffff04; border-radius: 2px; padding: 4px 6px 4px 0; gap: 4px; font-size: 10px; }
.bf-chip img { width: 21px; height: 21px; }
.bf-chip b { font-weight: 500; }
.bf-btn { border-radius: 2px; font-size: 10px; }
.bf-btn-primary { background: linear-gradient(115deg, #dfc18c, #b69762); border: 1px solid #e2c58b44; color: #1b170f; box-shadow: none; }
.bf-btn-primary:hover:not(:disabled) { box-shadow: 0 4px 20px #d4b57a26; }
.bf-milestone .bf-btn-primary { color: #ddc18d; background: #c5a76c0b; border-color: #c5a76c45; padding: 10px; }
.bf-milestone .bf-btn-primary:hover { background: #c5a76c20; }
.bf-need, .bf-claimed { font-size: 10px; }
.bf-cec-rule { border-radius: 3px; background: #121922; font-size: 11px; color: #8793a0; flex-wrap: wrap; }
.bf-shop-card, .bf-top-reward, .bf-lb-row, .bf-history-card { border-radius: 3px; background-color: #111821; }
.bf-shop-art { border-radius: 2px; }
.bf-shop-item { flex-wrap: wrap; }
.bf-shop-skin.tier-epic { box-shadow: none; border-color: #ac85d940; }
.bf-shop-skin.tier-legendary { box-shadow: none; border-color: #d4b47780; }
.bf-modal { border-radius: 4px; background: #111821; }
.bf-result { border-radius: 4px; background: linear-gradient(145deg, #1b222c, #0d121a 65%); }
.bf-result-boss img { border-radius: 2px; }
.bf-reward { border-radius: 3px; }
.bf-top-medal img { object-fit: contain; filter: drop-shadow(0 0 20px #e6be6b55); }
#bft-bar { position: fixed; bottom: 12px; left: 12px; z-index: 40; width: min(360px, calc(100vw - 24px)); padding: 12px 15px; border: 1px solid #b49a6755; background: #101720f5; color: #ccd1db; box-shadow: 0 8px 30px #0008; font: 12px/1.5 "Outfit", sans-serif; border-radius: 3px; }
#bft-bar summary { color: #e1c38d; cursor: pointer; letter-spacing: .08em; font-size: 10px; }
#bft-bar p { font-size: 11px; color: #9ca8b7; }
#bft-bar label { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
#bft-bar select { width: 180px; padding: 5px 9px; color: #eee; background: #1d2633; border: 1px solid #ffffff20; }
@media (min-width: 1600px) { .bf-stage { min-height: 610px; } }
@media (max-width: 1280px) {
    #bf-app { padding: 26px 28px 60px; }
    .bf-hero { grid-template-columns: minmax(0, 1fr) 270px; }
    .bf-hero-side { grid-column: auto; display: flex; padding-inline: 18px; }
    .bf-hero-info { width: 66%; }
    .bf-stage { padding-inline: 26px; }
    .bf-intel > div { padding: 17px; }
    .bf-intel strong { font-size: 17px; }
    .bf-intel i { margin: 0 6px; }
    .bf-milestones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bf-milestone { padding: 12px; }
    .bf-milestone header small { margin-left: 0; }
}
@media (max-width: 1000px) {
    .bf-hero { grid-template-columns: minmax(0, 1fr); }
    .bf-stage { min-height: 540px; }
    .bf-hero-info { width: 50%; }
    .bf-hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; border-left: 0; border-top: 1px solid #b9a27c38; padding: 22px 26px; }
    .bf-challenge-heading { grid-column: 1; }
    .bf-tiers { grid-column: 1; grid-row: 2 / 4; }
    .bf-fight-card { grid-column: 2; grid-row: 1 / 3; margin-top: 0; justify-content: center; }
    .bf-hero-side .bf-next { grid-column: 2; grid-row: 3; }
    .bf-intel { grid-template-columns: 1fr 1fr; }
    .bf-intel > div:nth-child(n+3) { border-top: 1px solid #ffffff0b; }
    .bf-intel > div:nth-child(3)::before { display: none; }
    .bf-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-milestone { padding: 18px; }
}
@media (max-width: 680px) {
    body.bossfight-page { padding-top: 68px; }
    #bf-app { padding: 20px 16px 75px; }
    .bf-page-heading { margin-bottom: 18px; }
    .bf-page-heading h2 { font-size: 30px; }
    .bf-eyebrow { font-size: 8px; letter-spacing: .1em; }
    .bf-eyebrow span { margin: 0 5px; }
    .bf-season { font-size: 8px; letter-spacing: .05em; }
    .bf-season > span:last-child, .bf-season-divider { display: none; }
    .bf-hero { text-align: left; }
    .bf-stage { padding: 20px; min-height: 580px; }
    .bf-hero-art img { max-height: none; object-position: 61% center; }
    .bf-stage-shade { background: linear-gradient(0deg, #090e16 0%, #090e16f5 20%, #090e16b0 48%, #090e1610 78%, #090e1670); }
    .bf-hero-info { width: 100%; margin-top: 170px; margin-bottom: 26px; }
    .bf-hero-info h1 { font-size: 45px; }
    .bf-element { font-size: 8px; margin-bottom: 10px; }
    .bf-boss-title { font-size: 18px; margin-bottom: 12px; color: color-mix(in srgb, var(--bf-accent) 75%, white); }
    .bf-boss-desc { font-size: 12px; margin: 0 0 22px; max-width: 340px; }
    .bf-abilities { justify-content: flex-start; }
    .bf-stage-caption { max-width: 130px; }
    .bf-stage-caption b { font-size: 8px; }
    .bf-hero-side { padding: 22px 20px; gap: 18px; grid-template-columns: 1fr; }
    .bf-challenge-heading, .bf-tiers, .bf-fight-card, .bf-hero-side .bf-next { grid-row: auto; grid-column: 1; }
    .bf-tiers { grid-template-columns: 1fr 1fr; }
    .bf-tier { flex-wrap: wrap; gap: 7px; padding: 10px; }
    .bf-tier em { flex: 0 0 100%; margin-left: 32px; font-size: 7px; }
    .bf-fight-card { gap: 14px; }
    .bf-energy { justify-content: center; }
    .bf-fight-btn { padding: 20px; }
    .bf-intel > div { padding: 16px 12px; }
    .bf-intel span { font-size: 7px; letter-spacing: .06em; }
    .bf-intel strong { font-size: 16px; }
    .bf-intel small { font-size: 7px; }
    .bf-intel-reward { gap: 6px; }
    .bf-intel-reward img { width: 25px; height: 25px; }
    .bf-tabs { gap: 4px; flex-wrap: wrap; overflow: visible; }
    .bf-tabs button { padding: 13px 9px; font-size: 8px; letter-spacing: .045em; }
    .bf-cec { margin: 8px 0 0 auto; }
    .bf-panel h2 { font-size: 19px; }
    .bf-track-score small { text-align: left; }
    .bf-track-score strong { font-size: 24px; }
    .bf-milestone { padding: 12px; gap: 12px; }
    .bf-milestone header b { font-size: 11px; }
    .bf-subtabs button { padding: 9px 13px; }
    .bf-shop-grid { grid-template-columns: 1fr 1fr; }
    .bf-shop-grid-items { grid-template-columns: 1fr; }
    .bf-lb-controls input { width: 100%; }
    .bf-lb-row { padding: 10px 8px; gap: 7px; grid-template-columns: 28px 28px minmax(0, 1fr) auto; }
    .bf-lb-avatar { width: 28px; height: 28px; }
    .bf-lb-name, .bf-lb-damage { font-size: 11px; }
}
@media (max-width: 380px) { .bf-milestones { grid-template-columns: 1fr; } .bf-stage { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) {
    .bossfight-page *, .bossfight-page *::before, .bossfight-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    #bf-vfx { display: none; }
    .bf-motion-toggle { display: none; }
}
