/* Math Brawler landing page. All overrides are scoped to this page. */
.brawler-page {
  --mb-bg: #070d12;
  --mb-surface: #101b23;
  --mb-band: #0b141c;
  --mb-text: #edf4fa;
  --mb-muted: #bdccd6;
  --mb-border: #354a57;
  --mb-heading: #fff1b3;
  --mb-accent: #84f3df;
  --mb-nav: #080f16;
  --mb-nav-text: #fff;
  background: var(--mb-bg);
  color: var(--mb-text);
}
[data-theme="light"] .brawler-page {
  --mb-bg: #f5f9fa;
  --mb-surface: #fff;
  --mb-band: #e8f0f3;
  --mb-text: #182f3b;
  --mb-muted: #435969;
  --mb-border: #b1c5cf;
  --mb-heading: #183947;
  --mb-accent: #116956;
  --mb-nav: #f9fcfe;
  --mb-nav-text: #142b38;
}
.brawler-page, .brawler-page * { letter-spacing: 0; }
.brawler-page .page-wrapper { position: relative; z-index: 3; }
.brawler-bg { position: fixed; inset: 0; z-index: 0; background: var(--mb-bg); pointer-events: none; }
.scanlines { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .025; background: repeating-linear-gradient(transparent, transparent 3px, #fff 3px, #fff 4px); }
.brawler-page section[id] { scroll-margin-top: 94px; }
.brawler-page a:focus-visible, .brawler-page button:focus-visible, .brawler-page summary:focus-visible { outline: 3px solid #d39b11; outline-offset: 5px; }
.brawler-nav { background: var(--mb-nav); border-bottom: 1px solid var(--mb-border); }
.brawler-nav .nav-links { gap: 24px; }
.brawler-nav .nav-brand, .brawler-nav .nav-links a, .brawler-nav .theme-toggle { color: var(--mb-nav-text); }
.brawler-nav .nav-links a:hover { color: var(--mb-accent); }
.brawler-nav .nav-links.open { background: var(--mb-nav); }
.brawler-nav .nav-hamburger span { background: var(--mb-nav-text); }
.brawler-nav .theme-toggle { font-size: 0; border-radius: 8px; border-color: var(--mb-border); }
.brawler-nav .theme-toggle::before { content: "\263c"; font-size: 24px; }
[data-theme="light"] .brawler-nav .theme-toggle::before { content: "\263e"; }
.brawler-nav .theme-toggle:hover { background: var(--mb-surface); }

.mb-hero { position: relative; isolation: isolate; padding: 124px 0 56px; background: #080f19 url('images/math-brawler-arena.png') center 58% / cover; }
.mb-hero::before { content: ""; position: absolute; inset: 0; background: rgba(3, 8, 15, .78); z-index: -1; }
.mb-hero-copy { max-width: 960px; margin: 0 auto; text-align: center; }
.mb-kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--mb-accent); margin-bottom: 12px; }
.mb-hero .mb-kicker { color: #89f8e6; }
.mb-hero h1 { color: #ffe489; font-size: 80px; line-height: 1.06; font-weight: 800; margin-bottom: 14px; text-shadow: 0 3px 0 #342607; }
.mb-slogan { color: #fff; font-size: 23px; font-weight: 600; line-height: 1.45; margin-bottom: 22px; }
.mb-lead { max-width: 810px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: #e4eef6; }
.mb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mb-hero .mb-hero-actions, .mb-final-cta .mb-hero-actions { justify-content: center; }
.mb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 20px; border-radius: 8px; font-size: 14px; line-height: 1.5; font-weight: 700; border: 1px solid var(--mb-border); text-align: center; transition: border-color .15s, background .15s; }
.mb-btn-primary { color: #161b12; background: #ffdc66; border-color: #ffe9a5; box-shadow: 0 0 16px #ffcf3218; }
.mb-btn-primary:hover { background: #ffeb98; }
.mb-btn-secondary { color: var(--mb-text); background: var(--mb-surface); border-color: var(--mb-border); }
.mb-btn-secondary:hover { border-color: var(--mb-accent); }
.mb-btn-whatsapp { background: #a3f3cd; border-color: #7bdfb0; color: #092b1e; }
.mb-btn-whatsapp:hover { background: #c0fbdf; }
.mb-hero .mb-btn-secondary { color: #f2f8ff; background: #12222e; border-color: #7fb6c7; }

.mb-intro-section { padding: 30px 0 0; }
.mb-mindset { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 28px; padding: 24px 28px; border: 1px solid #4abfae; border-left: 4px solid #ffe080; border-radius: 8px; background: var(--mb-surface); box-shadow: 0 0 18px #4abfae0c; }
.mb-mindset h2 { color: var(--mb-heading); font-size: 26px; line-height: 1.35; margin-bottom: 12px; }
.mb-mindset p:not(.mb-kicker) { color: var(--mb-muted); font-size: 15px; line-height: 1.75; margin-top: 10px; }
.mb-mindset strong { color: var(--mb-text); }
.mb-daily { display: flex; flex-direction: column; align-items: center; gap: 6px; border-left: 1px solid var(--mb-border); padding-left: 20px; text-align: center; }
.mb-daily strong { font-size: 60px; line-height: 1.15; color: var(--mb-heading); }
.mb-daily span { font-size: 11px; font-weight: 800; color: var(--mb-accent); }
.mb-daily small { margin-top: 8px; color: var(--mb-muted); font-size: 12px; line-height: 1.5; }
.mb-proof-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 22px; }
.mb-proof-strip span { color: var(--mb-muted); font-size: 13px; font-weight: 600; }

.mb-section { padding: 76px 0; position: relative; }
.mb-section-head { max-width: 830px; margin-bottom: 32px; }
.mb-section-head h2, .mb-split h2, .mb-final-cta h2 { color: var(--mb-heading); font-size: 38px; line-height: 1.2; margin-bottom: 16px; }
.mb-section-head p, .mb-split p, .mb-final-cta p { color: var(--mb-muted); font-size: 16px; line-height: 1.8; }
.mb-dark-band, .mb-prize-band, .mb-final-cta { background: var(--mb-band); border-block: 1px solid var(--mb-border); }
.mb-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mb-plans { padding-top: 48px; }
.mb-pricing-grid, .mb-research-grid, .mb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mb-price { --plan-color: #7cedc8; display: flex; flex-direction: column; min-width: 0; padding: 24px 20px; background: var(--mb-surface); border: 1px solid var(--mb-border); border-top: 4px solid var(--plan-color); border-radius: 8px; }
.plan-advanced { --plan-color: #87d9ff; }
.plan-tournament { --plan-color: #ffdc66; }
.plan-host { --plan-color: #ffa6c7; }
.mb-price.featured { border-color: #e2b83f; box-shadow: 0 0 22px #e2b83f12; }
.mb-price .plan-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--plan-color); margin-bottom: 12px; }
[data-theme="light"] .mb-price .plan-label { color: var(--mb-text); }
.mb-price h3 { font-size: 20px; line-height: 1.35; color: var(--mb-text); min-height: 54px; margin-bottom: 10px; }
.mb-price .price { color: var(--mb-heading); font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.price span { font-size: 12px; color: var(--mb-muted); font-weight: 500; white-space: nowrap; }
.mb-price > p:not(.plan-label) { font-size: 14px; line-height: 1.7; color: var(--mb-muted); min-height: 96px; }
.mb-price ul { display: grid; gap: 10px; margin: 20px 0 24px; }
.mb-price li { font-size: 13px; line-height: 1.6; color: var(--mb-text); padding-left: 17px; position: relative; }
.mb-price li::before { content: "\2713"; color: var(--mb-accent); position: absolute; left: 0; }
.mb-price .mb-plan-cta { margin-top: auto; padding: 12px 10px; font-size: 13px; color: #101a20; background: var(--plan-color); border-color: var(--plan-color); }
.mb-price .mb-plan-cta:hover { background: #fff; }
.mb-plan-note { text-align: center; font-size: 13px; line-height: 1.8; margin: 24px auto 0; color: var(--mb-muted); }
.mb-payment-status { margin: 20px auto 0; max-width: 800px; padding: 16px; color: var(--mb-text); background: var(--mb-surface); border: 1px solid var(--mb-border); border-radius: 8px; line-height: 1.7; text-align: center; }
.mb-payment-status[hidden] { display: none; }
.mb-plan-cta[aria-busy="true"] { opacity: .65; cursor: wait; }
.mb-price button.mb-plan-cta { font-family: inherit; width: 100%; cursor: pointer; }
.mb-price button.mb-plan-cta:disabled { opacity: .65; cursor: not-allowed; }
.mb-plan-contact { margin-top: 12px; color: var(--mb-accent); font-size: 12px; line-height: 1.6; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.mb-paid-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mb-paid-actions [hidden] { display: none; }
.mb-paid-actions button { font-family: inherit; cursor: pointer; }
.mb-selected-plan { outline: 3px solid var(--mb-accent); outline-offset: 4px; }
.mb-pricing-actions { display: grid; grid-template-columns: 1.4fr .7fr .6fr 1.5fr; gap: 12px; padding-top: 24px; }

.mb-research-card, .mb-step { padding: 24px; background: var(--mb-surface); border: 1px solid var(--mb-border); border-radius: 8px; }
.mb-research-card h3, .mb-feature h3, .mb-step h3, .mb-video h3, .mb-position-card h3 { color: var(--mb-text); font-size: 21px; line-height: 1.35; margin-bottom: 12px; }
.mb-research-card p, .mb-feature p, .mb-step p, .mb-video p, .mb-position-card p, .mb-prize-card p { color: var(--mb-muted); font-size: 15px; line-height: 1.8; }
.card-number, .mb-step > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #9af3dd; color: #12372e; font-weight: 800; margin-bottom: 18px; }
.mb-honest-note { margin-top: 26px; border-left: 3px solid #e2b83f; padding-left: 20px; color: var(--mb-muted); font-size: 14px; line-height: 1.8; }
.mb-honest-note strong { color: var(--mb-heading); }
.mb-position-card { padding-left: 28px; border-left: 2px solid #f2ce59; }
.mb-position-card .muted { font-size: 14px; margin-top: 12px; }
.mb-feature-list { display: grid; gap: 36px; max-width: 1040px; margin: 0 auto; }
.mb-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding: 0 0 36px; border-bottom: 1px solid var(--mb-border); }
.mb-feature:last-child { border-bottom: 0; padding-bottom: 0; }
.mb-feature:nth-child(even) .feature-media { order: initial; }
.mb-checks { display: grid; gap: 10px; margin-top: 18px; }
.mb-checks li { color: var(--mb-text); font-size: 14px; line-height: 1.7; padding-left: 18px; position: relative; }
.mb-checks li::before { content: "\2713"; color: var(--mb-accent); position: absolute; left: 0; }
.media-placeholder, .placeholder-video { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--mb-muted); border: 1px dashed var(--mb-border); border-radius: 8px; background: var(--mb-surface); aspect-ratio: 16 / 9; }
.media-placeholder span, .placeholder-video span { font-size: 15px; font-weight: 700; color: var(--mb-accent); }
.media-placeholder strong { font-size: 18px; color: var(--mb-text); }
.arena-screen { max-width: 1040px; margin: 0 auto; }
.mb-screenshot { display: block; position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; outline: 1px solid var(--mb-border); border-radius: 8px; background: #080c14; transition: outline-color .15s; }
.mb-screenshot:hover { outline-color: var(--mb-accent); }
.mb-screenshot img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mb-viewing-image { overflow: hidden; }
.mb-image-viewer { position: fixed; inset: 0; margin: auto; width: calc(100% - 24px); max-width: 1440px; height: calc(100% - 24px); max-height: 100%; padding: 0; color: #f5fcff; background: #080c14; border: 1px solid #52dbc9; border-radius: 8px; box-shadow: 0 0 28px #28d5c029; }
.mb-image-viewer[open] { display: flex; flex-direction: column; }
.mb-image-viewer::backdrop { background: rgba(0, 0, 0, .9); }
.mb-image-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #2d4852; font-size: 15px; font-weight: 700; }
.mb-image-close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid #83edd8; border-radius: 6px; background: #b7f9e8; color: #09231f; font: inherit; cursor: pointer; }
.mb-image-close span { font-size: 26px; line-height: 1; }
.mb-image-close:hover { background: #e6fff8; }
.mb-image-stage { display: flex; flex: 1 1 auto; min-height: 0; padding: 8px; }
.mb-image-stage img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.feature-media { width: 100%; }
.mb-media-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 1040px; margin: 0 auto; }
.mb-video { min-width: 0; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 0; margin-bottom: 18px; }
.mb-video-embed { overflow: hidden; outline: 1px solid var(--mb-border); border: 0; border-radius: 8px; background: #080c14; }
.mb-video-embed iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mb-video-link { display: inline-block; margin-top: 12px; color: var(--mb-accent); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.mb-prize-card { padding-left: 24px; border-left: 1px solid var(--mb-border); }
.mb-prize-card > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--mb-border); }
.mb-prize-card strong { color: var(--mb-text); }
.mb-prize-card span { color: var(--mb-accent); font-weight: 700; }
.mb-prize-card p { font-size: 13px; margin-top: 18px; }
.mb-final-cta { text-align: center; }
.brawler-footer { background: var(--mb-bg); }
.brawler-footer h3, .brawler-footer h4 { color: var(--mb-text); }
.brawler-footer p, .brawler-footer .footer-links a { color: var(--mb-muted); overflow-wrap: anywhere; }
.brawler-footer .footer-links a:hover { color: var(--mb-accent); }


/* ===================================================================
   PREMIUM GRADIENT FILLS  -  works in both dark and light themes.
   Each tint is painted as a translucent layer over var(--mb-surface),
   so the same values read as a rich dark card in the dark theme and
   a soft pastel card in the light theme.
   =================================================================== */

/* -- per-card accent tints (research cards / steps / media cards) -- */
.mb-research-grid > :nth-child(1), .mb-steps > :nth-child(1), .mb-media-grid > :nth-child(1) {
  --tint: #3fd9b2; --tint-a: rgba(63, 217, 178, .30); --tint-b: rgba(63, 217, 178, .06); --tint-ink: #04302a;
}
.mb-research-grid > :nth-child(2), .mb-steps > :nth-child(2), .mb-media-grid > :nth-child(2) {
  --tint: #57b8ff; --tint-a: rgba(87, 184, 255, .30); --tint-b: rgba(87, 184, 255, .06); --tint-ink: #04243c;
}
.mb-research-grid > :nth-child(3), .mb-steps > :nth-child(3), .mb-media-grid > :nth-child(3) {
  --tint: #ffc24a; --tint-a: rgba(255, 194, 74, .30); --tint-b: rgba(255, 194, 74, .06); --tint-ink: #3a2500;
}
.mb-research-grid > :nth-child(4), .mb-steps > :nth-child(4) {
  --tint: #ff77ab; --tint-a: rgba(255, 119, 171, .30); --tint-b: rgba(255, 119, 171, .06); --tint-ink: #3d0722;
}

.mb-research-card, .mb-step, .mb-video {
  background: linear-gradient(158deg, var(--tint-a) 0%, var(--tint-b) 58%, transparent 100%), var(--mb-surface);
  border: 1px solid var(--mb-border);
  border-top: 3px solid var(--tint);
  border-radius: 10px;
  box-shadow: 0 16px 32px -24px rgba(0, 0, 0, .9), 0 0 26px -16px var(--tint);
}
.mb-video { padding: 20px; min-width: 0; }
.mb-video .video-frame { margin-bottom: 16px; }

.card-number, .mb-step > span {
  background: linear-gradient(150deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 65%), var(--tint);
  color: var(--tint-ink);
  box-shadow: 0 6px 14px -8px var(--tint), inset 0 1px 0 rgba(255, 255, 255, .45);
}

[data-theme="light"] .mb-research-card,
[data-theme="light"] .mb-step,
[data-theme="light"] .mb-video {
  box-shadow: 0 14px 28px -22px rgba(18, 52, 70, .55), 0 0 22px -16px var(--tint);
}

/* -- pricing plan cards -- */
.mb-price { --plan-a: rgba(124, 237, 200, .30); --plan-b: rgba(124, 237, 200, .06); }
.plan-advanced { --plan-a: rgba(135, 217, 255, .30); --plan-b: rgba(135, 217, 255, .06); }
.plan-tournament { --plan-a: rgba(255, 220, 102, .34); --plan-b: rgba(255, 220, 102, .07); }
.plan-host { --plan-a: rgba(255, 166, 199, .30); --plan-b: rgba(255, 166, 199, .06); }

.mb-price {
  background: linear-gradient(162deg, var(--plan-a) 0%, var(--plan-b) 56%, transparent 100%), var(--mb-surface);
  border-radius: 10px;
  box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .9), 0 0 28px -18px var(--plan-color);
}
.mb-price.featured {
  border-color: #e2b83f;
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, .9), 0 0 34px -14px var(--plan-color);
}
.mb-price .mb-plan-cta {
  background: linear-gradient(140deg, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, 0) 62%), var(--plan-color);
  box-shadow: 0 8px 18px -10px var(--plan-color), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.mb-price .mb-plan-cta:hover {
  background: linear-gradient(140deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .18) 70%), var(--plan-color);
}
[data-theme="light"] .mb-price {
  box-shadow: 0 16px 30px -24px rgba(18, 52, 70, .55), 0 0 22px -18px var(--plan-color);
}

/* -- coloured action buttons -- */
.mb-pricing-actions .mb-btn-whatsapp,
.mb-pricing-actions a[href*="chat.whatsapp.com"],
.mb-final-cta .mb-btn-secondary {
  color: #042a18;
  background: linear-gradient(140deg, #8bf3bd 0%, #33d488 52%, #0fae62 100%);
  border-color: #6fe4ab;
  box-shadow: 0 10px 22px -14px #0fae62, inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mb-pricing-actions .mb-btn-whatsapp:hover,
.mb-pricing-actions a[href*="chat.whatsapp.com"]:hover,
.mb-final-cta .mb-btn-secondary:hover {
  background: linear-gradient(140deg, #a6f8cf 0%, #4ee49b 52%, #17c473 100%);
  border-color: #fff;
}
.mb-pricing-actions a[href^="mailto:"] {
  color: #fff;
  background: linear-gradient(140deg, #a77bff 0%, #7b48f0 52%, #5a27d4 100%);
  border-color: #b795ff;
  box-shadow: 0 10px 22px -14px #5a27d4, inset 0 1px 0 rgba(255, 255, 255, .3);
}
.mb-pricing-actions a[href^="mailto:"]:hover {
  background: linear-gradient(140deg, #bb97ff 0%, #8d60ff 52%, #6d38e8 100%);
  border-color: #fff;
}

/* -- introduction video showcase -- */
.mb-center-head { margin-left: auto; margin-right: auto; text-align: center; }
.mb-intro-video { padding-top: 64px; padding-bottom: 28px; }
.mb-showcase { position: relative; max-width: 1080px; margin: 0 auto; padding: 3px; border-radius: 16px; background: linear-gradient(120deg, #3fd9b2, #57b8ff 35%, #a77bff 65%, #ffc24a); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .95), 0 0 60px -22px #57b8ff; }
.mb-showcase::before { content: ""; position: absolute; inset: -36px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(87, 184, 255, .22), transparent); pointer-events: none; }
.mb-showcase-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: #080c14; }
.mb-showcase-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mb-showcase-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 24px auto 0; }
.mb-showcase-points li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; text-align: center; border: 1px solid var(--mb-border); border-radius: 10px; background: var(--mb-surface); }
.mb-showcase-points strong { color: var(--mb-heading); font-size: 16px; }
.mb-showcase-points span { color: var(--mb-muted); font-size: 13px; line-height: 1.6; }
.mb-center-link { text-align: center; }
[data-theme="light"] .mb-showcase { box-shadow: 0 24px 48px -30px rgba(18, 52, 70, .6), 0 0 40px -22px #57b8ff; }

/* -- download buttons + install guide -- */
.mb-download { background: var(--mb-band); border-block: 1px solid var(--mb-border); }
.mb-download-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; }
.mb-store-btn { display: flex; align-items: center; gap: 16px; min-height: 84px; padding: 16px 22px; border-radius: 14px; border: 1px solid transparent; text-align: left; transition: transform .15s, box-shadow .15s, filter .15s; }
.mb-store-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.mb-store-android { color: #04230f; background: linear-gradient(140deg, #b6f7a4 0%, #5edc6c 50%, #1fae4b 100%); border-color: #9ff08f; box-shadow: 0 16px 30px -16px #1fae4b, inset 0 1px 0 rgba(255, 255, 255, .5); }
.mb-store-ios { color: #fff; background: linear-gradient(140deg, #4a5566 0%, #1d232d 55%, #0b0e13 100%); border-color: #8d9aae; box-shadow: 0 16px 30px -16px #000, 0 0 22px -12px #cfd8e6, inset 0 1px 0 rgba(255, 255, 255, .25); }
.mb-store-icon { flex: 0 0 auto; width: 44px; height: 44px; }
.mb-store-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mb-store-text small { font-size: 12px; font-weight: 600; opacity: .85; }
.mb-store-text strong { font-size: 23px; font-weight: 800; }
.mb-store-text em { margin-top: 4px; font-size: 12px; font-style: normal; font-weight: 600; opacity: .8; }
.mb-download-note { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--mb-muted); font-size: 14px; line-height: 1.7; }
.mb-download-note a { color: var(--mb-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mb-install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.mb-install-card { --tint: #5edc6c; --tint-a: rgba(94, 220, 108, .22); --tint-b: rgba(94, 220, 108, .05); --tint-ink: #04230f; padding: 26px 24px; border: 1px solid var(--mb-border); border-top: 3px solid var(--tint); border-radius: 12px; background: linear-gradient(158deg, var(--tint-a) 0%, var(--tint-b) 58%, transparent 100%), var(--mb-surface); box-shadow: 0 16px 32px -24px rgba(0, 0, 0, .9); }
.mb-install-ios { --tint: #b9c6da; --tint-a: rgba(185, 198, 218, .20); --tint-b: rgba(185, 198, 218, .05); --tint-ink: #111722; }
.mb-install-card h3 { color: var(--mb-text); font-size: 21px; margin-bottom: 18px; }
.mb-install-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: mb-step; }
.mb-install-steps li { position: relative; padding-left: 44px; color: var(--mb-muted); font-size: 14px; line-height: 1.7; counter-increment: mb-step; }
.mb-install-steps li::before { content: counter(mb-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 800; font-size: 14px; color: var(--tint-ink); background: linear-gradient(150deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 65%), var(--tint); }
.mb-install-steps li strong { display: block; color: var(--mb-text); font-size: 15px; }
.mb-install-steps b { color: var(--mb-text); }
.mb-install-steps em { font-style: normal; color: var(--mb-accent); }
.mb-ios-alternative { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--mb-border); }
.mb-ios-alternative summary { min-height: 44px; color: var(--mb-accent); font-weight: 700; cursor: pointer; }
.mb-ios-alternative p, .mb-ios-help { color: var(--mb-muted); font-size: 14px; line-height: 1.7; margin-top: 14px; }
.mb-ios-alternative .mb-install-steps { margin-top: 18px; }
.mb-ios-game-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; color: var(--mb-accent); font-weight: 700; }
.mb-ios-game-link, .mb-ios-help a { text-decoration: underline; text-underline-offset: 3px; }
.mb-ios-help a { color: var(--mb-accent); }
[data-theme="light"] .mb-store-android { box-shadow: 0 14px 26px -18px #1fae4b, inset 0 1px 0 rgba(255, 255, 255, .5); }
[data-theme="light"] .mb-install-ios { --tint: #5b6b82; --tint-ink: #fff; }
[data-theme="light"] .mb-install-card { box-shadow: 0 14px 28px -22px rgba(18, 52, 70, .55); }

/* -- schools / Fastest Brain Competition -- */
.mb-schools-media { position: relative; max-width: 1080px; margin: 0 auto 40px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 2px solid #e2b83f; background: #080c14; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9), 0 0 40px -20px #ffc24a; }
.mb-schools-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mb-schools-story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: start; }
.mb-schools-copy h3 { color: var(--mb-heading); font-size: 28px; line-height: 1.3; margin-bottom: 14px; }
.mb-schools-copy p:not(.mb-kicker) { color: var(--mb-muted); font-size: 16px; line-height: 1.8; margin-bottom: 14px; }
.mb-schools-copy strong { color: var(--mb-text); }
.mb-schools-quote { margin: 22px 0; padding: 18px 22px; border-left: 4px solid #ffc24a; border-radius: 0 10px 10px 0; background: linear-gradient(100deg, rgba(255, 194, 74, .16), transparent), var(--mb-surface); color: var(--mb-text); font-size: 18px; line-height: 1.7; font-weight: 600; }
.mb-schools-quote strong { color: var(--mb-heading); }
.mb-schools-copy .mb-schools-lesson { color: var(--mb-accent); font-weight: 700; }
.mb-schools-winners { display: grid; gap: 14px; }
.mb-winner { --medal: #ffc24a; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--mb-border); border-left: 4px solid var(--medal); border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--medal) 22%, transparent), transparent 70%), var(--mb-surface); box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .9), 0 0 26px -18px var(--medal); }
.mb-winner-silver { --medal: #c9d3df; }
.mb-winner-rank { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-weight: 800; font-size: 17px; color: #1d1604; background: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 65%), var(--medal); }
.mb-winner div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.mb-winner small { color: var(--mb-accent); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mb-winner strong { color: var(--mb-heading); font-size: 22px; margin: 2px 0; }
.mb-winner em { color: var(--mb-muted); font-size: 13px; font-style: normal; font-weight: 600; }
.mb-winner-note { color: var(--mb-muted); font-size: 13px; text-align: center; }
.mb-schools-how { margin-top: 44px; padding: 28px; border: 1px solid var(--mb-border); border-top: 3px solid #ffa6c7; border-radius: 12px; background: linear-gradient(158deg, rgba(255, 166, 199, .18), rgba(255, 166, 199, .04) 58%, transparent), var(--mb-surface); }
.mb-schools-how h3 { color: var(--mb-text); font-size: 22px; margin-bottom: 18px; text-align: center; }
.mb-schools-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: mb-school; }
.mb-schools-steps li { position: relative; padding-top: 44px; counter-increment: mb-school; }
.mb-schools-steps li::before { content: counter(mb-school); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-weight: 800; color: #3d0722; background: linear-gradient(150deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%), #ffa6c7; }
.mb-schools-steps strong { display: block; color: var(--mb-text); font-size: 16px; margin-bottom: 6px; }
.mb-schools-steps span { color: var(--mb-muted); font-size: 14px; line-height: 1.7; }
.mb-schools-actions { justify-content: center; margin-top: 26px; }
[data-theme="light"] .mb-winner-rank { color: #1d1604; }

/* -- install videos (portrait, neon frame) at the bottom of each install card -- */
.mb-install-card { display: flex; flex-direction: column; }
.mb-install-video { margin-top: auto; padding-top: 26px; text-align: center; }
.mb-install-video::before { content: ""; display: block; height: 1px; margin-bottom: 22px; background: linear-gradient(90deg, transparent, var(--neon, var(--tint)), transparent); opacity: .7; }
.mb-install-video-title { color: var(--mb-text); font-size: 15px; font-weight: 700; line-height: 1.5; }
.mb-install-video-title span { color: var(--neon); margin-right: 4px; }
.mb-install-android { --neon: #39ff88; --neon-2: #1de9ff; }
.mb-install-ios { --neon: #6fc8ff; --neon-2: #c98bff; }
.mb-neon-portrait { width: min(100%, 300px); margin: 16px auto 0; padding: 3px; border-radius: 24px; background: linear-gradient(160deg, var(--neon), var(--neon-2) 50%, var(--neon)); box-shadow: 0 0 10px -1px var(--neon), 0 0 36px -6px var(--neon), 0 0 70px -24px var(--neon-2), 0 26px 46px -28px #000; animation: mb-neon-pulse 3.2s ease-in-out infinite; }
.mb-neon-portrait-frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 21px; background: #05080d; }
.mb-neon-portrait-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mb-install-video .mb-video-link { margin-top: 16px; }
@keyframes mb-neon-pulse {
  0%, 100% { box-shadow: 0 0 10px -1px var(--neon), 0 0 36px -6px var(--neon), 0 0 70px -24px var(--neon-2), 0 26px 46px -28px #000; }
  50% { box-shadow: 0 0 14px 0 var(--neon), 0 0 48px -4px var(--neon), 0 0 90px -20px var(--neon-2), 0 26px 46px -28px #000; }
}
[data-theme="light"] .mb-neon-portrait { animation: none; box-shadow: 0 0 16px -4px var(--neon), 0 20px 40px -26px rgba(18, 52, 70, .6); }

/* -- join / host room videos -- */
.mb-rooms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mb-room-card { --tint: #3fd9b2; --tint-a: rgba(63, 217, 178, .22); --tint-b: rgba(63, 217, 178, .05); display: flex; flex-direction: column; min-width: 0; padding: 26px 24px; border: 1px solid var(--mb-border); border-top: 3px solid var(--tint); border-radius: 14px; background: linear-gradient(158deg, var(--tint-a) 0%, var(--tint-b) 58%, transparent 100%), var(--mb-surface); box-shadow: 0 18px 36px -26px rgba(0, 0, 0, .9), 0 0 30px -18px var(--tint); }
.mb-room-host { --tint: #ffa6c7; --tint-a: rgba(255, 166, 199, .22); --tint-b: rgba(255, 166, 199, .05); }
.mb-room-card .mb-kicker { color: var(--tint); }
[data-theme="light"] .mb-room-card .mb-kicker { color: var(--mb-accent); }
.mb-room-card h3 { color: var(--mb-heading); font-size: 22px; line-height: 1.35; margin-bottom: 12px; }
.mb-room-card > p:not(.mb-kicker) { color: var(--mb-muted); font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.mb-room-card > p a { color: var(--mb-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mb-room-card .mb-showcase { width: 100%; margin-top: auto; }
.mb-room-card .mb-showcase::before { display: none; }
.mb-room-card .mb-video-link { align-self: flex-start; margin-top: 16px; }
[data-theme="light"] .mb-room-card { box-shadow: 0 14px 28px -22px rgba(18, 52, 70, .55); }

/* -- featured film (hero video, just above "Why Math Brawler?") -- */
@property --mb-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mb-film { position: relative; padding: 64px 0 20px; overflow: hidden; }
.mb-film::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 45% at 50% 0%, rgba(255, 207, 90, .14), transparent 70%), radial-gradient(40% 40% at 12% 60%, rgba(87, 184, 255, .10), transparent 70%), radial-gradient(40% 40% at 88% 60%, rgba(197, 107, 255, .10), transparent 70%); }
.mb-film-head { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.mb-film-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 215, 106, .55); background: linear-gradient(120deg, rgba(255, 215, 106, .18), rgba(197, 107, 255, .12)); color: #ffe08a; font-size: 12px; font-weight: 800; text-transform: uppercase; box-shadow: 0 0 24px -10px #ffd76a; }
.mb-film-badge span { color: #ffd76a; }
.mb-film-head h2 { color: var(--mb-heading); font-size: 46px; line-height: 1.15; margin-bottom: 16px; }
.mb-film-head h2 span { background: linear-gradient(100deg, #ffe58a 0%, #ffb547 35%, #ff7ad9 70%, #7fc8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mb-film-head p:not(.mb-film-badge) { color: var(--mb-muted); font-size: 17px; line-height: 1.8; }
.mb-film-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.mb-film-aura, .mb-film-stage { --mb-angle: 0deg; background: conic-gradient(from var(--mb-angle), #ffd76a, #ff8a3d, #ff5fb8, #a86bff, #4fb8ff, #3fe0c0, #ffd76a); animation: mb-film-spin 9s linear infinite; }
.mb-film-aura { position: absolute; inset: 18px; border-radius: 28px; filter: blur(42px); opacity: .5; pointer-events: none; }
.mb-film-stage { position: relative; padding: 3px; border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); }
.mb-film-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 17px; background: #05070c; }
.mb-film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mb-film-wrap::before, .mb-film-wrap::after { content: ""; position: absolute; z-index: 1; width: 46px; height: 46px; border: 3px solid #ffe08a; pointer-events: none; filter: drop-shadow(0 0 6px #ffd76a); }
.mb-film-wrap::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.mb-film-wrap::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
@keyframes mb-film-spin { to { --mb-angle: 360deg; } }
.mb-film-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.mb-film-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--mb-border); background: var(--mb-surface); color: var(--mb-text); font-size: 14px; font-weight: 700; }
[data-theme="light"] .mb-film-aura { opacity: .28; }
[data-theme="light"] .mb-film-badge { color: #7a4f00; }
[data-theme="light"] .mb-film-badge span { color: #c98a00; }
[data-theme="light"] .mb-film-wrap::before, [data-theme="light"] .mb-film-wrap::after { border-color: #d39b11; }
[data-theme="light"] .mb-film-stage { box-shadow: 0 30px 60px -36px rgba(18, 52, 70, .6); }

/* -- monthly / yearly billing switch -- */
.mb-plans:not([data-billing="yearly"]) .when-yearly { display: none !important; }
.mb-plans[data-billing="yearly"] .when-monthly { display: none !important; }
.mb-billing { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: 6px; gap: 6px; border-radius: 999px; border: 1px solid rgba(255, 220, 102, .45); background: linear-gradient(120deg, rgba(255, 220, 102, .10), rgba(135, 217, 255, .08)), var(--mb-surface); box-shadow: 0 0 30px -14px #ffdc66, 0 16px 30px -24px rgba(0, 0, 0, .9); }
.mb-billing-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px; border: 0; border-radius: 999px; background: transparent; color: var(--mb-muted); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: color .15s, background .2s, box-shadow .2s; }
.mb-billing-btn:hover { color: var(--mb-text); }
.mb-billing-btn[aria-pressed="true"] { color: #1a1503; background: linear-gradient(140deg, #fff3bf 0%, #ffdc66 45%, #f2b632 100%); box-shadow: 0 10px 22px -12px #f2b632, inset 0 1px 0 rgba(255, 255, 255, .7); }
.mb-billing-save { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #04240f; background: linear-gradient(140deg, #b6f7a4, #3fd97a); white-space: nowrap; }
.price-sub { min-height: 28px; margin: -8px 0 14px; color: var(--mb-muted); font-size: 12px; font-weight: 600; line-height: 1.5; }
@media (min-width: 561px) { .mb-plans[data-billing="yearly"] .price-sub { min-height: 54px; } }
.price-save { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.price-save s { color: var(--mb-muted); font-size: 14px; }
.price-save strong { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #04240f; background: linear-gradient(140deg, #b6f7a4, #3fd97a); box-shadow: 0 0 16px -6px #3fd97a; }
.price-save span { color: var(--mb-muted); }
.mb-plans[data-billing="yearly"] .mb-price .price.when-yearly { animation: mb-price-pop .35s ease-out; }
@keyframes mb-price-pop { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.mb-plan-note a { color: var(--mb-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .mb-pricing-grid, .mb-research-grid, .mb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-pricing-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-price h3, .mb-price > p:not(.plan-label) { min-height: 0; }
  .mb-split { gap: 24px; }
  .brawler-nav .nav-links { gap: 16px; }
  .brawler-nav .nav-links a { font-size: 14px; }
}
@media (max-width: 820px) {
  .mb-hero { padding-top: 112px; }
  .mb-hero h1 { font-size: 64px; }
  .mb-slogan { font-size: 20px; }
  .mb-feature, .mb-split { grid-template-columns: 1fr; }
  .mb-feature:nth-child(even) .feature-media { order: initial; }
  .mb-media-grid { grid-template-columns: 1fr; gap: 32px; }
  .mb-position-card, .mb-prize-card { padding-left: 18px; }
  .brawler-nav .nav-links { gap: 14px; }
  .mb-install-grid { grid-template-columns: 1fr; }
  .mb-rooms-grid { grid-template-columns: 1fr; }
  .mb-schools-story { grid-template-columns: 1fr; gap: 24px; }
  .mb-schools-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .mb-download-buttons, .mb-showcase-points { grid-template-columns: 1fr; }
  .mb-download-buttons { max-width: 380px; margin: 0 auto; }
  .mb-schools-steps { grid-template-columns: 1fr; }
  .mb-billing-btn { padding: 10px 16px; font-size: 14px; }
  .mb-film { padding-top: 44px; }
  .mb-film-head h2 { font-size: 32px; }
  .mb-film-head p:not(.mb-film-badge) { font-size: 15px; }
  .mb-film-wrap::before, .mb-film-wrap::after { width: 30px; height: 30px; }
  .mb-film-wrap::before { top: -9px; left: -9px; }
  .mb-film-wrap::after { bottom: -9px; right: -9px; }
  .mb-film-stage { border-radius: 14px; }
  .mb-film-frame { border-radius: 11px; }
  .mb-schools-how { padding: 22px 18px; }
  .mb-schools-copy h3 { font-size: 23px; }
  .mb-schools-quote { font-size: 16px; }
}
@media (max-width: 560px) {
  .mb-hero { padding: 108px 0 32px; }
  .mb-hero h1 { font-size: 46px; }
  .mb-slogan { font-size: 18px; }
  .mb-lead { font-size: 15px; line-height: 1.7; }
  .mb-hero-actions { flex-direction: column; }
  .mb-mindset { grid-template-columns: 1fr; padding: 20px 18px; gap: 20px; }
  .mb-mindset h2 { font-size: 22px; }
  .mb-mindset p:not(.mb-kicker) { font-size: 14px; }
  .mb-daily { border-left: 0; border-top: 1px solid var(--mb-border); padding: 16px 0 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .mb-daily strong { font-size: 34px; }
  .mb-daily small { flex-basis: 100%; margin-top: 0; }
  .mb-section { padding: 52px 0; }
  .mb-section-head h2, .mb-split h2, .mb-final-cta h2 { font-size: 30px; }
  .mb-pricing-grid, .mb-research-grid, .mb-steps, .mb-pricing-actions { grid-template-columns: 1fr; }
  .mb-price { padding: 24px; }
  .mb-price h3 { font-size: 22px; }
  .mb-proof-strip { gap: 8px 16px; }
  .mb-proof-strip span { font-size: 12px; }
  .brawler-nav .nav-brand { font-size: 15px; gap: 8px; }
  .brawler-nav .nav-brand .logo-img { width: 40px; height: 36px; object-fit: contain; padding: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .brawler-page .reveal { opacity: 1; transform: none; transition: none; }
  .brawler-page a, .brawler-page button { transition: none; }
  .mb-store-btn:hover { transform: none; }
  .mb-neon-portrait { animation: none; }
  .mb-plans[data-billing="yearly"] .mb-price .price.when-yearly { animation: none; }
  .mb-film-aura, .mb-film-stage { animation: none; }
}
