/* Beasties: Frostfest page (inc/beasties-frostfest.php, assets/js/beasties-frostfest.js).
 * The app's event look (Home/EventAlbum.swift, Home/FrostFestViews.swift): night sky 070B26 → 1F2668 with northern
 * lights, sticker outlines #0e0b1a, panel #241e45, well #1a1533, ice #9fe3ff, zap #ffd400,
 * rarity glow common #6fc8ff · rare #a77bff · epic #ff5fb8 · legendary #ffc83a. */

.bff-scene, .bff-hero, .bff-odds, .bff-list, .bff-rates {
	--ink: #ede7ff; --muted-app: #8f86b8; --panel: #241e45; --well: #1a1533; --outline: #0e0b1a; --zap: #ffd400; --ice: #9fe3ff;
}
.bff-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.bff-i { width: 1em; height: 1em; flex: none; }
.bff-ic { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -.25em; flex: none; }
.bff-ic.is-big { width: 54px; height: 54px; }
.bff-star { color: var(--zap); }

/* ---------- sky (phone + boards) ---------- */
.bff-sky, .bff-aurora, .bff-snowfall { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.bff-sky { background: linear-gradient(180deg, #070b26, #111a4a 55%, #1f2668); }
.bff-aurora {
	background: radial-gradient(60% 22% at 30% 8%, rgba(124, 255, 196, .32), transparent 70%),
		radial-gradient(55% 18% at 72% 12%, rgba(167, 123, 255, .3), transparent 70%),
		radial-gradient(40% 14% at 50% 4%, rgba(95, 210, 255, .3), transparent 70%);
	animation: bff-aurora 9s ease-in-out infinite alternate;
}
@keyframes bff-aurora { to { transform: translateX(4%) scaleY(1.15); opacity: .75; } }
.bff-snowfall {
	background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1.2px, transparent 1.6px), radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1.4px);
	background-size: 46px 46px, 31px 31px; background-position: 0 0, 13px 7px;
	animation: bff-snow 14s linear infinite; opacity: .5;
}
@keyframes bff-snow { to { background-position: 18px 460px, 0 310px; } }

.bff-phone .bff-gx { position: relative; isolation: isolate; color: var(--ink); background: #070b26; }
.bff-phone .gx-status, .bff-phone .gx-home { position: relative; z-index: 1; }
.bff-board { position: relative; isolation: isolate; max-width: 460px; margin: 0 auto; border-radius: 28px; overflow: hidden; color: var(--ink); box-shadow: 0 30px 70px -24px rgba(7, 11, 38, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.bff-board-in { position: relative; padding: 22px 18px; }

/* ---------- small parts ---------- */
.bff-pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--panel); border: 2px solid var(--outline); font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.bff-pill .bff-ic { width: 22px; height: 22px; }
.bff-pill.is-bump { animation: bff-bump .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bff-bump { 40% { transform: scale(1.15); } }
.bff-sticker { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--zap); color: var(--outline); border: 2px solid var(--outline); font-family: var(--display); font-weight: 800; font-size: .95rem; white-space: nowrap; transform: rotate(-5deg); line-height: 1.2; }
.bff-bar { display: block; position: relative; height: 10px; border-radius: 999px; background: var(--well); border: 1.5px solid var(--outline); overflow: hidden; }
.bff-bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ice), #4fa8f0); transition: width .35s; }
.bff-panel { position: relative; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); border-radius: 22px; padding: 14px; }
.bff-panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.bff-panel-h b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.bff-panel-h small { color: var(--muted-app); font-weight: 600; }

/* ---------- snow globe (21-frame strip) ---------- */
.bff-globe { position: relative; display: block; aspect-ratio: 300 / 320; background-size: 2100% 100%; background-position: calc(var(--f, 0) * 5%) 0; background-repeat: no-repeat; }
.bff-globe-n { position: absolute; left: 0; right: 0; bottom: 19.5%; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(.8rem, 6cqi, 1.3rem); line-height: 1; color: var(--zap); text-shadow: 0 1.5px 0 rgba(14, 11, 26, .6); }
.bff-globe.is-shake { animation: bff-shake .09s ease-in-out 9 alternate; transform-origin: 50% 100%; }
@keyframes bff-shake { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.bff-tap { position: absolute; top: 8%; right: 4%; transform: rotate(8deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); z-index: 3; }
.is-ready .bff-tap { transform: rotate(8deg) scale(1); }

/* ---------- cards (AlbumCard) ---------- */
.bff-card { --w: 64px; position: relative; display: inline-block; width: var(--w); aspect-ratio: 1 / 1.38; border-radius: calc(var(--w) * .16); flex: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--g) 65%, #fff), var(--g), color-mix(in srgb, var(--g) 65%, #000));
	border: 2.5px solid var(--outline); box-sizing: border-box; transition: transform .3s; }
.bff-card:not(.is-common).is-have { box-shadow: 0 0 14px color-mix(in srgb, var(--g) 70%, transparent); }
.bff-card-in { position: absolute; inset: 6% 6% 18%; border-radius: calc(var(--w) * .1); background: radial-gradient(circle, rgba(255, 255, 255, .55), color-mix(in srgb, var(--g) 25%, transparent) 75%); overflow: hidden; }
.bff-card .bff-mon { position: absolute; inset: -8% -10% -2%; }
.bff-card .bff-mon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bff-card .bff-mon.is-miss, .bff-card .bff-q { opacity: 0; }
.bff-q { position: absolute; left: 50%; top: 46%; width: 42%; height: 42%; transform: translate(-50%, -50%); color: color-mix(in srgb, var(--g) 60%, transparent); }
.bff-gems { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; gap: 2px; color: #fff; }
.bff-gems .bff-i { width: calc(var(--w) * .12); height: calc(var(--w) * .12); }
.bff-card.is-miss { background: var(--well); border: 2.5px dashed color-mix(in srgb, var(--g) 75%, transparent); box-shadow: none; }
.bff-card.is-miss .bff-card-in { background: rgba(0, 0, 0, .25); }
.bff-card.is-miss .bff-mon.is-have { opacity: 0; }
.bff-card.is-miss .bff-mon.is-miss { opacity: 1; }
.bff-card.is-miss .bff-q { opacity: 1; }
.bff-card.is-miss .bff-gems { color: color-mix(in srgb, var(--g) 70%, transparent); }
.bff-card.is-gold::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; border: 3.5px solid transparent; background: linear-gradient(135deg, #fff3b0, #f0b429, #b9770e) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.bff-foil { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.bff-card.is-have:is(.is-epic, .is-legendary) .bff-foil::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), rgba(156, 255, 244, .35), transparent); transform: rotate(20deg); mix-blend-mode: screen; animation: bff-foil 2.9s linear infinite; }
@keyframes bff-foil { to { left: 130%; } }
.bff-new { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-6deg) scale(0); padding: 1px 7px; border-radius: 999px; background: var(--zap); color: var(--outline); border: 2px solid var(--outline); font-style: normal; font-family: var(--display); font-weight: 800; font-size: .72rem; white-space: nowrap; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.bff-card.is-fresh.is-on .bff-new, .bff-card.is-justnew .bff-new { transform: translateX(-50%) rotate(-6deg) scale(1); }
.bff-card.is-pop { animation: bff-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bff-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } }

/* card back (CardBack) */
.bff-back { --w: 64px; position: relative; display: inline-grid; place-items: center; width: var(--w); aspect-ratio: 1 / 1.38; border-radius: calc(var(--w) * .16); border: 2.5px solid var(--outline); box-sizing: border-box;
	background: linear-gradient(180deg, #6a4bff, #3fa9ff, #9cfff4); flex: none; }
.bff-back::before { content: ""; position: absolute; inset: 8%; border-radius: calc(var(--w) * .1); border: 1.5px solid rgba(255, 255, 255, .5); }
.bff-back i { display: grid; place-items: center; width: 50%; aspect-ratio: 1; border-radius: 50%; background: rgba(14, 11, 26, .35); color: #fff; font-style: normal; font-family: var(--display); font-weight: 800; font-size: calc(var(--w) * .32); }
.bff-back:not(.is-common) { background: linear-gradient(180deg, color-mix(in srgb, var(--g) 70%, #fff), var(--g), color-mix(in srgb, var(--g) 60%, #000)); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--g) 75%, transparent); animation: bff-glow 1.6s ease-in-out infinite; }
@keyframes bff-glow { 50% { box-shadow: 0 0 26px 8px color-mix(in srgb, var(--g) 85%, transparent); transform: scale(1.03); } }

/* moving parts */
.bff-mon { position: relative; display: block; overflow: hidden; aspect-ratio: 1; }
.bff-mon > img { display: block; width: 100%; height: auto; }
.bff-mon > img.bff-frames { position: absolute; top: 0; left: 0; width: 1200%; max-width: none; height: 100%; animation: bff-frames 1.4s steps(12) infinite; }
.bff-mon.is-anim > img:first-child { visibility: hidden; }
@keyframes bff-frames { to { transform: translateX(-100%); } }

/* ---------- hero: event sheet ---------- */
.bff-hero { max-width: 340px; margin: 0 auto; }
.bff-hero .bst-phone { max-width: 320px; }
.bff-sheet { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; min-height: 0; container-type: inline-size; }
.bff-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 2px; }
.bff-top .bff-pill { height: 30px; font-size: .9rem; }
.bff-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel); border: 2px solid var(--outline); color: var(--ink); font-size: 18px; }
.bff-herostage { position: relative; width: 70%; margin-top: -2px; }
.bff-gift { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); perspective: 600px; pointer-events: none; z-index: 4; }
.bff-gift > span { --w: 92px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.bff-hero.is-gift .bff-gift-back { transform: translate(-50%, -50%) scale(1); }
.bff-hero.is-flip .bff-gift-back { transform: translate(-50%, -50%) rotateY(90deg); }
.bff-gift-card { transform: translate(-50%, -50%) rotateY(-90deg) !important; opacity: 0; }
.bff-hero.is-flip .bff-gift-card { transform: translate(-50%, -50%) rotateY(0) !important; opacity: 1; transition-delay: .2s; }
.bff-hero.is-fly .bff-gift-card { transform: translate(100%, 260%) scale(.6) !important; opacity: 0; transition: transform .6s ease-in, opacity .6s ease-in; }
.bff-title { margin: -4px 0 0; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; background: linear-gradient(#fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 var(--outline)); }
.bff-until { margin: 4px 0 0; font-size: .78rem; font-weight: 600; color: var(--muted-app); }
.bff-albumbar { display: flex; align-items: center; gap: 6px; width: 86%; margin: 8px 0 0; font-size: .75rem; font-weight: 800; }
.bff-albumbar .bff-i { color: var(--zap); }
.bff-albumbar .bff-bar { flex: 1; height: 9px; }
.bff-albumbar .bff-bar > i { background: linear-gradient(90deg, #ffc83a, #ff8a3d); }
.bff-albumbar b { color: var(--zap); font-family: var(--display); }
.bff-set { position: relative; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); border-radius: 18px; padding: 10px; transition: border-color .3s; }
.bff-set.is-mini { width: 100%; box-sizing: border-box; margin-top: auto; margin-bottom: 10px; padding: 8px; }
.bff-set-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .8rem; }
.bff-set-h b { font-family: var(--display); font-weight: 800; font-size: .95rem; white-space: nowrap; }
.bff-set-h span[data-have] { color: var(--muted-app); font-family: var(--display); font-weight: 700; }
.bff-more { font-size: .68rem; padding: 1px 7px; background: #ff5fb8; color: #fff; opacity: 0; transform: rotate(-4deg) scale(.6); transition: opacity .25s, transform .25s; }
.bff-set.is-one .bff-more { opacity: 1; transform: rotate(-4deg) scale(1); }
.bff-cards { display: flex; gap: 6px; }
.bff-set.is-mini .bff-cards { justify-content: space-between; }
.bff-set.is-mini .bff-card { --w: 22cqi; }

/* ---------- level result + badge ---------- */
.bff-result { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; container-type: inline-size; padding-bottom: 14px; }
.bff-res-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative; }
.bff-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: #2452b8; border: 2px solid var(--outline); font-size: .74rem; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; }
.bff-hint .bff-i { color: var(--ice); width: 14px; height: 14px; }
.bff-next { display: block; width: 88%; padding: 14px 0; text-align: center; border-radius: 999px; background: var(--zap); color: var(--outline); border: 2.5px solid var(--outline); box-shadow: 0 5px 0 #8c7500; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.bff-res-h { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--zap); filter: drop-shadow(0 3px 0 var(--outline)); }
.bff-res-sub { margin: 0; color: var(--muted-app); font-weight: 600; font-size: .85rem; }
.bff-res-stars { display: flex; gap: 6px; margin: 6px 0 14px; }
.bff-res-stars .bff-star { width: 44px; height: 44px; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.bff-res-stars .bff-star:nth-child(2) { width: 54px; height: 54px; margin-top: -10px; }
.bff-result.is-stars .bff-res-stars .bff-star { transform: scale(1); }
.bff-result.is-stars .bff-res-stars .bff-star:nth-child(2) { transition-delay: .15s; }
.bff-result.is-stars .bff-res-stars .bff-star:nth-child(3) { transition-delay: .3s; }
.bff-badge { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 18px; background: #2452b8; border: 2px solid var(--outline); transform: scale(.3); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.bff-result.is-badge .bff-badge { transform: none; opacity: 1; }
.bff-badge-globe { width: 46px; }
.bff-badge-globe.is-hit { animation: bff-bump .2s; }
.bff-badge-txt { display: grid; gap: 6px; justify-items: center; }
.bff-gain { display: flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.bff-gain small { font-family: var(--body, inherit); font-weight: 700; font-size: .8rem; }
.bff-gain i { font-style: normal; }
.bff-badge .bff-bar { width: 130px; height: 8px; }
.bff-flash { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%) rotate(-5deg) scale(2.4); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
.bff-result.is-crit .bff-flash { transform: translateX(-50%) rotate(-5deg) scale(1); opacity: 1; }
.bff-result.is-crit .bff-badge { animation: bff-jolt .3s; }
@keyframes bff-jolt { 30% { transform: translateX(-5px); } 60% { transform: translateX(5px); } }
.bff-fly { position: absolute; inset: 0; pointer-events: none; }
.bff-fly-i { position: absolute; left: 60%; top: 58%; width: 22px; height: 22px; opacity: 0; }
.bff-result.is-fly .bff-fly-i { animation: bff-fly .7s ease-in forwards; }
.bff-result.is-fly .bff-fly-i:nth-child(2) { animation-delay: .08s; } .bff-result.is-fly .bff-fly-i:nth-child(3) { animation-delay: .16s; }
.bff-result.is-fly .bff-fly-i:nth-child(4) { animation-delay: .24s; } .bff-result.is-fly .bff-fly-i:nth-child(5) { animation-delay: .32s; }
.bff-result.is-fly .bff-fly-i:nth-child(6) { animation-delay: .4s; }
@keyframes bff-fly { 0% { opacity: 0; transform: translate(0, -40px) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-96px, 30px) scale(.9) rotate(-40deg); } }

/* rates table */
.bff-rates { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: start; margin-top: 36px; }
.bff-rates-h { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.bff-tablewrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.bff-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.bff-table th, .bff-table td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.bff-table thead th { border-top: 0; background: var(--surface-2); color: var(--text-2); font-weight: 700; }
.bff-table td { font-weight: 700; color: var(--text); }
.bff-table td .bff-ic { margin-right: 4px; }
.bff-table th .bst-dot { margin-right: 6px; }
.bff-stars { display: inline-flex; gap: 1px; }
.bff-stars .bff-star { width: 18px; height: 18px; }
.bff-mods { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 8px; }
.bff-mods li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.bff-mods b { min-width: 46px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent); }

/* ---------- globe scene ---------- */
.bff-globestage { position: relative; width: 62%; margin: 0 auto; container-type: inline-size; }
.bff-won { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); }
.bff-won-i { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; transform: translate(-50%, -50%) scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: #fff; text-shadow: 0 2px 0 var(--outline); }
.bff-won-i .bff-card { --w: 84px; }
.bff-won-i.is-on { transform: translate(-50%, -50%) scale(1); }
.bff-levels { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted-app); }
.bff-dots { flex: 1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.bff-dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .15); transition: background-color .2s, transform .2s; }
.bff-dots i.is-on { background: var(--ice); }
.is-ready .bff-dots i { background: var(--zap); }
.bff-giftsh { margin: 16px 0 8px; font-family: var(--display); font-weight: 800; font-size: 1rem; }
.bff-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bff-giftopt { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 2px solid var(--outline); text-align: center; transition: border-color .25s, transform .25s; }
.bff-giftopt .bff-back { --w: 30px; animation: none; box-shadow: none; }
.bff-giftopt .bff-ic { width: 34px; height: 42px; }
.bff-giftopt b { font-size: .78rem; line-height: 1.2; }
.bff-giftopt small { font-family: var(--display); font-weight: 800; color: var(--zap); font-size: .95rem; }
.bff-giftopt.is-on { border-color: var(--zap); transform: translateY(-3px); }

/* ---------- tasks ---------- */
.bff-tasks ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bff-task { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--well); border: 1.5px solid rgba(255, 255, 255, .06); transition: border-color .3s; }
.bff-task-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(159, 227, 255, .14); color: var(--ice); font-size: 20px; }
.bff-task-ic .bff-star { width: 22px; height: 22px; }
.bff-task-tx { display: grid; gap: 2px; min-width: 0; }
.bff-task-tx b { font-size: .86rem; line-height: 1.25; }
.bff-task-tx small { color: var(--muted-app); font-weight: 600; font-size: .75rem; }
.bff-task-bar { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.bff-task-bar .bff-bar { flex: 1; height: 8px; }
.bff-task-n { font-size: .72rem; font-weight: 800; color: var(--muted-app); white-space: nowrap; }
.bff-task-n i { font-style: normal; }
.bff-task-re { display: grid; justify-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; }
.bff-task-re .bff-ic { width: 24px; height: 24px; }
.bff-plus { display: inline-flex; align-items: center; gap: 1px; font-size: .72rem; color: var(--ice); }
.bff-plus .bff-ic { width: 14px; height: 14px; }
.bff-pro { font-style: normal; display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--zap); color: var(--outline); font-size: .7rem; vertical-align: 1px; }
.bff-done { position: absolute; right: 52px; top: 50%; padding: 2px 9px; border: 3px solid #7ed957; color: #7ed957; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: 1rem; transform: translateY(-50%) rotate(-12deg) scale(2); opacity: 0; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; background: rgba(14, 11, 26, .55); }
.bff-task.is-done { border-color: #7ed957; }
.bff-task.is-done .bff-done { transform: translateY(-50%) rotate(-12deg) scale(1); opacity: 1; }
.bff-task.is-done .bff-bar > i { background: #7ed957; }
.bff-tasks-wallet { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- album ---------- */
.bff-album { display: grid; gap: 10px; container-type: inline-size; }
.bff-album .bff-panel-h { margin: 0; }
.bff-album .bff-panel-h small { font-family: var(--display); font-weight: 800; color: var(--zap); font-size: 1rem; }
.bff-album .bff-card { --w: calc((100cqi - 20px - 3 * 6px) / 4); }
.bff-reward { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; background: var(--well); border: 1.5px solid var(--outline); font-family: var(--display); font-weight: 800; transition: background-color .3s, color .3s; }
.bff-reward .bff-star { width: 14px; height: 14px; }
.bff-ok { display: none; width: 13px; height: 13px; }
.bff-set.is-done { border-color: var(--zap); border-width: 3px; }
.bff-set.is-done .bff-reward { background: var(--zap); color: var(--outline); }
.bff-set.is-done .bff-reward .bff-star { color: var(--outline); }
.bff-set.is-done .bff-ok { display: inline; }
.bff-grand { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 18px; background: var(--well); border: 2px dashed rgba(255, 200, 58, .6); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.bff-grand-mon { width: 78px; flex: none; filter: brightness(.25) saturate(.3); transition: filter .5s; }
.bff-grand-tx { display: grid; }
.bff-grand-tx small { color: #ffc83a; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.bff-grand-tx b { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.bff-grand-lock { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffc83a; color: var(--outline); border: 2px solid var(--outline); font-size: 16px; transition: transform .4s; }
.bff-grand.is-won { border: 3px solid #ffc83a; background: color-mix(in srgb, #ffc83a 16%, var(--panel)); box-shadow: 0 0 30px rgba(255, 200, 58, .45); }
.bff-grand.is-won .bff-grand-mon { filter: none; }
.bff-grand.is-won .bff-grand-lock { transform: scale(0); }

/* card list */
.bff-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 40px; }
.bff-list-set { padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.bff-list-set h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 1.1rem; }
.bff-list-set h3 span { display: inline-flex; align-items: center; gap: 3px; font-family: var(--display); color: var(--text-2); }
.bff-list-set h3 .bff-star { width: 16px; height: 16px; }
.bff-list-set ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bff-list-set li { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; }
.bff-list-set .bff-mon { width: 46px; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--g) 35%, transparent), transparent 70%); }
.bff-list-set b { font-weight: 700; color: var(--text); }
.bff-list-set small { font-weight: 800; color: var(--g); font-size: .8rem; }
:root[data-theme="light"] .bff-list-set small { filter: brightness(.75); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .bff-list-set small { filter: brightness(.75); } }

/* ---------- pack ---------- */
.bff-packstage { position: relative; container-type: inline-size; min-height: 420px; }
.bff-packcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 22px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); }
.bff-packwrap { position: relative; flex: none; width: 104px; aspect-ratio: 118 / 162; border-radius: 16px; overflow: hidden; border: 3px solid var(--outline); background: linear-gradient(135deg, #9cfff4, #3fa9ff, #6a4bff); animation: bff-bob 2.6s ease-in-out infinite; }
.bff-packwrap::before, .bff-packwrap::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: conic-gradient(from -45deg at 50% 100%, rgba(255, 255, 255, .5) 90deg, transparent 0) 0 0 / 12px 9px; }
.bff-packwrap::before { top: 0; } .bff-packwrap::after { bottom: 0; transform: scaleY(-1); }
.bff-pack-img { position: absolute; left: -12%; width: 124%; bottom: -8%; height: auto; }
@keyframes bff-bob { 50% { transform: translateY(-4px) rotate(2deg); } }
.bff-packstage.is-open .bff-packwrap { animation: bff-tear .5s forwards; }
@keyframes bff-tear { 40% { transform: scale(1.12) rotate(-4deg); } 100% { transform: scale(.2); opacity: 0; } }
.bff-pack-tx { display: grid; gap: 6px; min-width: 0; }
.bff-pack-tx > b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.bff-pack-tx small { color: var(--muted-app); font-weight: 600; font-size: .8rem; }
.bff-pity span { font-family: var(--display); font-weight: 800; font-size: .85rem; }
.bff-pity b { color: #ff5fb8; }
.bff-segs { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 4px; }
.bff-segs i { height: 7px; border-radius: 999px; background: var(--well); transition: background-color .3s; }
.bff-segs i.is-on { background: #ff5fb8; }
.bff-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bff-btn { position: relative; display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 6px; padding: 8px 0 7px; border-radius: 18px; background: var(--zap); color: var(--outline); border: 2.5px solid var(--outline); box-shadow: 0 5px 0 #8c7500; font-family: var(--display); font-weight: 800; font-size: 1.35rem; transition: transform .12s, box-shadow .12s; }
.bff-btn .bff-ic { width: 26px; height: 26px; }
.bff-btn small { grid-column: 1 / -1; text-align: center; font-size: .75rem; opacity: .75; }
.bff-btn.is-press { transform: translateY(4px); box-shadow: 0 1px 0 #8c7500; }
.bff-pull { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.bff-packstage.is-pull .bff-pull { opacity: 1; }
.bff-packstage.is-pull .bff-packcard, .bff-packstage.is-pull .bff-buy { opacity: 0; transition: opacity .3s; }
.bff-pull-h { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.bff-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 16px; perspective: 800px; }
.bff-slot { position: relative; --w: min(80px, 21cqi); width: var(--w); aspect-ratio: 1 / 1.38; }
.bff-slot > .bff-back, .bff-slot > .bff-card { --w: inherit; position: absolute; inset: 0; width: 100%; backface-visibility: hidden; transition: transform .4s; }
.bff-slot > .bff-card { transform: rotateY(-180deg); }
.bff-slot.is-open > .bff-back { transform: rotateY(180deg); }
.bff-slot.is-open > .bff-card { transform: none; }
.bff-slot.is-open > .bff-card.is-fresh .bff-new { transform: translateX(-50%) rotate(-6deg) scale(1); }
.bff-dupe { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%) scale(0); display: inline-flex; align-items: center; gap: 1px; padding: 0 6px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--outline); color: var(--ice); font-style: normal; font-weight: 800; font-size: .72rem; transition: transform .3s .2s; z-index: 2; }
.bff-dupe .bff-ic { width: 13px; height: 13px; }
.bff-slot.is-open .bff-dupe { transform: translateX(-50%) scale(1); }

/* ---------- shards ---------- */
.bff-shards { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bff-shards-ic .bff-ic.is-big { width: 40px; height: 40px; }
.bff-shards-tx { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; }
.bff-shards-tx b { font-family: var(--display); font-weight: 800; }
.bff-shards-tx span { font-family: var(--display); font-weight: 800; color: var(--muted-app); }
.bff-shards-tx span i { font-style: normal; }
.bff-shards-tx .bff-bar { grid-column: 1 / -1; }
.bff-melt { display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 10px; border-radius: 999px; background: var(--well); border: 2px solid var(--outline); font-family: var(--display); font-weight: 800; opacity: .55; transition: background-color .25s, opacity .25s, transform .12s; }
.bff-melt .bff-ic { width: 20px; height: 20px; }
.bff-shards.is-full { border-color: var(--zap); }
.bff-shards.is-full .bff-melt { background: var(--zap); color: var(--outline); opacity: 1; }
.bff-melt.is-press { transform: scale(.92); }
.bff-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.bff-chip { display: grid; justify-items: center; gap: 5px; padding: 12px 6px 10px; border-radius: 16px; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 2px solid var(--outline); transition: border-color .25s, transform .25s; }
.bff-chip .bff-back { --w: 40px; }
.bff-chip b { color: var(--g); font-family: var(--display); font-weight: 800; }
.bff-chip small { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--ice); }
.bff-chip small .bff-ic { width: 15px; height: 15px; }
.bff-chip.is-on { border-color: var(--g); transform: translateY(-4px); }

/* ---------- odds ---------- */
.bff-odds { max-width: 560px; margin: 0 auto; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.bff-odds-h { margin: 0 0 12px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--text); }
.bff-oddrows { list-style: none; margin: 0; padding: 0 14px; border-radius: 18px; background: #241e45; border: 2px solid #0e0b1a; }
.bff-oddrows li { display: grid; grid-template-columns: 30px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; color: #ede7ff; }
.bff-oddrows li + li { border-top: 1px solid #1a1533; }
.bff-oddrows .bff-back { --w: 28px; animation: none; box-shadow: 0 0 10px color-mix(in srgb, var(--g) 60%, transparent); }
.bff-oddrows .bff-back.is-common { box-shadow: none; }
.bff-oddrows .bff-back i { font-size: 10px; }
.bff-oddrows b { color: var(--g); font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.bff-oddbar { height: 8px; border-radius: 999px; background: #1a1533; overflow: hidden; }
.bff-oddbar i { display: block; height: 100%; width: calc(var(--pc) * 1%); background: var(--g); border-radius: inherit; transform-origin: left; transform: scaleX(var(--s, 1)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.bff-odds.is-wait .bff-oddbar i { --s: 0; }
.bff-oddrows span { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.bff-rules { margin: 14px 0 0; padding-left: 1.2em; color: var(--text-2); display: grid; gap: 4px; }

/* ---------- Frost pass ---------- */
.bff-passcard { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; border: 2.5px solid #f0b429; background: linear-gradient(135deg, rgba(58, 42, 16, .95), rgba(36, 30, 69, .95)); }
.bff-passmon { width: 64px; height: 64px; flex: none; border-radius: 16px; border: 2px solid var(--outline); background: radial-gradient(circle at top, #8a5a12, #2a1d08 80%); overflow: hidden; }
.bff-passmon img { width: 116%; margin: 0 -8%; height: auto; display: block; }
.bff-passtx { display: grid; gap: 2px; }
.bff-passtx b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; background: linear-gradient(#fff3b0, #f0b429, #b9770e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 var(--outline)); }
.bff-passtx small { color: var(--muted-app); font-weight: 600; font-size: .8rem; }
.bff-perks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bff-perks li { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 18px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); transition: border-color .3s, transform .3s, box-shadow .3s; }
.bff-perks li.is-on { border-color: #f0b429; transform: translateY(-4px); box-shadow: 0 8px 26px -8px rgba(240, 180, 41, .6); }
.bff-perk-art { position: relative; display: grid; place-items: center; height: 84px; }
.bff-perk-art em { position: absolute; right: -16px; bottom: 4px; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #f0b429; text-shadow: 0 2px 0 var(--outline); }
.bff-perk-art .bff-globe.is-perk { width: 70px; }
.bff-perk-art .bff-crownmon { width: 92px; margin-top: -4px; }
.bff-perk-art .bff-card { --w: 56px; }
.bff-perks b { font-family: var(--display); font-weight: 800; font-size: 1rem; }
.bff-perks small { color: var(--muted-app); font-weight: 600; font-size: .78rem; }
.bff-perks li.is-on .bff-perk-art { animation: bff-bump .45s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- end ---------- */
.bff-cal { display: grid; grid-template-columns: 34px 1fr; gap: 6px 10px; align-items: center; padding: 14px; border-radius: 20px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); }
.bff-cal-ic { grid-row: span 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(159, 227, 255, .15); color: var(--ice); font-size: 20px; }
.bff-cal-m { display: grid; grid-template-columns: 31fr 6fr; font-family: var(--display); font-weight: 800; font-size: .85rem; }
.bff-cal-line { position: relative; height: 10px; border-radius: 999px; background: var(--well); border: 1.5px solid var(--outline); overflow: hidden; }
.bff-cal-line i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--ice), #ffffff); }
.bff-cal-d { display: grid; grid-template-columns: 7fr 7fr 9fr 7fr 6fr 1fr; font-size: .72rem; font-weight: 700; color: var(--muted-app); }
.bff-cal-d span:last-child { text-align: right; white-space: nowrap; }
.bff-convert { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 8px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.bff-conv-arrow { color: var(--muted-app); }
.bff-conv-b { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--panel); border: 2px solid var(--outline); }
.bff-conv-b .bff-star { width: 26px; height: 26px; }
.bff-convert.is-go .bff-conv-a { animation: bff-melt 1s forwards; }
@keyframes bff-melt { to { opacity: .35; transform: scale(.85); } }
.bff-keep { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 20px; background: color-mix(in srgb, var(--panel) 92%, transparent); border: 2px solid var(--outline); font-weight: 700; }
.bff-keep-mon { width: 76px; height: auto; flex: none; }

/* ---------- light theme: the boards stay night, the text around them follows the site ---------- */

@media (max-width: 860px) {
	.bff-rates { grid-template-columns: 1fr; }
	.bff-mods { margin-top: 0; }
}
@media (max-width: 420px) {
	.bff-board-in { padding: 18px 12px; }
	.bff-task { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; }
	.bff-task-ic { width: 28px; height: 28px; font-size: 16px; }
	.bff-table th, .bff-table td { padding: 8px 7px; }
	.bff-table td .bff-ic { width: 1em; margin-right: 2px; }
	.bff-perk-art { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
	.bff-scene *, .bff-hero *, .bff-odds * { animation: none !important; transition: none !important; }
}
