/* ==========================================================================
   Blaze — Blaze Trading League theme
   Mobile-first. Dark, premium, esports-grade.
   ========================================================================== */

:root {
	--bg: #07080b;
	--bg-2: #0a0c10;
	--surface: #0f1117;
	--surface-2: #141720;
	--surface-3: #1b1f2a;
	--line: rgba(255, 255, 255, .07);
	--line-2: rgba(255, 255, 255, .12);
	--line-3: rgba(255, 255, 255, .2);
	--text: #f4f5f7;
	--text-2: #b9bdc8;
	--muted: #7d8292;
	--accent: #ff5a1f;
	--accent-hot: #ff3d00;
	--accent-amber: #ffb020;
	--accent-soft: rgba(255, 90, 31, .12);
	--grad: linear-gradient(135deg, #ffb020 0%, #ff6a1a 48%, #ff3d00 100%);
	--grad-text: linear-gradient(100deg, #ffc046 0%, #ff7a1a 45%, #ff3d00 100%);
	--gold: #e8b94a;
	--gold-soft: rgba(232, 185, 74, .12);
	--green: #2fd47a;
	--green-soft: rgba(47, 212, 122, .12);
	--danger: #ff5b57;
	--danger-soft: rgba(255, 91, 87, .1);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Barlow Condensed", "Inter", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 18px;
	--r-xl: 26px;
	--shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
	--glow: 0 10px 40px -10px rgba(255, 90, 31, .55);
	--gutter: 16px;
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 72px; } }

/* No flag emoji on this system (set in <head>): flag characters come from the self-hosted flag font. */
.no-flag-emoji {
	--font: "Twemoji Country Flags", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Twemoji Country Flags", "Barlow Condensed", "Inter", system-ui, sans-serif;
	--font-mono: "Twemoji Country Flags", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.btl-season-card__when strong, .btl-stat__value, .btl-statbar__value, .btl-season-now__stats dd, .btl-refer__stats strong { font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 90, 31, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.mono, .btl-mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; letter-spacing: -.01em; }
.grad, .btl-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

@media (max-width: 479px) { .hide-xs { display: none !important; } }
@media (max-width: 767px) { .hide-sm { display: none !important; } }

/* ---------- Labels, tags ---------- */
.eyebrow, .btl-eyebrow {
	display: inline-block;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow--invite { text-transform: none; letter-spacing: .02em; font-size: 14px; font-weight: 500; color: var(--text-2); }
.eyebrow--invite strong { color: var(--gold); font-weight: 600; }
.eyebrow { color: var(--accent); }
.tag { margin-left: 6px; font: 500 13px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); vertical-align: 2px; }

/* ---------- Buttons ---------- */
.btn, .btl-btn {
	--h: 46px;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--h); padding: 0 22px; border-radius: 11px; border: 1px solid transparent;
	font: 700 14px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
	cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s, opacity .2s;
	-webkit-tap-highlight-color: transparent; user-select: none;
}
.btn svg, .btl-btn svg { transition: transform .2s var(--ease); }
.btn:hover svg, .btl-btn:hover svg { transform: translateX(3px); }
.btn--primary, .btl-btn--primary {
	background: var(--grad); color: #120803;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -10px rgba(255, 90, 31, .75);
}
.btn--primary::after, .btl-btn--primary::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .25s;
	background: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent 60%);
}
.btn--primary:hover, .btl-btn--primary:hover { color: #120803; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), var(--glow); }
.btn--primary:hover::after, .btl-btn--primary:hover::after { opacity: 1; }
.btn--primary:active, .btl-btn--primary:active { transform: translateY(0); }
.btn--ghost, .btl-btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover, .btl-btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.btn--text { background: none; color: var(--text-2); padding: 0 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn--text:hover { color: #fff; }
.btn--sm, .btl-btn--sm { --h: 38px; padding: 0 16px; font-size: 12.5px; border-radius: 10px; }
.btn--lg, .btl-btn--lg { --h: 54px; padding: 0 28px; font-size: 15px; border-radius: 13px; }
.btn--block, .btl-btn--block { display: flex; width: 100%; }
.btl-btn[disabled], .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btl-btn.is-loading { pointer-events: none; color: transparent !important; }
.btl-btn.is-loading::before {
	content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid rgba(18, 8, 3, .25); border-top-color: #120803; animation: spin .7s linear infinite;
}
.btl-btn--ghost.is-loading::before { border-color: rgba(255, 255, 255, .2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
/* The blur sits on a pseudo-element: a backdrop-filter on the header itself would make it the
   containing block of the fixed mobile menu and squash the menu to the header's height. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(7, 8, 11, .55); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
	transition: background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: rgba(7, 8, 11, .82); }
.site-header__inner { display: flex; align-items: center; height: 100%; gap: 16px; }

.site-logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.site-logo__mark { display: block; width: 50px; height: 50px; object-fit: contain; flex: none; mix-blend-mode: lighten; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__text strong { font: 800 20px/0.9 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.site-logo__text span { margin-top: 3px; font: 600 9px/1 var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* Primary navigation: one quiet segmented bar in the middle of the header */
.site-nav__list { display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.site-nav__list a {
	display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px;
	font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s;
}
.site-nav__list a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.site-nav__list a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav__live { font-size: 12px; font-weight: 600; color: var(--accent); animation: btl-live-text 1.8s ease-in-out infinite; }
.site-nav__mobile { display: none; }
/* Several live seasons: a list under Seasons (a dropdown on wide screens, indented lines in the phone menu). */
.site-nav__list .has-sub { position: relative; }
.site-nav__sub { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 100%; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.site-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .site-nav__sub, .has-sub:focus-within > .site-nav__sub { display: grid; gap: 2px; }
.site-nav__sub a { justify-content: space-between; gap: 16px; }
.site-nav__when { font-size: 12px; font-weight: 500; color: var(--muted); }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (min-width: 960px) {
	.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
	.site-logo { margin-right: 0; justify-self: start; }
}

/* Account menu */
.account { position: relative; }
.account__button {
	display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 4px; border-radius: 99px; cursor: pointer;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s, background .2s;
}
.account__button:hover, .account__button[aria-expanded="true"] { border-color: var(--line-3); background: rgba(255, 255, 255, .07); }
.account__avatar { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.account__name { max-width: 140px; overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.account__chevron { color: var(--muted); transition: transform .2s var(--ease); }
.account__button[aria-expanded="true"] .account__chevron { transform: rotate(180deg); }
.account__menu {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; width: 248px; padding: 8px;
	border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
	animation: menu-in .18s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.account__head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.account__head-avatar { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.account__head strong { display: block; font-size: 14.5px; }
.account__head span { display: block; margin-top: 2px; font: 500 12px/1.2 var(--font-mono); color: var(--muted); }
.account__menu ul { margin: 0; padding: 0; list-style: none; }
.account__menu a { display: block; padding: 10px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s, background .15s; }
.account__menu a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.account__menu li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.account__menu a.is-quiet { color: var(--muted); }

.nav-toggle {
	display: none; position: relative; width: 44px; height: 44px; border-radius: 12px;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); cursor: pointer;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Phones and tablets: a full-screen menu with large links */
@media (max-width: 959px) {
	.nav-toggle { display: block; }
	.account__name, .account__chevron { display: none; }
	.account__button { padding: 0 4px; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; overflow-y: auto;
		display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
		padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
		background: var(--bg);
		opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; }
	.site-nav__list { flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
	.site-nav__list a { justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); border-radius: 0; font: 800 32px/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
	.site-nav__list a:hover, .site-nav__list a[aria-current] { background: none; color: var(--accent); }
	.site-nav__live { font: 600 14px/1 var(--font); letter-spacing: 0; text-transform: none; }
	.site-nav__sub, .has-sub:hover > .site-nav__sub { display: grid; gap: 0; position: static; padding: 0 0 0 16px; border: 0; border-radius: 0; background: none; box-shadow: none; }
	.site-nav__sub::before { content: none; }
	.site-nav__list .site-nav__sub a { padding: 14px 0; font: 700 20px/1.1 var(--font-display); }
	.site-nav__when { font: 500 14px/1 var(--font); letter-spacing: 0; text-transform: none; }
	.site-nav.is-open .site-nav__list li { animation: nav-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
	@keyframes nav-in { from { opacity: 0; transform: translateY(10px); } }
	.site-nav__mobile { display: grid; gap: 10px; }
	.site-nav__account { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
	.site-nav__account a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--text-2); }
	.site-nav__account a.is-quiet { color: var(--muted); }
}

/* ==========================================================================
   Landing — hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; overflow: clip; padding: 40px 0 56px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 40px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
	opacity: .7;
}
.hero__glow {
	position: absolute; width: 900px; height: 700px; right: -260px; top: -220px;
	background: radial-gradient(closest-side, rgba(255, 90, 31, .32), rgba(255, 90, 31, .08) 55%, transparent);
}
.hero__glow::after {
	content: ""; position: absolute; width: 520px; height: 420px; left: -520px; top: 360px;
	background: radial-gradient(closest-side, rgba(255, 176, 32, .12), transparent);
}
.hero__candles { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; opacity: .16; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero__candles line { stroke-width: 1.5; }
.hero__candles .c-up rect, .hero__candles .c-up line { fill: var(--accent); stroke: var(--accent); }
.hero__candles .c-down rect, .hero__candles .c-down line { fill: #3a3f4d; stroke: #3a3f4d; }

.hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__copy { max-width: 700px; }
.hero__title {
	margin: 22px 0 18px;
	font: 800 clamp(40px, 9.6vw, 74px)/.92 var(--font-display);
	letter-spacing: -.01em; text-transform: uppercase;
}
.hero__title-line { display: block; }
.hero__title:first-child { margin-top: 0; }
.hero__lead { margin: 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 18.5px); color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__trust { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin: 36px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font: 700 24px/1.1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.hero__trust span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 519px) {
	.hero__ctas .btn { width: 100%; }
	.hero__trust { grid-template-columns: repeat(3, 1fr); gap: 12px; }
	.hero__trust strong { font-size: 20px; }
	.hero__trust span { font-size: 11.5px; line-height: 1.3; }
}

/* Hero visual: player card + leaderboard */
.hero__visual { position: relative; display: grid; justify-items: center; padding: 10px 0 30px; }
.pcard {
	position: relative; width: min(100%, 380px); border-radius: var(--r-xl); overflow: hidden;
	background: linear-gradient(180deg, rgba(27, 31, 42, .92), rgba(15, 17, 23, .96));
	border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset;
	transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease);
}
.pcard:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.pcard__banner { height: 92px; background: radial-gradient(120% 140% at 0% 0%, #ff7a1a 0%, #ff3d00 35%, #2a0f05 75%), #1a0b05; position: relative; }
.pcard__head { display: flex; align-items: flex-end; gap: 14px; margin-top: -34px; padding: 0 22px; position: relative; }
.pcard__avatar {
	display: block; width: 72px; height: 72px; border-radius: 18px; flex: none; object-fit: cover;
	background: #12141a; border: 3px solid #12141a; outline: 1px solid var(--line-3);
}
.pcard__name { font: 700 24px/1 var(--font-display); letter-spacing: .02em; }
.pcard__verified { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--accent); color: #120803; font: 800 10px/1 var(--font); vertical-align: 3px; }
.pcard__meta { display: flex; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pcard__meta .mono { color: var(--text-2); }
.pcard__division { font: 800 13px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pcard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 20px 22px 0; }
.pcard__stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.pcard__stats span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcard__stats strong { display: block; margin-top: 2px; font: 700 26px/1 var(--font-display); }
.pcard__stats .is-gold { background: var(--gold-soft); border-color: rgba(232, 185, 74, .25); }
.pcard__stats .is-gold strong { color: var(--gold); }
.pcard__chart { position: relative; height: 96px; margin: 16px 0 0; }
.pcard__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard__line { stroke: url(#btl-flame-grad); stroke: #ff7a1a; stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(255, 90, 31, .5)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pcard__pnl { position: absolute; right: 18px; top: 6px; padding: 4px 9px; border-radius: 8px; background: var(--green-soft); color: var(--green); font: 700 13px/1 var(--font-mono); }

.lboard {
	position: absolute; left: 0; bottom: -6px; width: 250px;
	padding: 14px; border-radius: 18px;
	background: rgba(15, 17, 23, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--line-2); box-shadow: var(--shadow);
	animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.lboard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lboard ol { margin: 0; padding: 0; list-style: none; }
.lboard li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 8px; font-size: 13px; }
.lboard li.is-first { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.lboard__rank { font: 700 15px/1 var(--font-display); color: var(--muted); text-align: center; }
.is-first .lboard__rank { color: var(--gold); }
.lboard__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lboard__pnl { font: 600 12px/1 var(--font-mono); color: var(--green); }

@media (max-width: 519px) {
	.lboard { position: relative; left: auto; bottom: auto; width: min(100%, 380px); margin-top: -26px; animation: none; }
	.pcard { transform: none; }
}
@media (min-width: 520px) and (max-width: 959px) {
	.hero__visual { padding-bottom: 60px; }
	.lboard { left: calc(50% - 300px); bottom: 0; }
}
@media (min-width: 960px) {
	.hero { padding-bottom: 96px; padding-top: calc(var(--header-h) + 72px); }
	.hero__inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
	.hero__visual { justify-items: end; padding: 0 0 70px; }
	.lboard { left: -30px; bottom: -40px; }
}

/* Hero with announced seasons: headline + buttons on the left, the season slider on the right.
   On phones the slider sits between the headline and the buttons, so it is on the first screen. */
.hero__main { min-width: 0; }
.hero__visual--seasons { display: block; padding: 0; min-width: 0; }
@media (max-width: 959px) {
	.hero__inner--seasons { gap: 26px; }
	.hero__inner--seasons .hero__main { display: contents; }
	.hero__inner--seasons .hero__copy { order: 1; }
	.hero__inner--seasons .hero__visual { order: 2; }
	.hero__inner--seasons .hero__actions { order: 3; }
	.hero__inner--seasons .hero__ctas { margin-top: 0; }
}

/* Season slider */
.seasons { position: relative; width: 100%; max-width: 540px; margin-left: auto; }
.seasons__track {
	position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; align-items: start; gap: 16px;
	overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	transition: height .3s var(--ease);
}
.seasons__track::-webkit-scrollbar { display: none; }
.seasons__track > .scard { scroll-snap-align: start; }
.seasons__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.seasons__arrow {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
	color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); transition: background .2s, border-color .2s;
}
.seasons__arrow:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.seasons__count { min-width: 52px; text-align: center; font: 500 13px/1 var(--font-mono); color: var(--muted); }
.seasons__count b { font-weight: 700; color: var(--text); }

/* Season card (slide) */
.scard {
	position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface);
}
.scard__media { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px 22px 0; overflow: hidden; }
.scard.has-image .scard__media { justify-content: space-between; min-height: 184px; padding-bottom: 20px; background: #0d0f14; }
.scard.has-image .scard__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 11, .2) 0%, rgba(7, 8, 11, .35) 45%, rgba(7, 8, 11, .9) 100%); }
.scard__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard__media-row, .scard__heading { position: relative; z-index: 1; }
.scard__media-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.scard__status { font: 600 14px/1 var(--font); color: var(--green); }
.scard.has-image .scard__status { color: #fff; }
.scard__status.is-closed { color: var(--text-2); }
.scard--ended .scard__status { color: var(--text-2); }
.scard__countdown { font: 400 13px/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.scard__countdown b { font-weight: 600; color: var(--text); }
.scard__title { margin: 0; font: 800 clamp(34px, 7vw, 44px)/.92 var(--font-display); text-transform: uppercase; color: #fff; }
.scard__subtitle { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: var(--text-2); }
.scard__body { display: grid; gap: 20px; padding: 20px 22px 22px; }
.scard__desc { margin: 0; font-size: 14.5px; color: var(--text-2); }
.scard__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.scard__facts div { min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.scard__facts dt { font-size: 13px; color: var(--muted); }
.scard__facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--text); }
.scard__facts span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
@media (min-width: 560px) and (max-width: 959px) { .scard__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scard__prizes-title { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.scard__prizes ol { margin: 0; padding: 0; list-style: none; }
.scard__prize { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.scard__prize span { font-size: 13.5px; color: var(--text-2); }
.scard__prize strong { font-size: 15px; font-weight: 600; color: var(--text); }
.scard__prize--1 strong { color: var(--gold); }
.scard__cta { display: grid; gap: 10px; }
.scard__note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }

/* Live season slide */
.scard__leaders { display: grid; margin: 0; padding: 0; list-style: none; }
.scard__leaders li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scard__leaders li.is-dq { opacity: .55; }
.scard__leader-pos { font: 800 16px/1 var(--font-display); color: var(--muted); text-align: center; }
.scard__leaders li:first-child .scard__leader-pos { color: var(--gold); }
.scard__leader-name { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.scard__leader-ret { font: 600 13.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.scard__meta { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Marquee strip ---------- */
.strip { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.strip__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.strip span { font: 700 18px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.strip i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 72px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--wide { max-width: 880px; } /* A two-line title, one sentence per line. */
.section__title { margin: 12px 0 14px; font: 800 clamp(36px, 7vw, 64px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.section__lead { margin: 0; color: var(--text-2); font-size: 17px; }
@media (min-width: 960px) { .section { padding: 112px 0; } .section__head { margin-bottom: 56px; } }

/* Steps */
.steps { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 24px 0 28px; border-top: 2px solid var(--line-2); }
.step:first-child { border-top-color: var(--accent); }
.step__num { display: block; font: 800 44px/1 var(--font-display); background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .04)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step:first-child .step__num { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
.step h3 { margin: 16px 0 8px; font: 600 18px/1.3 var(--font); }
.step p { margin: 0; max-width: 32ch; color: var(--text-2); font-size: 15px; }
.step__link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
.step__link:hover { color: var(--accent-amber); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Features */
.features { display: grid; gap: 0 32px; }
.feature { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); line-height: 0; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; font: 600 18px/1.3 var(--font); }
.feature p { margin: 0; max-width: 36ch; color: var(--text-2); font-size: 15px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Season */
.season {
	position: relative; overflow: hidden; display: grid; gap: 32px; padding: 32px 24px; border-radius: var(--r-xl);
	background: linear-gradient(180deg, #12141b, #0c0e13); border: 1px solid var(--line-2);
}
.season::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(255, 176, 32, .7), rgba(255, 61, 0, .3) 30%, transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.season__glow { position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; background: radial-gradient(closest-side, rgba(255, 90, 31, .22), transparent); pointer-events: none; }
.season__copy { position: relative; }
.season__copy .section__lead { margin-bottom: 28px; max-width: 520px; }
.season__facts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; align-content: center; }
.season__facts div { padding: 14px 0; border-top: 1px solid var(--line); }
.season__facts dt { font-size: 13px; color: var(--muted); }
.season__facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; }
@media (max-width: 519px) { .season .btn { width: 100%; } }
@media (min-width: 960px) { .season { grid-template-columns: 1.2fr 1fr; padding: 56px; gap: 56px; } }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; transition: color .2s; }
.faq__item summary:hover { color: #fff; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { margin: 0; padding: 0 40px 24px 0; max-width: 64ch; color: var(--text-2); }
.faq__item p a { font-weight: 600; color: var(--accent); }
.faq__item p a:hover { color: var(--accent-amber); }

/* Final CTA */
.cta-final { position: relative; overflow: hidden; padding: 88px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(60% 120% at 50% 100%, rgba(255, 90, 31, .22), transparent 70%), var(--bg); }
.cta-final h2 { margin: 0 0 12px; font: 800 clamp(40px, 9vw, 84px)/.92 var(--font-display); text-transform: uppercase; }
.cta-final p { margin: 0 0 30px; color: var(--text-2); font-size: 17px; }
@media (max-width: 519px) { .cta-final .btn { width: 100%; } }

/* Reveal on scroll: CSS scroll-driven, so content is never hidden waiting for JavaScript. Browsers
   without scroll timelines simply show everything; elements already on screen at load are complete. */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		[data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	}
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.pcard__line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--bg-2); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
/* A thin line of light along the top edge instead of a plain border. */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 122, 26, .45) 30%, rgba(255, 176, 32, .45) 50%, rgba(255, 122, 26, .45) 70%, transparent); }
.site-footer--compact { padding-top: 0; background: transparent; }
.site-footer--compact::before { content: none; }
.site-footer__top { display: grid; gap: 48px; padding-bottom: 48px; }
.site-footer__brand { display: grid; justify-items: start; gap: 20px; align-content: start; }
.site-footer__brand p { max-width: 380px; margin: 0; color: var(--text-2); font-size: 15px; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.site-footer__mail svg { flex: none; color: var(--muted); }
.site-footer__mail:hover { color: #fff; }
.site-footer__emblem { display: block; margin: -12px 0 -8px -14px; line-height: 0; }
.site-footer__emblem img { display: block; width: 136px; height: 136px; mix-blend-mode: lighten; transition: transform .4s var(--ease); }
.site-footer__emblem:hover img { transform: scale(1.03); }
.site-footer__season {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; width: min(100%, 380px); padding: 14px 16px;
	border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .2s, background .2s;
}
.site-footer__season:hover { border-color: var(--line-3); background: var(--surface-2); }
.site-footer__season-state { grid-column: 1; font-size: 12.5px; font-weight: 600; color: var(--green); }
.site-footer__season-state.is-live { color: var(--accent); }
.site-footer__season-state.is-closed { color: var(--text-2); }
.site-footer__season strong { grid-column: 1; font: 800 20px/1.1 var(--font-display); text-transform: uppercase; color: #fff; }
.site-footer__season-dates { grid-column: 1; font-size: 13px; color: var(--muted); }
.site-footer__season svg { grid-column: 2; grid-row: 1 / span 3; color: var(--text-2); transition: transform .2s var(--ease); }
.site-footer__season:hover svg { transform: translateX(3px); color: #fff; }
.site-footer__season-row { padding: 8px 0 20px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.site-footer h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--text); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.site-footer ul a { color: var(--text-2); font-size: 14.5px; transition: color .15s; }
.site-footer ul a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.site-footer--compact .site-footer__bottom { border-top: 0; }
.site-footer__bottom p { margin: 0; }
.site-footer__risk { flex: 1 1 360px; max-width: 640px; }
.site-footer__up { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; transition: color .15s; }
.site-footer__up:hover { color: #fff; }
@media (min-width: 960px) {
	.site-footer { padding-top: 88px; }
	.site-footer__top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr); gap: 64px; padding-bottom: 64px; }
	.site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Generic pages
   ========================================================================== */
.page-main { padding: 56px 0 96px; min-height: 60vh; }
.page-title { margin: 0 0 24px; font: 800 clamp(40px, 8vw, 72px)/.95 var(--font-display); text-transform: uppercase; }
.prose { color: var(--text-2); font-size: 17px; }
.prose h2, .prose h3 { color: #fff; font-family: var(--font-display); text-transform: uppercase; line-height: 1.05; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages */
.btl-legal { font-size: 16px; line-height: 1.65; }
.btl-legal h2 { margin: 36px 0 10px; font-size: 22px; letter-spacing: .02em; }
.btl-legal p, .btl-legal ul, .btl-legal ol { margin: 0 0 14px; }
.btl-legal ul, .btl-legal ol { padding-left: 22px; }
.btl-legal li { margin-bottom: 6px; }
.btl-legal strong { color: var(--text); }
.btl-legal code { font: 500 13px/1.4 var(--font-mono); color: var(--text); }
.btl-legal__updated { color: var(--muted); font-size: 14px; }
/* The rule traders must not miss, above the official rules: one bordered block, the limits as hairline facts. */
.btl-legal__key { margin: 24px 0 36px; padding: 22px 24px 20px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 176, 32, .09), rgba(255, 176, 32, .02) 70%); border: 1px solid rgba(255, 176, 32, .5); }
.btl-legal .btl-legal__key h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: #fff; }
.btl-legal__key h2 svg { flex: none; color: var(--accent-amber); }
.btl-legal .btl-legal__lots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 12px 0 18px; padding: 0; list-style: none; border-block: 1px solid rgba(255, 176, 32, .25); }
.btl-legal .btl-legal__lots li { display: grid; align-content: start; gap: 3px; margin: 0; padding: 12px 14px; }
.btl-legal__lots li + li { border-left: 1px solid rgba(255, 255, 255, .08); }
.btl-legal__lots span { font-size: 13px; color: var(--text-2); }
.btl-legal .btl-legal__lots strong { font: 800 30px/1 var(--font-display); color: #fff; }
.btl-legal__lots small { font-size: 12px; color: var(--muted); }
.btl-legal__key p:last-child { margin-bottom: 0; }
.btl-legal .btl-legal__key h2 + p { margin-top: 0; }
.btl-legal .btl-legal__key h2:not(:first-child) { margin-top: 26px; }
.btl-legal .btl-legal__lots--risk { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.btl-legal h3 { margin: 22px 0 8px; font: 600 16px/1.35 var(--font); color: var(--text); }
.btl-legal h2 + h3 { margin-top: 12px; }
.btl-legal__formula { padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font: 500 14px/1.5 var(--font-mono); color: var(--text); overflow-x: auto; }
.btl-legal__steps li { margin-bottom: 10px; }
@media (max-width: 640px) {
	.btl-legal__key { padding: 18px 16px 16px; }
	.btl-legal .btl-legal__lots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.btl-legal__lots li:nth-child(4) { border-left: 0; }
	.btl-legal__lots li:nth-child(-n+3) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.btl-legal .btl-legal__lots strong { font-size: 24px; }
	.btl-legal .btl-legal__lots--risk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.btl-legal .btl-legal__lots--risk li { border-bottom: 0; }
}
.btl-legal table { width: 100%; margin: 6px 0 18px; border-collapse: collapse; font-size: 14.5px; }
.btl-legal th, .btl-legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.btl-legal th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, .03); }
@media (max-width: 640px) {
	.btl-legal table, .btl-legal thead, .btl-legal tbody, .btl-legal tr, .btl-legal th, .btl-legal td { display: block; }
	.btl-legal thead { display: none; }
	.btl-legal tr { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; }
	.btl-legal td { border: 0; border-bottom: 1px solid var(--line); }
	.btl-legal td:last-child { border-bottom: 0; }
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer__legal a { color: inherit; }
.page-404 { text-align: center; padding-top: 96px; }
.page-404__code { display: block; font-size: 120px; font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   App (BTL platform pages)
   ========================================================================== */
.app-main { position: relative; min-height: calc(100vh - var(--header-h)); padding-bottom: 48px; }
.app-main__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.app-main__bg::before { content: ""; position: absolute; width: 1000px; height: 800px; right: -400px; top: -400px; background: radial-gradient(closest-side, rgba(255, 90, 31, .16), transparent); }
.app-main__bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px; opacity: .35;
	mask-image: radial-gradient(ellipse 70% 60% at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 0%, #000, transparent 70%);
}
.btl-container { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.btl-muted { color: var(--muted); }

/* ---------- Auth layout ---------- */
.btl-auth { position: relative; display: grid; max-width: 1240px; margin: 0 auto; padding: 24px var(--gutter) 24px; gap: 32px; align-items: start; }
.btl-auth__aside { display: none; }
.btl-auth__main { display: flex; justify-content: center; }
.btl-auth__card { width: 100%; max-width: 520px; padding: 28px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.btl-auth__head { margin-bottom: 22px; }
.btl-auth__title { margin: 0; font: 800 40px/.95 var(--font-display); text-transform: uppercase; letter-spacing: .005em; }
.btl-auth__sub { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.btl-auth__switch { margin: 22px 0 0; text-align: center; font-size: 14.5px; color: var(--muted); }
.btl-auth__switch a { color: var(--accent); font-weight: 600; }
.btl-auth__switch a:hover { color: var(--accent-amber); }

@media (min-width: 560px) { .btl-auth__card { padding: 36px 36px 32px; } .btl-auth { padding-top: 48px; } }
@media (min-width: 1024px) {
	.btl-auth { grid-template-columns: 1fr 520px; gap: 72px; padding-top: 64px; align-items: center; min-height: calc(100vh - var(--header-h) - 80px); }
	.btl-auth--single { grid-template-columns: 1fr; }
	.btl-auth__aside { display: block; }
	.btl-auth__main { justify-content: flex-end; }
	.btl-auth--single .btl-auth__main { justify-content: center; }
}
.btl-auth__aside-inner { max-width: 520px; }
.btl-auth__aside-title { margin: 0 0 16px; font: 800 clamp(48px, 5.4vw, 76px)/.9 var(--font-display); text-transform: uppercase; }
.btl-auth__aside-text { margin: 0; color: var(--text-2); font-size: 17px; max-width: 440px; }
.btl-auth__perks { margin: 32px 0 0; padding: 24px 0 0; list-style: none; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.btl-auth__perks li { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 15px; }
.btl-auth__perks svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

/* Invite banner */
.btl-invite {
	display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
	background: var(--gold-soft); border: 1px solid rgba(232, 185, 74, .3); color: #f3dca0; font-size: 14.5px;
}
.btl-invite strong { color: #fff; }
.btl-invite__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(232, 185, 74, .18); color: var(--gold); flex: none; }

/* ---------- Forms ---------- */
.btl-form { display: grid; gap: 18px; }
.btl-form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .btl-form__row { grid-template-columns: 1fr 1fr; } }
.btl-form__title { margin: 0; font: 600 18px/1.3 var(--font); }
.btl-field { display: grid; gap: 7px; min-width: 0; }
.btl-label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.btl-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.btl-link-sm { font-size: 13px; color: var(--accent); font-weight: 500; }
.btl-link-sm:hover { color: var(--accent-amber); }
.btl-input {
	width: 100%; height: 50px; padding: 0 16px; border-radius: 12px;
	background: rgba(7, 8, 11, .6); border: 1px solid var(--line-2); color: var(--text);
	font: 500 16px/1 var(--font); /* ≥16px avoids iOS zoom on focus */
	transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.btl-input::placeholder { color: #4f5462; }
.btl-input:hover { border-color: var(--line-3); }
.btl-input:focus { outline: none; border-color: var(--accent); background: rgba(7, 8, 11, .85); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.btl-input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.btl-input:disabled { opacity: .6; cursor: not-allowed; }
.btl-input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px #0d0f14 inset; caret-color: var(--text); }
.btl-select {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8292' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.btl-select option { background: #12141a; color: var(--text); }
.btl-input-wrap { position: relative; }
.btl-input-wrap .btl-input { padding-right: 52px; }
.btl-input-wrap--icon .btl-input { padding-left: 46px; padding-right: 16px; }
.btl-input__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #5865f2; display: flex; pointer-events: none; }
.btl-input__toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer;
}
.btl-input__toggle:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.btl-input__toggle .i-eye-off { display: none; }
.btl-input__toggle.is-on .i-eye { display: none; }
.btl-input__toggle.is-on .i-eye-off { display: block; }
.btl-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.btl-field__error { margin: 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.btl-field__error + .btl-hint { display: none; }

.btl-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 3px; }
.btl-strength span { border-radius: 2px; background: var(--line-2); transition: background .25s; }
.btl-strength[data-level="1"] span:nth-child(-n+1) { background: var(--danger); }
.btl-strength[data-level="2"] span:nth-child(-n+2) { background: var(--accent-amber); }
.btl-strength[data-level="3"] span:nth-child(-n+3) { background: #b6d94a; }
.btl-strength[data-level="4"] span { background: var(--green); }

.btl-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.btl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btl-check__box {
	position: relative; flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 7px;
	border: 1px solid var(--line-3); background: rgba(7, 8, 11, .6); transition: background .2s, border-color .2s;
}
.btl-check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #120803; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--ease); }
.btl-check input:checked + .btl-check__box { background: var(--grad); border-color: transparent; }
.btl-check input:checked + .btl-check__box::after { transform: rotate(45deg) scale(1); }
.btl-check input:focus-visible + .btl-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.btl-check input[aria-invalid="true"] + .btl-check__box { border-color: var(--danger); }

.btl-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btl-alert { margin: 0 0 18px; padding: 13px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 500; border: 1px solid; }
.btl-alert--error { background: var(--danger-soft); border-color: rgba(255, 91, 87, .35); color: #ffb4b1; }
.btl-alert--success { background: var(--green-soft); border-color: rgba(47, 212, 122, .3); color: #a5f0c6; }
.btl-alert--info { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text-2); }
.btl-alert--info a { margin-left: 4px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.btl-alert--info a:hover { color: #fff; }

.btl-state { text-align: center; display: grid; gap: 14px; justify-items: center; }
.btl-state .btl-auth__sub { margin: 0 0 8px; }
.btl-state__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255, 90, 31, .25); }
.btl-state__icon--warn { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 91, 87, .3); }

/* ---------- Dashboard ---------- */
.btl-dash { position: relative; padding-top: 16px; }
.btl-welcome {
	display: flex; align-items: center; gap: 14px; margin: 24px 0 0; padding: 14px 18px; border-radius: 14px;
	background: var(--surface); border: 1px solid rgba(255, 90, 31, .3);
	font-size: 14.5px; color: var(--text-2); animation: rise .5s var(--ease);
}
.btl-welcome strong { color: #fff; margin-right: 4px; }
.btl-welcome .btl-mono { color: var(--accent-amber); font-weight: 700; }
.btl-welcome__badge { display: block; width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.btl-avatar {
	position: relative; width: 88px; height: 88px; border-radius: 24px;
	background: #12141a; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.btl-avatar__img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; transition: opacity .2s; }
.btl-avatar.is-uploading .btl-avatar__img { opacity: .45; }
.btl-avatar.is-uploading::before {
	content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btl-avatar__form { margin: 0; }
.btl-avatar__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btl-avatar__edit {
	position: absolute; z-index: 3; right: -8px; bottom: -8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: var(--surface-3); border: 3px solid var(--bg); color: #fff; cursor: pointer; transition: background .2s, color .2s;
}
.btl-avatar__edit svg { width: 16px; height: 16px; }
.btl-avatar__edit:hover, .btl-avatar__input:focus-visible + .btl-avatar__edit { background: var(--accent); color: #120803; }
.btl-avatar-error { margin-top: 8px; margin-bottom: 0; color: var(--danger); font-size: 14px; font-weight: 500; }
.btl-dash__alert { margin: 8px 0 0; }
.btl-badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.btl-badge--live { color: var(--green); }
.btl-badge--muted { color: var(--muted); }
.btl-chip {
	position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px;
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.btl-chip svg { color: var(--muted); flex: none; }
.btl-chip__copied { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--green); color: #04130a; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transition: opacity .2s; pointer-events: none; }
.btl-flag { font-size: 16px; line-height: 1; }
@media (min-width: 768px) { .btl-avatar { width: 128px; height: 128px; border-radius: 32px; } }

.btl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.btl-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.btl-stat__label { font-size: 13px; line-height: 1.35; color: var(--muted); }
.btl-stat__value { font: 800 32px/1 var(--font-display); color: #fff; white-space: nowrap; }
.btl-stat--gold .btl-stat__value { color: var(--gold); }
@media (min-width: 900px) { .btl-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; } }
.btl-section-title { margin: 0 0 14px; font: 600 18px/1.3 var(--font); }
.btl-stat--up .btl-stat__value { color: var(--green); }
.btl-stat--down .btl-stat__value { color: var(--danger); }

.btl-panel { position: relative; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
@media (min-width: 560px) { .btl-panel { padding: 24px 28px; } }
.btl-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.btl-panel__title { margin: 0 0 10px; font: 800 40px/.95 var(--font-display); text-transform: uppercase; }
.btl-panel__title--sm { margin: 0; font: 600 18px/1.3 var(--font); text-transform: none; letter-spacing: 0; }
.btl-dl { margin: 0; display: grid; }
.btl-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.btl-dl dt { color: var(--muted); }
.btl-dl dd { margin: 0; text-align: right; font-weight: 500; }
.btl-empty { display: grid; justify-items: center; gap: 8px; padding: 22px 0 6px; text-align: center; color: var(--muted); font-size: 14.5px; }
.btl-empty svg { color: var(--line-3); }
.btl-empty p { margin: 0; max-width: 260px; }

/* Settings: one section per subject, title and explanation on the left, controls on the right */
.btl-settings { display: grid; gap: 16px; }
.btl-setting { display: grid; gap: 20px; scroll-margin-top: calc(var(--header-h) + 72px); }
.btl-setting__intro p { margin: 8px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.btl-setting__body { display: grid; gap: 20px; align-content: start; min-width: 0; }
.btl-setting__body > .btl-alert { margin: 0; }
.btl-setting__body .btl-form { align-content: start; }
.btl-setting__body .btl-form > .btl-btn { justify-self: start; }
.btl-setting__body--row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (max-width: 559px) { .btl-setting__body .btl-form > .btl-btn { justify-self: stretch; } }
@media (min-width: 900px) {
	.btl-setting { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; }
	.btl-setting__body { max-width: 680px; }
}

/* Switches (email notifications) */
.btl-switches { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.btl-switches li { border-bottom: 1px solid var(--line); }
.btl-switch { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 16px 0; cursor: pointer; }
.btl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.btl-switch__track { grid-column: 2; grid-row: 1; position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s; }
.btl-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c9ccd4; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s var(--ease), background .2s; }
.btl-switch input:checked + .btl-switch__track { background: var(--accent); box-shadow: none; }
.btl-switch input:checked + .btl-switch__track::after { transform: translateX(18px); background: #fff; }
.btl-switch input:focus-visible + .btl-switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
.btl-switch__text { grid-column: 1; grid-row: 1; display: grid; gap: 3px; }
.btl-switch__text strong { font-size: 15px; font-weight: 600; color: var(--text); }
.btl-switch__text em { margin-left: 8px; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.btl-switch__text > span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.btl-switch.is-locked { cursor: default; }
.btl-switch.is-locked .btl-switch__track { opacity: .45; }

/* MT5 account (Settings) */
.btl-mt5 { scroll-margin-top: calc(var(--header-h) + 16px); }
.btl-mt5__intro { margin: 0 0 18px; max-width: 64ch; }
.btl-mt5__form { max-width: 560px; align-content: start; }
.btl-mt5__form .btl-btn { justify-self: start; }
@media (max-width: 559px) { .btl-mt5__form .btl-btn { justify-self: stretch; } }
.btl-mt5__grid { display: grid; gap: 18px 16px; align-items: start; }
@media (min-width: 560px) { .btl-mt5__grid { grid-template-columns: 1.4fr 1fr; } }
.btl-mt5__card { display: grid; gap: 10px; margin-bottom: 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.btl-mt5__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.btl-mt5__id strong { font-size: 18px; color: var(--text); }
.btl-mt5__id span { font-size: 14px; color: var(--muted); }
.btl-mt5__status { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.btl-mt5__status.is-ok { color: var(--green); }
.btl-mt5__status.is-bad { color: #ffb4b1; }
.btl-mt5__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.btl-mt5__facts div { display: grid; gap: 2px; }
.btl-mt5__facts dt { font-size: 13px; color: var(--muted); }
.btl-mt5__facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.btl-mt5__help, .btl-mt5__change { font-size: 14px; color: var(--text-2); }
.btl-mt5__help { margin-top: 4px; }
.btl-mt5__help summary, .btl-mt5__change summary { cursor: pointer; font-weight: 600; }
.btl-mt5__help summary:hover, .btl-mt5__change summary:hover { color: var(--text); }
.btl-mt5__help ol { display: grid; gap: 4px; margin: 10px 0 8px; padding-left: 20px; }
.btl-mt5__help p { margin: 0; color: var(--muted); }
.btl-mt5__change .btl-mt5__form { margin-top: 14px; }
.btl-mt5__footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.btl-mt5__footer .btl-btn--text { padding: 0; }
.btl-mt5__guide { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 0; border-block: 1px solid var(--line); color: var(--text); }
.btl-mt5__guide:hover { color: var(--text); }
.btl-mt5__guide-icon { flex: none; color: var(--accent); }
.btl-mt5__guide-text { display: grid; gap: 2px; min-width: 0; }
.btl-mt5__guide-text strong { font-size: 15px; font-weight: 600; transition: color .2s; }
.btl-mt5__guide-text span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.btl-mt5__guide-go { flex: none; margin-left: auto; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.btl-mt5__guide:hover strong { color: #fff; }
.btl-mt5__guide:hover .btl-mt5__guide-go { transform: translateX(3px); color: var(--text); }
.btl-mt5__fix { margin: 0; font-size: 14px; }
.btl-mt5__fix a, .btl-mt5__help a { color: var(--accent); font-weight: 600; }
.btl-mt5__fix a:hover, .btl-mt5__help a:hover { color: var(--accent-amber); }
.btl-season-now__alert { margin: 0 0 16px; }
.btl-season-now__alert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.btl-link-danger { color: var(--danger); font-weight: 600; font-size: 14.5px; }
.btl-link-danger:hover { color: #ff8a87; }
.btl-dash-empty { padding: 64px var(--gutter); max-width: 640px; }

/* ---------- Dashboard: invite traders ---------- */
.btl-refer { display: grid; gap: 24px; }
.btl-refer__text { margin: 10px 0 18px; max-width: 520px; font-size: 15px; }
.btl-reflink { display: grid; gap: 10px; margin-bottom: 10px; }
.btl-reflink__input { font: 500 16px/1 var(--font-mono); color: var(--accent-amber); text-overflow: ellipsis; cursor: text; }
.btl-reflink__actions { display: flex; gap: 10px; }
.btl-reflink__btn { --h: 50px; flex: 1; }
.btl-copy-done { display: none; }
.btl-reflink__btn.is-copied .btl-copy-label { display: none; }
.btl-reflink__btn.is-copied .btl-copy-done { display: inline; }
.btl-refer__code { color: var(--text); font-weight: 700; }
.btl-refer__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.btl-refer__stats div { padding: 14px 0; border-top: 1px solid var(--line); }
.btl-refer__stats span { display: block; font-size: 13px; color: var(--muted); }
.btl-refer__stats strong { display: block; margin-top: 8px; font: 800 32px/1 var(--font-display); }
.btl-refer__joined { color: var(--accent-amber); }
.btl-reflist__avatar { display: block; width: 30px; height: 30px; border-radius: 9px; object-fit: cover; background: var(--surface-3); }
.btl-reflist__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btl-refer__empty { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (min-width: 560px) {
	.btl-reflink { grid-template-columns: 1fr auto; }
	.btl-reflink__btn { flex: none; padding: 0 20px; }
}
@media (min-width: 900px) { .btl-refer { grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; } }

/* Referral rewards: balance, payout wallet, invites, history */
.btl-tabpanel > .btl-panel { scroll-margin-top: calc(var(--header-h) + 72px); }
.btl-rewards { display: grid; gap: 28px; }
.btl-rewards__label { margin: 16px 0 8px; font-size: 13px; color: var(--muted); }
.btl-rewards__amount { margin: 0 0 18px; font: 800 clamp(40px, 6vw, 56px)/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.btl-rewards__payout { display: grid; gap: 18px; align-content: start; min-width: 0; }
.btl-rewards__payout .btl-alert { margin: 0; }
.btl-rewards__wallet { font: 500 14.5px/1 var(--font-mono); letter-spacing: -.01em; }
.btl-rewards .btl-switch { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.btl-rewards__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btl-rewards__open { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; }
.btl-rewards__open span { font-size: 13px; color: var(--muted); }
.btl-rewards__open strong { font: 800 26px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.btl-rewards__open em { font-style: normal; font-size: 13.5px; color: var(--text-2); }
.btl-rewards__how { margin: 0; padding: 0; list-style: none; counter-reset: how; }
.btl-rewards__how li { counter-increment: how; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.btl-rewards__how li::before { content: counter(how); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .06); font: 600 13px/1 var(--font); color: var(--text); }
@media (min-width: 900px) { .btl-rewards { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; } .btl-rewards__payout { padding-top: 6px; } }
@media (max-width: 559px) { .btl-rewards__actions .btl-btn { flex: 1; } }
.btl-invitee { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; color: inherit; }
.btl-invitee:hover .btl-reflist__name { color: #fff; }
.btl-table--rewards td.is-plus { color: var(--green); font-weight: 600; }
.btl-table--rewards td.is-minus { font-weight: 600; }
.btl-table--rewards tr.is-void td { color: var(--muted); }
.btl-table--rewards tr.is-void td.num { color: var(--muted); text-decoration: line-through; }
.btl-table--rewards td.num::before { font-weight: 400; text-decoration: none; }

/* Profile photo row in settings */
.btl-photo-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px 16px; padding: 4px 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.btl-photo-row__img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line-2); }
.btl-photo-row__text { display: grid; gap: 2px; }
.btl-photo-row__text strong { font-size: 15px; }
.btl-photo-row__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.btl-photo-row__actions form { margin: 0; }
.btl-btn--text { background: none; border-color: transparent; padding: 0 12px; }
@media (min-width: 560px) { .btl-photo-row { grid-template-columns: 64px 1fr auto; } .btl-photo-row__actions { grid-column: auto; } }
.btl-setting__body .btl-photo-row { margin-bottom: 0; padding-top: 0; }

/* ==========================================================================
   Trader profile: rating card, tabs, panels (ranking & championship system)
   ========================================================================== */
.is-up { color: var(--green) !important; }
.is-down { color: var(--danger) !important; }

/* Division progress bar (shared) */
.btl-progress { --div: var(--accent); position: relative; height: 6px; margin: 10px 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.btl-progress span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--grad); }

/* Charts: fixed-height plot (stretched SVG, non-scaling strokes) + HTML dots/labels */
.btl-chart-wrap { margin: 0; }
.btl-chart { margin: 0; }
.btl-chart__plot { position: relative; height: 200px; margin-right: 64px; }
.btl-chart--rating .btl-chart__plot { height: 220px; }
@media (min-width: 900px) { .btl-chart__plot { height: 240px; } .btl-chart--rating .btl-chart__plot { height: 260px; } }
.btl-season-perf .btl-chart__plot { height: 190px; }
.btl-rating-progress .btl-chart__plot { height: 150px; }
.btl-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.btl-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.btl-chart__line--up { stroke: var(--green); }
.btl-chart__line--down { stroke: var(--danger); }
.btl-chart__area { fill: rgba(255, 90, 31, .12); }
.btl-chart__area--up { fill: rgba(47, 212, 122, .09); }
.btl-chart__area--down { fill: rgba(255, 91, 87, .09); }
.btl-chart__threshold, .btl-chart__baseline { stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 4 5; }
.btl-chart__band { opacity: .08; }
.btl-chart__band--bronze { fill: #d08a4e; } .btl-chart__band--silver { fill: #c9d1dc; } .btl-chart__band--gold { fill: #f0c04a; }
.btl-chart__band--platinum { fill: #6fd6c8; } .btl-chart__band--diamond { fill: #5cb8ff; } .btl-chart__band--master { fill: #a77bff; } .btl-chart__band--legend { fill: #ff7a1a; }
.btl-chart__dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #0b0d12; border: 2.5px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.btl-chart__dot--up { border-color: var(--green); box-shadow: 0 0 0 4px rgba(47, 212, 122, .15); }
.btl-chart__dot--down { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 91, 87, .15); }
.btl-chart__dot b { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font: 700 11px/1 var(--font-mono); color: var(--text-2); white-space: nowrap; }
.btl-chart__band-label { position: absolute; transform: translate(10px, -50%); font: 500 11.5px/1 var(--font); color: var(--muted); white-space: nowrap; }
.btl-chart__axis { position: relative; height: 26px; margin-right: 64px; }
.btl-chart__axis span { position: absolute; top: 9px; transform: translateX(-50%); font: 600 11px/1 var(--font); letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.btl-chart__axis span.is-start { transform: none; }
.btl-chart__axis span.is-end { transform: translateX(-100%); }
@media (max-width: 559px) { .btl-chart__dot b { display: none; } .btl-chart__plot, .btl-chart__axis { margin-right: 56px; } }

/* Tables (cards on mobile) */
.btl-table-wrap { margin: 0 -4px; }
.btl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.btl-table { font-variant-numeric: tabular-nums; }
.btl-table th { padding: 10px 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.btl-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.btl-table tr:last-child td { border-bottom: 0; }
.btl-table .num { text-align: right; white-space: nowrap; }
.btl-table td strong { display: block; color: #fff; font-weight: 600; }
.btl-table td em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 759px) {
	.btl-table thead { display: none; }
	.btl-table, .btl-table tbody, .btl-table tr, .btl-table td { display: block; width: 100%; }
	.btl-table tr { padding: 12px 4px; border-bottom: 1px solid var(--line); }
	.btl-table tr:last-child { border-bottom: 0; }
	.btl-table td { display: block; padding: 5px 0; border: 0; text-align: right; overflow: hidden; }
	.btl-table td::before { content: attr(data-label); float: left; margin-right: 12px; padding-top: 2px; font-size: 13px; color: var(--muted); text-align: left; }
	.btl-table td:first-child { display: block; text-align: left; padding-bottom: 8px; }
	.btl-table td:first-child::before { content: none; }
	.btl-table .num { text-align: right; }
}
.btl-tag { display: inline-flex; align-items: center; height: 22px; margin-left: 6px; padding: 0 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 600 12px/1 var(--font); color: var(--text-2); white-space: nowrap; vertical-align: 1px; }
.btl-tag--gold { background: var(--gold-soft); border-color: rgba(232, 185, 74, .35); color: var(--gold); }
.btl-tag--down { background: var(--danger-soft); border-color: rgba(255, 91, 87, .3); color: #ffb4b1; }
.btl-tag--live { color: var(--green); border-color: rgba(47, 212, 122, .3); }
.btl-tag--belt-pending_verification { color: var(--accent-amber); }
.btl-tag--belt-approved, .btl-tag--belt-shipped { color: #8fd3ff; }
.btl-tag--belt-delivered { color: var(--green); }
.btl-tag--belt-revoked { color: var(--danger); }
.btl-division-inline { display: inline-flex; align-items: center; gap: 6px; }
.btl-division-badge { flex: none; }

/* ==========================================================================
   Trader profile (reference layout)
   ========================================================================== */
.btl-dash { padding-top: 0; }

/* Profile header: identity, then one row of rating facts. */
.btl-hero { --div: #c9d1dc; position: relative; padding-top: 32px; }
.btl-hero--bronze, .btl-statbar--bronze, .btl-div--bronze { --div: #d08a4e; }
.btl-hero--silver, .btl-statbar--silver, .btl-div--silver { --div: #d6dce5; }
.btl-hero--gold, .btl-statbar--gold, .btl-div--gold { --div: #f0c04a; }
.btl-hero--platinum, .btl-statbar--platinum, .btl-div--platinum { --div: #6fd6c8; }
.btl-hero--diamond, .btl-statbar--diamond, .btl-div--diamond { --div: #5cb8ff; }
.btl-hero--master, .btl-statbar--master, .btl-div--master { --div: #b48bff; }
.btl-hero--legend, .btl-statbar--legend, .btl-div--legend { --div: #ff8a1f; }
.btl-hero__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 20px; }
.btl-hero__id { min-width: 0; }
.btl-hero__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font: 800 clamp(34px, 7vw, 68px)/.95 var(--font-display); word-break: break-word; }
.btl-verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #1a0a02; }
.btl-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.btl-hero__meta > * { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-left: 1px solid var(--line-2); }
.btl-hero__meta > :first-child { padding-left: 0; border-left: 0; }
.btl-hero__meta .btl-flag { font-size: 17px; }
.btl-hero__btlid { position: relative; background: none; border: 0; border-left: 1px solid var(--line-2); color: var(--text-2); cursor: pointer; font-size: 14px; }
.btl-hero__btlid:hover { color: #fff; }
.btl-hero__btlid .btl-chip__copied { border-radius: 6px; font-size: 11px; }
.btl-hero__btlid.is-copied .btl-chip__copied { opacity: 1; }
.btl-hero__discord svg { flex: none; color: #5865f2; }
.btl-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btl-hero__chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.btl-hero__chip svg { flex: none; padding: 5px; width: 28px; height: 28px; border-radius: 50%; color: #1a0d02; background: linear-gradient(135deg, #ffe08a, #c08a1e); }
.btl-hero__chip strong { display: block; font: 600 13.5px/1.2 var(--font); color: #f6dc9a; }
.btl-hero__chip em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: var(--muted); }
.btl-hero__chip--world { border-color: rgba(232, 185, 74, .4); }
.btl-hero__chip--bronze svg { background: linear-gradient(135deg, #f0b27a, #8a4f22); }
.btl-hero__chip--bronze strong { color: #f3c49a; }
/* The owner's MT5 account in the header: status at a glance, a shortcut to Settings → MT5 account. */
.btl-mt5-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text); transition: border-color .2s, background .2s; }
.btl-mt5-badge:hover { color: var(--text); border-color: var(--line-3); background: rgba(255, 255, 255, .06); }
.btl-mt5-badge__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.btl-mt5-badge__text strong { display: block; font: 600 13.5px/1.2 var(--font); }
.btl-mt5-badge__text em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--muted); }
.btl-mt5-badge.is-ok em { color: var(--green); }
.btl-mt5-badge.is-wait em { color: var(--accent-amber); }
.btl-mt5-badge.is-bad { border-color: rgba(255, 91, 87, .4); }
.btl-mt5-badge.is-bad em { color: #ffb4b1; }
.btl-mt5-badge.is-new { border-color: rgba(255, 90, 31, .45); }
.btl-mt5-badge.is-new .btl-mt5-badge__icon { color: var(--accent); }
.btl-mt5-badge__go { flex: none; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.btl-mt5-badge:hover .btl-mt5-badge__go { transform: translateX(2px); color: var(--text); }
.btl-hero__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btl-btn--outline { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btl-btn--outline:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); color: #fff; }
.btl-btn--outline .btl-copy-done { display: none; }
.btl-btn--outline.is-copied .btl-copy-label { display: none; }
.btl-btn--outline.is-copied .btl-copy-done { display: inline; }
.btl-btn--xs { --h: 32px; padding: 0 12px; font-size: 11.5px; border-radius: 9px; }

/* Share profile menu */
.btl-share { position: relative; }
.btl-share__menu {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 228px; padding: 6px;
	border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
	animation: menu-in .18s var(--ease);
}
.btl-share__item {
	display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none;
	font: 500 14px/1.2 var(--font); color: var(--text-2); text-align: left; text-decoration: none; cursor: pointer; transition: color .15s, background .15s;
}
.btl-share__item:hover, .btl-share__item:focus-visible { color: #fff; background: rgba(255, 255, 255, .05); }
.btl-share__item svg { flex: none; color: var(--muted); }
.btl-share__item:hover svg { color: var(--text); }
.btl-share__item .btl-copy-done { display: none; color: var(--green); }
.btl-share__item.is-copied .btl-copy-label { display: none; }
.btl-share__item.is-copied .btl-copy-done { display: inline; }
@media (max-width: 767px) { .btl-share__menu { left: 0; right: auto; } }
@media (min-width: 768px) {
	.btl-hero { padding-top: 48px; }
	.btl-hero__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
	.btl-hero__actions { grid-column: auto; }
}

/* Rating facts row: three numbers and the division block with its badge */
.btl-statbar { --div: #d6dce5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; margin-top: 32px; padding: 24px 0; border-block: 1px solid var(--line); }
.btl-statbar__cell { min-width: 0; }
.btl-statbar__label { display: block; font-size: 13px; color: var(--muted); }
.btl-statbar__label strong { font-weight: 600; color: var(--text); }
.btl-statbar__value { display: flex; align-items: center; gap: 8px; margin-top: 8px; font: 800 30px/1 var(--font-display); color: #fff; }
.btl-statbar__value--muted { color: var(--muted); }
.btl-statbar__hint { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.btl-statbar__hint strong { font-weight: 600; color: var(--text-2); }
.btl-statbar__division-cell { grid-column: 1 / -1; order: -1; display: flex; align-items: center; gap: 20px; }
.btl-statbar__badge { flex: none; line-height: 0; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.btl-statbar__badge .btl-division-badge { width: 72px; height: 72px; }
.btl-statbar__division-body { flex: 1; min-width: 0; }
.btl-statbar__value.btl-statbar__division { font-size: 34px; letter-spacing: .02em; text-transform: uppercase; color: var(--div); }
.btl-statbar__division-body .btl-progress { max-width: 360px; margin: 12px 0 0; }
.btl-delta { font: 600 13px/1 var(--font); letter-spacing: 0; }
@media (min-width: 900px) {
	.btl-statbar { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(360px, 1.6fr); gap: 24px 32px; align-items: center; }
	.btl-statbar__cell { align-self: start; }
	.btl-statbar__division-cell { grid-column: auto; order: 0; align-self: center; padding-left: 32px; border-left: 1px solid var(--line); }
	.btl-statbar__badge .btl-division-badge { width: 80px; height: 80px; }
}

/* "How rating works": a quiet text button, and the dialog it opens (one card over a dimmed page). */
.btl-how { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: 500 13px/1.4 var(--font); color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; cursor: pointer; }
.btl-how:hover, .btl-how:focus-visible { color: var(--text); text-decoration-color: currentColor; }
.btl-how svg { flex: none; }
.btl-statbar__division-body .btl-how { margin-top: 12px; }
.btl-panel .btl-how { margin-top: 12px; }
.btl-panel__meta .btl-how { margin: 0; font-size: inherit; }

.btl-dialog { width: min(560px, calc(100% - 32px)); max-width: none; max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.btl-dialog[open] { display: flex; flex-direction: column; animation: btl-dialog-in .2s var(--ease); }
.btl-dialog::backdrop { background: rgba(4, 5, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:has(.btl-dialog[open]) { overflow: hidden; }
@keyframes btl-dialog-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .btl-dialog[open] { animation: none; } }
.btl-dialog__body { flex: 1 1 auto; min-height: 0; padding: 24px 20px; overflow-y: auto; overscroll-behavior: contain; }
.btl-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.btl-dialog__title { margin: 0; font: 600 20px/1.3 var(--font); color: var(--text); }
.btl-dialog__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.btl-dialog__close:hover, .btl-dialog__close:focus-visible { color: var(--text); background: rgba(255, 255, 255, .06); }
.btl-dialog__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.btl-dialog__label { margin: 28px 0 8px; font: 600 13px/1.3 var(--font); color: var(--muted); }
.btl-dialog__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.btl-dialog__list li { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.btl-dialog__list strong { font-weight: 600; color: var(--text); }
.btl-dialog__formula { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.btl-dialog__equation { margin: 0; font: 600 15px/1.4 var(--font-mono); color: var(--text); }
.btl-dialog__terms { display: grid; gap: 8px; margin: 12px 0 0; }
.btl-dialog__terms div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.btl-dialog__terms dt { font: 600 14px/1.5 var(--font-mono); color: var(--text); }
.btl-dialog__terms dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.btl-dialog__note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.btl-dialog__label + .btl-dialog__formula { margin-top: 0; padding-top: 0; border-top: 0; }
.btl-dialog__terms dd strong { font-weight: 600; color: var(--text); }
.btl-dialog__example { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.btl-dialog__example p { margin: 0 0 6px; }
.btl-dialog__example ul { margin: 8px 0 12px; padding-left: 18px; }
.btl-dialog__example li { margin-bottom: 2px; }
.btl-dialog__example .btl-dialog__equation { margin: 0 0 8px; }
.btl-dialog__foot { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.btl-dialog__foot a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.btl-dialog__foot a:hover { color: var(--text); }
@media (min-width: 600px) { .btl-dialog__body { padding: 28px 32px 32px; } }

/* The division ladder: top division first, the trader's own row highlighted in its colour. */
.btl-ladder { margin: 0; padding: 0; list-style: none; }
.btl-ladder__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-top: 1px solid var(--line); }
.btl-ladder__row:first-child, .btl-ladder__row.is-current, .btl-ladder__row.is-current + .btl-ladder__row { border-top-color: transparent; }
.btl-ladder__row .btl-division-badge { width: 32px; height: 32px; }
.btl-ladder__name { min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.btl-ladder__range { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btl-ladder__row.is-current { padding-block: 12px; border-radius: var(--r); background: rgba(255, 255, 255, .05); }
.btl-ladder__row.is-current .btl-ladder__name { color: var(--div); }
.btl-ladder__row.is-current .btl-ladder__range { color: var(--text-2); }
.btl-ladder__you { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }

/* Tabs: text with an underline, sticky under the site header */
.btl-profile-body { margin-top: 8px; }
.btl-tabs { position: sticky; top: var(--header-h); z-index: 20; margin: 0 0 24px; background: rgba(7, 8, 11, .9); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 100vmax rgba(7, 8, 11, .9); clip-path: inset(0 -100vmax); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
/* Horizontal only: the 1px padding holds the underline (bottom: -1px) so nothing overflows vertically. */
.btl-tabs__list { display: flex; gap: 28px; margin-bottom: -1px; padding-bottom: 1px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
@media (max-width: 759px) { .btl-tabs__list { padding-right: 32px; mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); } }
.btl-tabs__list::-webkit-scrollbar { display: none; }
.btl-tabs__tab { position: relative; flex: none; padding: 18px 0 16px; font: 600 14.5px/1 var(--font); color: var(--muted); white-space: nowrap; transition: color .2s; }
.btl-tabs__tab:hover { color: var(--text); }
.btl-tabs__tab.is-active { color: #fff; }
.btl-tabs__tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.js .btl-tabpanel:not(.is-active) { display: none; }
.btl-tabpanel { display: grid; gap: 16px; outline: none; }
.btl-tabpanel + .btl-tabpanel { margin-top: 16px; }
.js .btl-tabpanel + .btl-tabpanel { margin-top: 0; }
.btl-overview, .btl-performance, .btl-achievements-tab { display: grid; gap: 16px; }
.btl-panel__head { flex-wrap: wrap; }
.btl-panel__meta { font-size: 13px; }

/* Layout rows */
.btl-split { display: grid; gap: 14px; }
@media (min-width: 1000px) { .btl-split { grid-template-columns: 1.35fr 1fr; } .btl-split--even { grid-template-columns: 1fr 1fr; } }

/* Current season */
.btl-live-mark { margin-left: 8px; font: 600 14px/1 var(--font); color: var(--accent); animation: btl-live-text 1.8s ease-in-out infinite; }
.btl-season-now__name { text-align: right; font-size: 13px; line-height: 1.5; color: var(--muted); }
.btl-season-now__name strong { display: block; color: var(--text-2); font-weight: 600; }
.btl-season-now__name span { display: block; }
.btl-season-now__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 16px; }
.btl-season-now__stats > div { padding: 14px 0; border-top: 1px solid var(--line); }
.btl-season-now__stats dt { font-size: 13px; color: var(--muted); }
.btl-season-now__stats dd { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 0; font: 800 28px/1 var(--font-display); color: #fff; white-space: nowrap; }
.btl-status-active { color: var(--green) !important; }
.btl-status-out { color: #ffb4b1 !important; }
.btl-season-now__risk.is-warn { color: var(--accent-amber); }
.btl-season-now__note { margin: -4px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.btl-season-now__note a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.btl-season-now__note a:hover { color: var(--text); }
@media (min-width: 700px) { .btl-season-now__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.btl-neighbors { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.btl-neighbors li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.btl-neighbors li.is-me { background: rgba(255, 90, 31, .08); box-shadow: inset 2px 0 0 var(--accent); }
.btl-neighbors__rank { font: 700 13px/1 var(--font-mono); color: var(--muted); }
.is-me .btl-neighbors__rank { color: var(--accent-amber); }
.btl-neighbors__who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.btl-neighbors__avatar { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; }
.btl-neighbors__ret { font: 700 14px/1 var(--font-mono); }
.btl-neighbors__eq { font: 600 14px/1 var(--font-mono); color: var(--text-2); }
.btl-neighbors__spark { display: none; }
@media (min-width: 560px) { .btl-neighbors li { grid-template-columns: 36px minmax(0, 1fr) 80px 96px 90px; } .btl-neighbors__spark { display: block; } }
.btl-spark { display: block; width: 100%; height: 26px; }
.btl-spark path { fill: none; stroke-width: 1.6; }
.btl-spark--up path { stroke: var(--green); }
.btl-spark--down path { stroke: var(--danger); }
.btl-spark--me path { stroke: var(--accent); }
.btl-season-perf__ret { font: 800 24px/1 var(--font-display); }
.btl-next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.btl-next-step .btl-muted { margin: 6px 0 0; max-width: 560px; }
.btl-next-step__main { flex: 1 1 420px; min-width: 0; }
.btl-next-step__state { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--green); }
.btl-next-step__state.is-wait { color: var(--accent-amber); }
.btl-next-step__state.is-bad { color: var(--danger); }
.btl-next-step__state.is-muted { color: var(--muted); }
.btl-next-step__title { font: 800 26px/1.05 var(--font-display) !important; text-transform: uppercase !important; letter-spacing: .01em !important; }
.btl-next-step__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 16px 0 0; }
.btl-next-step__facts dt { font-size: 12.5px; color: var(--muted); }
.btl-next-step__facts dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.btl-next-step__note { margin: 12px 0 0 !important; }
.btl-next-step > form, .btl-next-step > .btl-btn, .btl-next-step > span { flex: none; }


/* Rating progress */
.btl-chart__dot--last { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--accent-amber); border-color: #fff; }
.btl-chart__dot--last b { bottom: 16px; padding: 3px 6px; border-radius: 6px; background: rgba(255, 176, 32, .15); border: 1px solid rgba(255, 176, 32, .5); color: #ffd36b; }
.btl-chart__body { display: flex; }
.btl-chart__y { position: relative; width: 44px; flex: none; }
.btl-chart__y span { position: absolute; right: 8px; transform: translateY(-50%); font: 600 10.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.btl-chart__body .btl-chart__plot { flex: 1; margin-right: 0; }
.btl-chart__axis { margin-left: 44px; margin-right: 0; }
.btl-chart__grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.btl-chart__grid--zero { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 4 5; }

/* Achievement tiles */
.btl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 0; padding: 8px 0 4px; list-style: none; }
@media (min-width: 560px) { .btl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .btl-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .btl-split .btl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.btl-tile { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 0 4px; text-align: center; }
.btl-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(135deg, #ff9a3c, #c9400c); box-shadow: 0 6px 16px -6px rgba(255, 90, 31, .7); }
.btl-tile__icon .btl-division-badge { width: 40px; height: 40px; }
.btl-tile--btl_champion .btl-tile__icon, .btl-tile--triple_champion .btl-tile__icon, .btl-tile--world_champion .btl-tile__icon { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(135deg, #ffe08a, #b8801a); color: #2a1a02; box-shadow: 0 6px 16px -6px rgba(232, 185, 74, .8); }
.btl-tile--podium .btl-tile__icon { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .4), transparent 55%), linear-gradient(135deg, #eef1f5, #8792a2); color: #1d2129; box-shadow: none; }
.btl-tile--global_top10 .btl-tile__icon, .btl-tile--global_1 .btl-tile__icon { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .3), transparent 55%), linear-gradient(135deg, #8fd3ff, #2f6fbe); box-shadow: 0 6px 16px -6px rgba(92, 184, 255, .7); }
.btl-tile--diamond .btl-tile__icon, .btl-tile--master .btl-tile__icon, .btl-tile--legend .btl-tile__icon { background: rgba(255, 255, 255, .04); box-shadow: none; }
.btl-tile__title { margin-top: 6px; font: 600 14.5px/1.25 var(--font); color: #fff; }
.btl-tile__caption { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.btl-tile.is-unlocked .btl-tile__title { color: #ffd9a8; }
.btl-tile.is-locked .btl-tile__icon { filter: grayscale(1) brightness(.75); box-shadow: none; }
.btl-tile.is-locked .btl-tile__title { color: var(--text-2); }
.btl-tile__lock { position: absolute; top: 2px; right: calc(50% - 50px); color: var(--muted); }

/* History table */
.btl-table__season { font-weight: 600; color: #fff; }
.btl-table__note { margin-left: 6px; font-size: 12px; }
.btl-result { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--font); }
.btl-result--podium { color: var(--gold); }
.btl-table--history td.num { font-weight: 600; }

/* Titles (Achievements tab) */
.btl-honors { display: flex; flex-wrap: wrap; gap: 10px; }
.btl-honor { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.btl-honor--world { border-color: rgba(232, 185, 74, .4); }
.btl-honor__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #2a1a02; background: linear-gradient(135deg, #ffe08a, #b8801a); }
.btl-honor strong { display: block; font: 600 14.5px/1.2 var(--font); color: #f6dc9a; }
.btl-honor em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--muted); }
.btl-belts { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.btl-belts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.btl-belts li > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.btl-belts svg { color: var(--gold); }
@media (max-width: 559px) {
	.btl-hero__meta { gap: 6px 16px; }
	.btl-hero__meta > *, .btl-hero__btlid { padding: 0; border-left: 0; }
}

/* Raster artwork (achievements / divisions) when provided */
.btl-ach-img, img.btl-division-badge { display: block; object-fit: contain; }
/* Artwork stands on a soft spotlight: grey and quiet while locked, warm once earned. */
.btl-tile__icon.has-image { width: 84px; height: 84px; margin-bottom: 2px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent); box-shadow: none; }
.btl-tile__icon.has-image .btl-ach-img, .btl-tile__icon.has-image .btl-division-badge { width: 84px; height: 84px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); }
.btl-tile.is-unlocked .btl-tile__icon.has-image { background: radial-gradient(closest-side, rgba(255, 150, 60, .22), transparent); }
.btl-tile.is-locked .btl-tile__icon.has-image { filter: none; }
.btl-tile.is-locked .btl-tile__icon.has-image img { filter: grayscale(1) brightness(1.05) drop-shadow(0 10px 16px rgba(0, 0, 0, .5)); opacity: .55; }
@media (min-width: 768px) {
	.btl-tile__icon.has-image, .btl-tile__icon.has-image .btl-ach-img, .btl-tile__icon.has-image .btl-division-badge { width: 96px; height: 96px; }
	.btl-tile__lock { right: calc(50% - 56px); }
}
.btl-hero__chip-icon { display: grid; place-items: center; flex: none; }
.btl-hero__chip-icon.has-image svg { display: none; }
.btl-hero__chip-icon.has-image .btl-ach-img { width: 34px; height: 34px; }
.btl-honor__icon.has-image { background: none; width: 48px; height: 48px; }

/* ==========================================================================
   Season page (/season/{slug}/) — live and final standings
   ========================================================================== */
.btl-season-page { position: relative; display: grid; gap: 40px; padding-top: 32px; }

/* A running or finished season: a compact header, then the standings and "Prizes & rules" tabs. */
.btl-season-top { display: grid; gap: 12px; }
.btl-season-top .btl-season-hero__subtitle { margin: 0; }
.btl-season-top__status { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 6px 0 0; font-size: 15px; color: var(--text-2); }
.btl-season-top__status b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.btl-season-top__state { font-weight: 600; color: var(--text); }
.btl-season-top__state.is-live { color: var(--green); }
.btl-season-page .btl-season-tabs { margin-top: -16px; }
.btl-season-tabs .btl-tabs { margin-bottom: 20px; }
.btl-season-info { display: grid; gap: 32px; }
.btl-season-page .btl-season-info > * { grid-area: auto; } /* The hero's named areas do not apply here. */
.btl-season-info .btl-season-hero__facts { padding-top: 0; border-top: 0; }
.btl-season-info__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.btl-season-info__legal a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.btl-season-info__legal a:hover { color: var(--text); }
@media (min-width: 900px) {
	.btl-season-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; }
	.btl-season-info .btl-season-hero__facts, .btl-season-info__legal { grid-column: 1 / -1; }
}

/* Hero: what the season is (left) and what to do now (the card, right). */
.btl-season-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "facts" "prizes" "rules"; gap: 32px; }
.btl-season-hero__head { grid-area: head; }
.btl-season-hero__title { margin: 0; font: 800 clamp(48px, 9vw, 88px)/.9 var(--font-display); text-transform: uppercase; color: #fff; }
.btl-season-hero__subtitle { margin: 14px 0 0; font-size: 18px; font-weight: 500; color: var(--text-2); }
.btl-season-hero__facts { grid-area: facts; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 20px 32px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.btl-season-hero__facts dt { font-size: 13px; color: var(--muted); }
.btl-season-hero__facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--text); }
.btl-season-hero__label { margin: 0 0 4px; font: 500 13px/1.4 var(--font); color: var(--muted); }
.btl-season-hero__prizes { grid-area: prizes; }
.btl-season-hero__prizes ol { margin: 0; padding: 0; list-style: none; }
.btl-season-hero__prizes li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.btl-season-hero__prizes span { font-size: 14px; color: var(--text-2); }
.btl-season-hero__prizes strong { font-size: 17px; font-weight: 600; color: var(--text); }
.btl-season-hero__prizes .is-1 strong { color: var(--gold); }
.btl-season-hero .btl-season-hero__rules { grid-area: rules; }
.btl-season-hero__rules ul { margin: 0; padding: 0; list-style: none; }
.btl-season-hero__rules li { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.btl-season-hero__rules strong { font-size: 15px; }
.btl-season-hero__rules-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.btl-season-hero__rules-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.btl-standings__why { margin-right: 8px; color: #ffb4b1; }

.btl-season-card { grid-area: card; align-self: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.btl-season-card__status { margin: 0; font-size: 14px; font-weight: 600; color: var(--green); }
.btl-season-card__status.is-closed { color: var(--text-2); }
.btl-season-hero.is-live .btl-season-card__status { color: var(--accent); animation: btl-live-text 1.8s ease-in-out infinite; }
.btl-season-card__when { margin: 14px 0 0; }
.btl-season-card__when span { display: block; font-size: 13px; color: var(--muted); }
.btl-season-card__when strong { display: block; margin: 6px 0; font: 800 44px/1 var(--font-display); color: #fff; }
.btl-season-card__note { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.btl-season-card__fee { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.btl-season-card__fee dt { font-size: 14px; color: var(--text-2); }
.btl-season-card__fee dd { margin: 0; font: 800 28px/1 var(--font-display); text-transform: uppercase; color: #fff; }
.btl-season-card__fee dd span { margin-left: 6px; font: 600 14px/1 var(--font); text-transform: none; color: var(--green); }
.btl-season-card__method { margin: 6px 0 0; font-size: 13px; text-align: right; color: var(--muted); }
.btl-season-card__minimum { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.btl-season-register { display: grid; gap: 12px; margin-top: 20px; }
.btl-season-register .btl-alert { margin: 0; }
.btl-season-register form { margin: 0; }
.btl-season-register .btl-btn:not(.btl-btn--sm) { width: 100%; }
.btl-season-register__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.btl-season-register__note a { color: var(--accent); }
.btl-season-register__done { margin: 0; font: 700 22px/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.btl-season-card__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.btl-season-card__legal a { color: var(--muted); }
.btl-season-card__legal a:hover { color: var(--text); }
.btl-season-card__terms { flex: 1 0 100%; line-height: 1.5; color: var(--text-2); }
.btl-next-step .btl-panel__title a { color: inherit; text-decoration: none; }
.btl-next-step .btl-panel__title a:hover { color: var(--accent); }
@media (min-width: 960px) {
	.btl-season-page { padding-top: 56px; gap: 56px; }
	.btl-season-hero { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto auto 1fr; grid-template-areas: "head card" "facts card" "prizes card" "rules card"; gap: 40px 64px; }
}

.btl-standings__head { gap: 8px 16px; }
.btl-standings__updated { margin-right: auto; font-size: 13px; }
.btl-standings__filter { width: 220px; max-width: 100%; height: 40px; padding: 0 12px; font-size: 14px; }
.btl-standings__table td { padding-top: 10px; padding-bottom: 10px; }
.btl-standings__pos strong { display: inline; font: 800 18px/1 var(--font-display); color: var(--text); }
.btl-standings__pos .btl-delta { display: block; margin-top: 4px; font-size: 11.5px; }
.btl-standings__table .is-top-1 .btl-standings__pos strong { color: var(--gold); }
.btl-standings__table .is-top-2 .btl-standings__pos strong { color: #d6dce5; }
.btl-standings__table .is-top-3 .btl-standings__pos strong { color: #e3a26f; }
.btl-standings__table tr.is-top-1 { background: linear-gradient(90deg, rgba(232, 185, 74, .08), transparent 55%); }
.btl-standings__table tr.is-dq, .btl-standings__table tr.is-waiting { opacity: .6; }
.btl-standings__dq { font: 700 12px/1 var(--font); letter-spacing: .08em; color: var(--danger); }
.btl-standings__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.btl-standings__avatar { display: block; flex: none; width: 32px; height: 32px; border-radius: 9px; object-fit: cover; background: var(--surface-3); }
.btl-standings__who .btl-standings__avatar { width: 36px; height: 36px; border-radius: 10px; }
.btl-standings__name { display: block; overflow: hidden; font-weight: 600; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
a.btl-standings__name:hover { color: var(--accent); }
.btl-standings__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.btl-standings__meta em { font-style: normal; }
.btl-standings__div { font-weight: 600; color: var(--div, var(--text-2)); }
.btl-standings__div::before { content: "·"; margin-right: 8px; font-weight: 400; color: var(--muted); }
.btl-standings__ret { font: 600 15px/1 var(--font-mono); }
.btl-standings__table td.num { font-family: var(--font-mono); }
.btl-standings__prize { font-size: 13px; color: var(--text-2); }
.btl-standings__table .is-top-1 .btl-standings__prize { color: var(--gold); }
.btl-standings__note { margin: 14px 0 0; font-size: 12.5px; }
.btl-standings__table tr[hidden] { display: none !important; }
/* The season's trend, trades, and the daily and total drawdown with how much of each limit is used. */
.btl-standings__table th.btl-standings__trend, .btl-standings__table td.btl-standings__trend { width: 112px; }
.btl-standings__trend .btl-spark { width: 96px; height: 26px; }
.btl-spark--flat path { stroke: var(--muted); }
.btl-standings__trades { color: var(--text-2); }
.btl-standings__table th[title] { cursor: help; }
.btl-standings__dd { line-height: 1.2; white-space: nowrap; }
.btl-standings__dd.is-empty { color: var(--muted); }
.btl-standings__risk { display: block; width: 64px; height: 3px; margin: 7px 0 0 auto; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.btl-standings__risk i { display: block; height: 100%; border-radius: inherit; background: var(--text-2); }
.btl-standings__dd.is-warn .btl-standings__risk i { background: var(--accent-amber); }
.btl-standings__dd.is-out .btl-standings__risk i { background: var(--danger); }

/* Places in the money: a gold edge, and a line after the last of them. */
.btl-standings__table tr.is-prize td:first-child { box-shadow: inset 2px 0 0 rgba(232, 185, 74, .7); }
.btl-standings__table tr.btl-standings__zone td { padding: 0; border-bottom: 0; }
.btl-standings__zone span { display: flex; align-items: center; gap: 12px; padding: 4px 12px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: rgba(232, 185, 74, .85); }
.btl-standings__zone span::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(232, 185, 74, .45), transparent); }

/* The viewer's own row; "My place" scrolls to it. Numbers that changed in a refresh light up briefly. */
.btl-standings__table tr.is-me td { background: rgba(255, 90, 31, .06); }
.btl-standings__table tr.is-me td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.btl-standings__table tr.is-pinged td { animation: btl-ping 1.8s var(--ease); }
@keyframes btl-ping { 0%, 35% { background: rgba(255, 90, 31, .2); } }
.btl-standings__table .is-changed { border-radius: 6px; animation: btl-changed 2.4s var(--ease); }
@keyframes btl-changed { 0%, 30% { background: rgba(255, 255, 255, .12); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .btl-standings__table tr.is-pinged td, .btl-standings__table .is-changed { animation: none; } }

/* The podium: the top three above the table, the winner in the middle on wide screens. */
.btl-podium-wrap:empty { display: none; }
.btl-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.btl-podium__card { display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 0; padding: 18px 12px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.btl-podium__card.is-1 { border-color: rgba(232, 185, 74, .4); background: linear-gradient(180deg, rgba(232, 185, 74, .07), var(--surface) 65%); }
.btl-podium__place { font: 800 15px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #e3a26f; }
.is-1 .btl-podium__place { color: var(--gold); }
.is-2 .btl-podium__place { color: #d6dce5; }
.btl-podium__avatar { display: block; width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--surface-3); }
.is-1 .btl-podium__avatar { width: 64px; height: 64px; box-shadow: 0 0 0 2px rgba(232, 185, 74, .5); }
.btl-podium__name { max-width: 100%; overflow: hidden; font-weight: 600; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
a.btl-podium__name:hover { color: var(--accent); }
.btl-podium__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; font-size: 12.5px; color: var(--muted); }
.btl-podium__ret { margin-top: 2px; font: 800 28px/1 var(--font-display); }
.btl-podium__eq { font: 500 13px/1 var(--font-mono); color: var(--text-2); }
.btl-podium__prize { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.is-1 .btl-podium__prize { color: var(--gold); }
@media (min-width: 760px) {
	.btl-podium { align-items: end; gap: 16px; }
	.btl-podium__card.is-1 { order: 2; padding: 26px 16px 22px; }
	.btl-podium__card.is-2 { order: 1; }
	.btl-podium__card.is-3 { order: 3; }
}

@media (max-width: 759px) {
	.btl-standings__filter { width: 100%; }
	.btl-podium { gap: 8px; }
	.btl-podium__card { gap: 4px; padding: 12px 6px; }
	.btl-podium__avatar, .is-1 .btl-podium__avatar { width: 40px; height: 40px; border-radius: 12px; }
	.btl-podium__eq, .btl-podium__country, .btl-podium__meta .btl-standings__div { display: none; } /* On phones the flag alone. */
	.btl-podium__ret { font-size: 20px; }
	.btl-podium__name { font-size: 13px; }
	.btl-podium__prize { display: -webkit-box; overflow: hidden; font-size: 11.5px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	/* One compact line per trader: place, trader, return; equity under the return, the drawdowns under both. */
	.btl-standings__table tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "pos who ret" "pos who eq" "pos daily total"; align-items: center; column-gap: 10px; padding: 10px 4px; }
	.btl-standings__table tr.btl-standings__zone { display: block; padding: 0; }
	.btl-standings__table tr.is-prize td:first-child, .btl-standings__table tr.is-me td:first-child { box-shadow: none; }
	.btl-standings__table tr.is-prize { box-shadow: inset 2px 0 0 rgba(232, 185, 74, .7); }
	.btl-standings__table tr.is-me { background: rgba(255, 90, 31, .06); box-shadow: inset 2px 0 0 var(--accent); }
	.btl-standings__table tr.is-me td { background: none; }
	.btl-standings__table td { padding: 0; }
	.btl-standings__table td::before { content: none; }
	.btl-standings__table td.btl-standings__pos { grid-area: pos; text-align: center; }
	.btl-standings__table td.btl-standings__trader { grid-area: who; padding: 0; text-align: left; }
	.btl-standings__table td.btl-standings__ret { grid-area: ret; align-self: end; }
	.btl-standings__table td.btl-standings__eq { grid-area: eq; align-self: start; padding-top: 3px; font-size: 12px; color: var(--muted); }
	.btl-standings__table td.btl-standings__trend, .btl-standings__table td.btl-standings__trades { display: none; }
	.btl-standings__table td.btl-standings__dd { padding-top: 6px; font-size: 12px; color: var(--text-2); }
	.btl-standings__table td.btl-standings__dd::before { content: attr(data-label) " "; font-family: var(--font); color: var(--muted); }
	.btl-standings__table td.btl-standings__daily { grid-area: daily; text-align: left; }
	.btl-standings__table td.btl-standings__total { grid-area: total; }
	.btl-standings__table td.btl-standings__dd.is-empty, .btl-standings__dd .btl-standings__risk { display: none; }
	.btl-standings__table td.btl-standings__dd.is-warn { color: var(--accent-amber); }
	.btl-standings__table td.btl-standings__dd.is-out { color: var(--danger); }
	.btl-standings__table .btl-standings__country { display: none; } /* The flag is enough; the division stays on the same line. */
	.btl-standings__table td:nth-child(n+9) { grid-column: 2 / -1; padding-top: 6px; font-size: 12.5px; }
	.btl-standings__table td:nth-child(n+9)::before { content: attr(data-label); float: left; color: var(--muted); }
}

/* ==========================================================================
   Rankings (/rankings/): divisions, the top three and the league table
   ========================================================================== */
.btl-rankings-page { gap: 28px; }
.btl-rankings-page .btl-season-top { margin-bottom: 8px; }
.btl-rankings-page .btl-season-top__status { align-items: center; }
.btl-rankings-page .btl-season-top__status a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.btl-rankings-page .btl-season-top__status a:hover { text-decoration-color: currentColor; }
.btl-rankings-page .btl-season-top__status .btl-how { font-size: inherit; }
.btl-rankings-page .btl-podium { margin: 0; }
.btl-podium__rating { color: #fff; }
.btl-ranks-empty { display: grid; justify-items: start; gap: 12px; }
.btl-ranks-empty p { max-width: 560px; margin: 0; }

/* Divisions: how many traders each holds; one opens its ranking. */
.btl-divstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.btl-divstrip::-webkit-scrollbar { display: none; }
.btl-divstrip__item { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 104px; padding: 12px 8px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text-2); text-align: center; transition: border-color .2s, background .2s, color .2s; }
.btl-divstrip__item:hover { border-color: var(--line-3); color: var(--text); }
.btl-divstrip__item.is-active { border-color: var(--div, var(--line-3)); background: rgba(255, 255, 255, .05); color: #fff; }
.btl-divstrip__item.is-empty:not(.is-active) { opacity: .45; }
.btl-divstrip__item.is-empty:hover { opacity: 1; }
.btl-divstrip__item .btl-division-badge { width: 32px; height: 32px; }
.btl-divstrip__name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.btl-divstrip__count { font: 600 13px/1 var(--font-mono); color: var(--muted); }
.btl-divstrip__item.is-active .btl-divstrip__count { color: var(--div, var(--text)); }
.btl-divstrip--ladder { margin: 0; padding: 0; list-style: none; }
.btl-divstrip--ladder .btl-divstrip__item:hover { border-color: var(--line); color: var(--text-2); }
.btl-divstrip--ladder .btl-divstrip__count { color: var(--div, var(--muted)); }

/* The table: rating with the last change, trend, career numbers. */
.btl-ranks__tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.btl-ranks__country { width: auto; max-width: 100%; height: 40px; padding: 0 40px 0 12px; font-size: 14px; background-position: right 14px center; }
.js .btl-ranks__go { display: none; }
.btl-ranks__table td.btl-ranks__rating strong { font: 700 16px/1 var(--font-mono); }
.btl-ranks__rating .btl-delta { display: block; margin-top: 4px; font-size: 11.5px; }
.btl-ranks__table td.btl-ranks__stat { color: var(--text-2); }
.btl-delta.is-new { font-size: 11px; letter-spacing: .02em; color: var(--text-2); }
.btl-ranks__table tr { scroll-margin-top: calc(var(--header-h) + 24px); }
.btl-ranks__table tr:target td { animation: btl-ping 2.4s var(--ease); }
.btl-ranks__pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; font-size: 13.5px; }
.btl-ranks__none { margin: 0; }
.btl-ranks__none a { margin-left: 6px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.btl-statbar__value a { color: inherit; }
.btl-statbar__value a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btl-ranks__table tr:target td { animation: none; background: rgba(255, 90, 31, .1); } }
@media (max-width: 759px) {
	.btl-divstrip { grid-auto-columns: 88px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
	.btl-divstrip__item { min-height: 92px; }
	.btl-ranks__tools, .btl-ranks__country { width: 100%; }
	.btl-ranks__table tr { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "pos who rate"; }
	.btl-ranks__table td.btl-ranks__rating { grid-area: rate; }
	.btl-ranks__table td.btl-ranks__stat { display: none; }
}

.btl-registered { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.btl-registered li, .btl-registered a { display: inline-flex; align-items: center; gap: 8px; }
.btl-registered li { padding: 6px 12px 6px 6px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-weight: 600; }
/* A trader with a public profile: the whole chip opens it. */
.btl-registered li:has(> a) { padding: 0; }
.btl-registered a { padding: 6px 12px 6px 6px; border-radius: inherit; color: inherit; text-decoration: none; }
.btl-registered a:hover { background: rgba(255, 255, 255, .05); color: var(--accent); }
.btl-registered a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btl-season-now__all { margin-left: auto; }

.cta-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Floating "Live" button (site-wide while a season runs) */
.btl-live-fab {
	position: fixed; z-index: 90; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 40px);
	transition: opacity .25s, transform .25s var(--ease);
}
.btl-live-fab[hidden] { display: none; }
.btl-live-fab.is-away, body.nav-open .btl-live-fab { opacity: 0; transform: translateY(14px); pointer-events: none; }
.btl-live-fab__link {
	display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 16px 10px 16px; border-radius: 14px; color: var(--text);
	background: rgba(12, 14, 19, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 90, 31, .5); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), var(--glow);
}
.btl-live-fab__links { display: grid; gap: 6px; min-width: 0; }
.btl-live-fab__link:hover { border-color: var(--accent); color: #fff; }
.btl-live-fab__label { font: 800 13px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); animation: btl-live-text 1.8s ease-in-out infinite; }
.btl-live-fab__text { display: grid; gap: 3px; min-width: 0; line-height: 1.1; }
.btl-live-fab__text strong { overflow: hidden; font: 700 15px/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.btl-live-fab__text span { font-size: 12px; color: var(--muted); }
.btl-live-fab__link svg { flex: none; color: var(--accent); }
.btl-live-fab__close { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; cursor: pointer; color: var(--muted); background: rgba(12, 14, 19, .94); border: 1px solid var(--line-2); }
.btl-live-fab__close:hover { color: #fff; }
@keyframes btl-live-text { 50% { opacity: .5; } }
@media (max-width: 559px) {
	.btl-live-fab { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
	.btl-live-fab__links { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.btl-live-fab__label, .btl-season-hero.is-live .btl-season-card__status { animation: none; }
}

/* Referral cookie notice */
.btl-consent {
	position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px; padding: 16px 18px;
	border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow);
	color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.btl-consent[hidden] { display: none; }
.btl-consent p { margin: 0 0 12px; }
.btl-consent a { color: var(--accent); }
.btl-consent__actions { display: flex; justify-content: flex-end; gap: 8px; }
.btl-consent:not([hidden]) ~ .btl-live-fab { display: none; }
@media (max-width: 560px) {
	.btl-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* MT5 guide (/connect-mt5/): steps on the left, "On this page" on the right from 1024px */
.btl-guide { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "steps" "problems"; gap: 36px; padding-top: 32px; }
.btl-guide__head { grid-area: head; max-width: 820px; }
.btl-guide__title { margin: 0; font: 800 clamp(44px, 8vw, 80px)/.9 var(--font-display); text-transform: uppercase; color: #fff; }
.btl-guide__lead { margin: 16px 0 0; max-width: 62ch; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.btl-guide__need { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 32px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.btl-guide__need dt { font-size: 15px; font-weight: 600; color: var(--text); }
.btl-guide__need dd { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.btl-guide__toc { display: none; grid-area: toc; }
.btl-guide__steps { grid-area: steps; max-width: 760px; margin: 0; padding: 0; list-style: none; counter-reset: btl-step; }
.btl-guide__step { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--line); counter-increment: btl-step; scroll-margin-top: calc(var(--header-h) + 16px); }
.btl-guide__step::before { content: counter(btl-step, decimal-leading-zero); display: block; margin-bottom: 8px; font: 800 32px/1 var(--font-display); color: var(--line-3); }
.btl-guide__step h2 { margin: 0 0 10px; font: 600 22px/1.25 var(--font); color: #fff; }
.btl-guide__step p { max-width: 64ch; margin: 0 0 14px; color: var(--text-2); }
.btl-guide__step .btl-guide__note { font-size: 14px; color: var(--muted); }
.btl-guide__step .btl-btn { margin-top: 4px; }
.btl-guide kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255, 255, 255, .04); font: 600 .9em/1.5 var(--font); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.btl-guide__sep { margin: 0 2px; color: var(--muted); }
.btl-guide__pairs { margin: 0 0 16px; }
.btl-guide__pairs div { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.btl-guide__pairs div:first-child { border-top: 1px solid var(--line); }
.btl-guide__pairs dt { min-width: 160px; font-weight: 600; color: var(--text); }
.btl-guide__pairs dd { margin: 0; color: var(--text-2); }
.btl-guide__sample { max-width: 520px; margin: 0 0 16px; padding: 4px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); }
.btl-guide__sample div { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 2px 14px; padding: 12px 0; }
.btl-guide__sample div + div { border-top: 1px solid var(--line); }
.btl-guide__sample dt { font-size: 13px; color: var(--muted); }
.btl-guide__sample dd { margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 600; color: #fff; }
.btl-guide__sample span { grid-column: 2; font-size: 13px; color: var(--text-2); }
.btl-guide__platforms { position: relative; margin: 0 0 16px; }
.btl-guide__platforms > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btl-guide__switch { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.btl-guide__switch label { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.btl-guide__switch label:hover { color: #fff; }
#btl-platform-desktop:checked ~ .btl-guide__switch [for="btl-platform-desktop"],
#btl-platform-ios:checked ~ .btl-guide__switch [for="btl-platform-ios"],
#btl-platform-android:checked ~ .btl-guide__switch [for="btl-platform-android"] { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
#btl-platform-desktop:focus-visible ~ .btl-guide__switch [for="btl-platform-desktop"],
#btl-platform-ios:focus-visible ~ .btl-guide__switch [for="btl-platform-ios"],
#btl-platform-android:focus-visible ~ .btl-guide__switch [for="btl-platform-android"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.btl-guide__platforms > [data-platform] { display: none; }
#btl-platform-desktop:checked ~ [data-platform="desktop"],
#btl-platform-ios:checked ~ [data-platform="ios"],
#btl-platform-android:checked ~ [data-platform="android"] { display: grid; }
.btl-guide__howto { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: btl-howto; }
.btl-guide__howto li { position: relative; padding-left: 36px; line-height: 1.6; color: var(--text-2); counter-increment: btl-howto; }
.btl-guide__howto li::before { content: counter(btl-howto); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--text); }
/* Walkthroughs: real iPhone screens (and a replica of the BTL form) play step by step: the target is
   spotlit, a finger or cursor travels to it and taps, fields fill in. The list beside it is the caption. */
.btl-demo { display: grid; align-items: start; gap: 24px; margin: 0 0 18px; }
.btl-demo__device { justify-self: center; width: min(264px, 76vw); }
.btl-demo__phone { position: relative; padding: 9px; border-radius: 48px; background: linear-gradient(145deg, #2a2c33, #0d0e12 45%, #1c1d22); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 70px -35px rgba(0, 0, 0, .95); }
.btl-demo__phone::before, .btl-demo__phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2b2d34; }
.btl-demo__phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 46px 0 #2b2d34; }
.btl-demo__phone::after { right: -3px; top: 27%; height: 14%; }
.btl-demo__screen { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 480 / 1040; border-radius: 40px; background: #000; container-type: inline-size; }
.btl-demo__shot { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.btl-demo__shot.is-on { visibility: visible; }
.btl-demo__status { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: 5.9%; padding: 0 7% 0 12%; color: #fff; pointer-events: none; }
.btl-demo__time { font: 600 4.6cqw/1 -apple-system, BlinkMacSystemFont, var(--font); letter-spacing: -.01em; }
.btl-demo__island { position: absolute; left: 50%; top: 21%; width: 32%; height: 63%; border-radius: 99px; background: #000; transform: translateX(-50%); }
.btl-demo__icons { width: 17cqw; height: auto; }
.btl-demo__typed { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: flex-end; background: #1a1a1c; color: #fff; font: 600 4.6cqw/1 var(--font); letter-spacing: .14em; visibility: hidden; }
.btl-demo__typed.is-on { visibility: visible; }
.btl-demo__typed.is-typing::after { content: ""; width: 1.5px; height: 1.2em; margin-left: 2px; background: #0a84ff; animation: btl-caret .9s steps(1) infinite; }
@keyframes btl-caret { 50% { opacity: 0; } }
.btl-demo__layers { position: absolute; inset: 0; }
.btl-demo__spot { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; border-radius: 2.8cqw; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .92), 0 0 0 999px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; }
.btl-demo__touch { position: absolute; z-index: 4; left: 0; top: 0; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; opacity: 0; pointer-events: none; will-change: transform; }
.btl-demo__touch i { position: absolute; inset: 0; border-radius: 50%; }
.btl-demo__core { background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), 0 2px 10px rgba(0, 0, 0, .25); }
.btl-demo__wave { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); opacity: 0; }
.btl-demo__bar { display: flex; justify-content: center; margin-top: 14px; }
.btl-demo__play { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text-2); cursor: pointer; }
.btl-demo__play:hover { color: #fff; border-color: var(--line-3); }
.btl-demo__play .i-play, .btl-demo.is-paused .btl-demo__play .i-pause { display: none; }
.btl-demo.is-paused .btl-demo__play .i-play { display: inline; }
.btl-demo.is-ready .btl-demo__steps li { cursor: pointer; color: var(--muted); transition: color .25s; }
.btl-demo.is-ready .btl-demo__steps li:hover { color: var(--text-2); }
.btl-demo.is-ready .btl-demo__steps li.is-active { color: #fff; }
.btl-demo.is-ready .btl-demo__steps li.is-active::before { border-color: rgba(255, 255, 255, .9); color: #fff; }
.btl-demo:not(.is-ready) .btl-demo__bar { display: none; }
/* Replica of the BTL pages inside the phone; sizes follow a 390 px wide screen (1 px ≈ .256cqw). */
.btl-mock { background: #07080b; color: var(--text); font-family: var(--font); }
.btl-mock__page { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 14cqw 4.1cqw 0; background: radial-gradient(110% 55% at 100% 0%, rgba(255, 90, 31, .13), transparent 60%), #07080b; visibility: hidden; }
.btl-mock__page.is-on { visibility: visible; }
.btl-mock__nav { display: flex; align-items: center; gap: 2cqw; width: 100%; margin-bottom: 6cqw; font: 800 4.1cqw/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.btl-mock__nav img { width: 7.5cqw; height: 7.5cqw; border-radius: 1.6cqw; }
.btl-mock__nav i { width: 8.5cqw; height: 8.5cqw; margin-left: auto; border-radius: 2.4cqw; border: 1px solid var(--line-2); background: linear-gradient(var(--text-2), var(--text-2)) center 38% / 3.4cqw 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center 62% / 3.4cqw 1.5px no-repeat; }
.btl-mock__photo { width: 22cqw; height: 22cqw; border-radius: 5cqw; background: linear-gradient(135deg, #ffb020, #ff3d00); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btl-mock__nick { margin-top: 3.6cqw; font: 800 9cqw/.95 var(--font-display); color: #fff; }
.btl-mock__meta { margin-top: 1.6cqw; font-size: 3.3cqw; color: var(--text-2); }
.btl-mock__badge { display: flex; align-items: center; gap: 2.6cqw; margin-top: 3.6cqw; padding: 1.6cqw 3cqw 1.6cqw 1.6cqw; border-radius: 3.1cqw; border: 1px solid rgba(255, 90, 31, .45); background: rgba(255, 255, 255, .03); }
.btl-mock__badge--account { margin: 0 0 4.6cqw; border-color: var(--line-2); }
.btl-mock__icon { display: grid; place-items: center; width: 8.7cqw; height: 8.7cqw; border-radius: 2.3cqw; background: rgba(255, 255, 255, .06); color: var(--accent); }
.btl-mock__badge--account .btl-mock__icon { color: var(--text-2); }
.btl-mock__icon svg { width: 4.6cqw; height: 4.6cqw; }
.btl-mock__badge b { display: block; font-size: 3.5cqw; font-weight: 600; color: #fff; }
.btl-mock__badge em { display: block; margin-top: .4cqw; font-size: 3.1cqw; font-style: normal; color: var(--muted); }
.btl-mock__badge i { margin-left: 1cqw; font-style: normal; color: var(--muted); }
.btl-mock__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; width: 100%; margin-top: 6cqw; padding: 4cqw 0; border-block: 1px solid var(--line); }
.btl-mock__stats em { display: block; font-size: 3.1cqw; font-style: normal; color: var(--muted); }
.btl-mock__stats b { display: block; margin-top: 1cqw; font: 800 6cqw/1 var(--font-display); color: #fff; }
.btl-mock__tabs { display: flex; gap: 4cqw; margin-top: 5cqw; font-size: 3.4cqw; color: var(--muted); }
.btl-mock__tabs b { font-weight: 600; color: #fff; box-shadow: 0 2.2cqw 0 -1.6cqw var(--accent); }
.btl-mock__skeleton { width: 100%; height: 34cqw; margin-top: 4.6cqw; border-radius: 4.6cqw; background: var(--surface); border: 1px solid var(--line); }
.btl-mock__panel { display: flex; flex-direction: column; width: 100%; padding: 4.6cqw; border-radius: 4.6cqw; background: var(--surface); border: 1px solid var(--line); }
.btl-mock__title { margin-bottom: 1.6cqw; font-size: 4.6cqw; font-weight: 600; color: #fff; }
.btl-mock__label { margin: 3cqw 0 1.4cqw; font-size: 3.3cqw; font-weight: 500; color: var(--text-2); }
.btl-mock__input { display: flex; align-items: center; height: 11cqw; padding: 0 3cqw; overflow: hidden; border-radius: 2.8cqw; background: #0b0d12; border: 1px solid var(--line-2); font-size: 3.6cqw; white-space: nowrap; color: #fff; transition: border-color .2s, box-shadow .2s; }
.btl-mock__input.is-typing { border-color: var(--accent); box-shadow: 0 0 0 .8cqw rgba(255, 90, 31, .18); }
.btl-mock__input.is-typing::after { content: ""; width: 1.5px; height: 4.6cqw; margin-left: 1px; background: var(--accent); animation: btl-caret .9s steps(1) infinite; }
.btl-mock__submit { display: flex; flex-direction: column; gap: 3.6cqw; margin-top: 4cqw; }
.btl-mock__check { display: flex; gap: 2.4cqw; font-size: 3cqw; line-height: 1.4; color: var(--text-2); }
.btl-mock__check i { position: relative; flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 1.2cqw; border: 1px solid var(--line-3); transition: background .2s; }
.btl-mock__check.is-done i { border-color: transparent; background: var(--grad); }
.btl-mock__check.is-done i::after { content: ""; position: absolute; left: 32%; top: 14%; width: 26%; height: 50%; border: solid #120803; border-width: 0 .5cqw .5cqw 0; transform: rotate(45deg); }
.btl-mock__button { display: grid; place-items: center; height: 11.5cqw; border-radius: 2.8cqw; background: var(--grad); color: #120803; font: 700 3.4cqw/1 var(--font); letter-spacing: .04em; text-transform: uppercase; transition: transform .15s, filter .15s; }
.btl-mock__button.is-done { filter: brightness(.88); transform: scale(.98); }
.btl-mock__account { display: flex; align-items: baseline; gap: 2.6cqw; margin-top: 2.6cqw; }
.btl-mock__account b { font: 600 4.6cqw/1 var(--font-mono); color: #fff; }
.btl-mock__account span { font-size: 3.3cqw; color: var(--muted); }
.btl-mock__state { margin-top: 3cqw; font-size: 3.6cqw; font-weight: 600; line-height: 1.35; }
.btl-mock .is-wait { color: var(--accent-amber); }
.btl-mock .is-ok { display: none; color: var(--green); }
.btl-mock[data-state="ready"] .is-wait { display: none; }
.btl-mock[data-state="ready"] .is-ok { display: block; }
@media (min-width: 640px) { .btl-demo { grid-template-columns: 264px minmax(0, 1fr); gap: 32px; } .btl-demo__steps { align-self: center; } }
.btl-guide__cta { display: grid; justify-items: start; gap: 12px; margin-top: 22px; }
.btl-guide__cta .btl-guide__note { margin: 0; }
.btl-guide__step .btl-guide__login { margin: 0; font-size: 14px; }
.btl-guide__login a, .btl-guide__problems a { color: var(--accent); font-weight: 600; }
.btl-guide__login a:hover, .btl-guide__problems a:hover { color: var(--accent-amber); }
.btl-guide__problems { grid-area: problems; max-width: 760px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.btl-guide__problems h2 { margin: 0; font: 600 22px/1.25 var(--font); color: #fff; }
.btl-guide__lead-sm { margin: 6px 0 10px; font-size: 14.5px; color: var(--muted); }
.btl-guide__problems dl { margin: 0; }
.btl-guide__problems div { padding: 16px 0; border-top: 1px solid var(--line); }
.btl-guide__problems dt { font-weight: 600; color: var(--text); }
.btl-guide__problems dd { margin: 6px 0 0; color: var(--text-2); }
.btl-guide__toc p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.btl-guide__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: btl-toc; border-left: 1px solid var(--line-2); }
.btl-guide__toc li { counter-increment: btl-toc; }
.btl-guide__toc ol a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.btl-guide__toc ol a::before { content: counter(btl-toc) ". "; color: var(--muted); }
.btl-guide__toc ol a:hover { border-left-color: var(--line-3); color: #fff; }
.btl-guide__toc-problems { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent); }
.btl-guide__toc-problems:hover { color: var(--accent-amber); }
@media (min-width: 640px) {
	.btl-guide__step { padding-left: 72px; }
	.btl-guide__step::before { position: absolute; left: 0; top: 26px; margin: 0; font-size: 40px; }
}
@media (min-width: 1024px) {
	.btl-guide { grid-template-columns: minmax(0, 760px) 250px; grid-template-areas: "head head" "steps toc" "problems toc"; justify-content: space-between; gap: 48px 64px; padding-top: 56px; }
	.btl-guide__toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}

/* Results (/results/) and an ended season's page: gold for what is decided, nothing live about it */
.btl-results-tools { display: grid; gap: 14px; margin: 8px 0 22px; }
.btl-results-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.btl-results-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.btl-results-tab span { font-size: 12.5px; color: var(--muted); }
.btl-results-tab:hover { color: #fff; }
.btl-results-tab.is-active { color: #fff; border-bottom-color: var(--accent); }
.btl-results-tools__row { display: flex; flex-wrap: wrap; gap: 8px; }
.btl-results-tools__row .btl-input { width: auto; flex: 0 0 auto; }
.btl-results-tools__row .btl-results-tools__search { flex: 1 1 220px; min-width: 0; }
.btl-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.btl-result-card { position: relative; display: grid; align-content: start; gap: 16px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(232, 185, 74, .06), rgba(255, 255, 255, .015) 46%); transition: border-color .2s, transform .2s var(--ease); }
.btl-result-card.is-verifying { background: rgba(255, 255, 255, .02); }
.btl-result-card:hover { border-color: rgba(232, 185, 74, .45); transform: translateY(-2px); }
.btl-result-card__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.btl-result-card__cover:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btl-result-card__state { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--gold); }
.btl-result-card.is-verifying .btl-result-card__state { color: var(--text-2); }
.btl-result-card__title { margin: 0; font: 800 26px/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.btl-result-card__meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.btl-result-card__champ { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-block: 1px solid var(--line); }
.btl-result-card__avatar { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(232, 185, 74, .55); }
.btl-result-card__champ div { display: grid; gap: 2px; min-width: 0; }
.btl-result-card__label { font-size: 12.5px; color: var(--muted); }
.btl-result-card__champ strong { overflow: hidden; font-size: 16px; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.btl-result-card__prize { font-size: 12.5px; color: var(--gold); }
.btl-result-card__ret { font: 800 26px/1 var(--font-display); }
.btl-result-card__places { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.btl-result-card__places li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; color: var(--text-2); }
.btl-result-card__place { color: var(--muted); }
.btl-result-card__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.btl-result-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.btl-result-card__facts div { display: grid; gap: 3px; min-width: 0; }
.btl-result-card__facts dt { font-size: 12.5px; color: var(--muted); }
.btl-result-card__facts dd { margin: 0; overflow: hidden; font-size: 13.5px; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.btl-result-card__none { margin: 0; }

.btl-season-final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px 40px; align-items: start; margin-bottom: 8px; }
.btl-season-final__state { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.btl-season-final.is-final .btl-season-final__state { color: var(--gold); }
.btl-season-final__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 24px; margin: 22px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.btl-season-final__facts div { display: grid; gap: 4px; }
.btl-season-final__facts dt { font-size: 13px; color: var(--muted); }
.btl-season-final__facts dd { margin: 0; font-size: 15px; color: #fff; }
.btl-season-final__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--text-2); }
.btl-season-final__all:hover { color: #fff; }
.btl-season-final__champion { display: grid; justify-items: center; gap: 6px; padding: 22px 20px 18px; text-align: center; border-radius: var(--r-lg); border: 1px solid rgba(232, 185, 74, .35); background: radial-gradient(120% 70% at 50% 0%, rgba(232, 185, 74, .16), rgba(232, 185, 74, 0) 70%), var(--surface); }
.btl-season-final:not(.is-final) .btl-season-final__champion { border-color: var(--line-2); background: var(--surface); }
.btl-season-final__label { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.btl-season-final:not(.is-final) .btl-season-final__label { color: var(--text-2); }
.btl-season-final__avatar { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 3px rgba(232, 185, 74, .6), 0 18px 40px -18px rgba(232, 185, 74, .5); }
.btl-season-final__name { margin-top: 8px; font: 800 30px/1 var(--font-display); text-transform: uppercase; color: #fff; }
.btl-season-final__from { font-size: 13.5px; color: var(--muted); }
.btl-season-final__ret { margin-top: 6px; font: 800 40px/1 var(--font-display); }
.btl-season-final__prize { font-size: 14px; color: var(--gold); }
.btl-season-final__places { display: grid; gap: 10px; width: 100%; margin: 14px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); text-align: left; font-size: 14px; }
.btl-season-final__places li { display: grid; grid-template-columns: 30px 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--text-2); }
.btl-season-final__place { color: var(--muted); }
.btl-season-final__runner { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 959px) {
	.btl-season-final { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
	.btl-results-grid { grid-template-columns: 1fr; }
	.btl-results-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.btl-results-tab { white-space: nowrap; }
	.btl-season-final__name { font-size: 26px; }
	.btl-season-final__ret { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .btl-result-card { transition: none; } .btl-result-card:hover { transform: none; } }
