

:root {
  --by-bg: #071a2b;
  --by-surface: #0d2740;
  --by-surface-deep: #05121f;
  --by-text: #e6f1fb;
  --by-text-muted: #9fb6cc;
  --by-accent-indigo: #5e60ce;
  --by-accent-indigo-light: #a9abf5;
  --by-accent-coral: #ff6b6b;
  --by-coral-ink: #1a0a0f;
  --by-border: rgba(160, 190, 230, 0.18);
  --by-wave-fill: rgba(94, 96, 206, 0.55);
  --by-cta-start: #12385f;
  --by-screen-play-bg: rgba(7, 26, 43, 0.62);
  --by-screen-play-border: rgba(255, 255, 255, 0.3);
  --by-disp: "Russo One", sans-serif;
  --by-thai: "Noto Sans Thai Looped", sans-serif;
  --by-radius-card: 14px;
  --by-radius-frame: 22px;
  --by-radius-pill: 999px;
  --by-max-width: 1180px;
  --by-max-narrow: 780px;
  --by-transition: 180ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.by-body {
  font-family: var(--by-thai);
  font-size: 17px;
  line-height: 1.85;
  background-color: var(--by-bg);
  color: var(--by-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a.by-skip {
  position: absolute;
  top: -9999px;
  left: 16px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 20px;
  background-color: var(--by-accent-coral);
  color: var(--by-coral-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--by-radius-pill);
  display: inline-flex;
  align-items: center;
}

a.by-skip:focus-visible {
  top: 16px;
  outline: 2px solid var(--by-accent-indigo-light);
  outline-offset: 2px;
}

.by-wrap {
  width: 100%;
  max-width: var(--by-max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.by-narrow {
  width: 100%;
  max-width: var(--by-max-narrow);
  margin-inline: auto;
}

.by-h1 {
  font-family: var(--by-thai);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.35;
  color: var(--by-text);
  margin: 0;
  overflow-wrap: anywhere;
}

.by-h2 {
  font-family: var(--by-thai);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.35;
  color: var(--by-text);
  margin: 0;
  overflow-wrap: anywhere;
}

.by-h3 {
  font-family: var(--by-thai);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--by-text);
  margin: 0;
  overflow-wrap: anywhere;
}

.by-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--by-text-muted);
  max-width: 62ch;
  margin: 0;
}

.by-lead.by-lead-sm,
.by-lead-sm {
  font-size: 16px;
  line-height: 1.5;
  color: var(--by-text-muted);
  margin: 0;
}

.by-eyebrow {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--by-accent-coral);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.by-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: var(--by-accent-coral);
  flex-shrink: 0;
}

.by-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--by-radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--by-transition), opacity var(--by-transition), background-color var(--by-transition);
  white-space: nowrap;
}

.by-btn:focus-visible {
  outline: 2px solid var(--by-accent-indigo-light);
  outline-offset: 2px;
}

.by-btn.by-btn-main {
  background-color: var(--by-accent-coral);
  color: var(--by-coral-ink);
}

.by-btn.by-btn-main:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.by-btn.by-btn-line {
  background-color: transparent;
  border: 2px solid var(--by-accent-indigo-light);
  color: var(--by-text);
}

.by-btn.by-btn-line:hover {
  transform: translateY(-2px);
  background-color: rgba(169, 171, 245, 0.1);
}

.by-btn.by-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

header.by-head,
.by-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--by-surface);
  border-bottom: 1px solid var(--by-border);
  width: 100%;
}

.by-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

a.by-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--by-text);
  text-decoration: none;
  min-height: 44px;
}

svg.by-mark {
  width: 34px;
  height: 34px;
  fill: currentColor;
  flex-shrink: 0;
}

span.by-logo-word {
  font-family: var(--by-disp);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--by-text);
}

nav.by-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

a.by-menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  color: var(--by-text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--by-transition);
}

a.by-menu-link:hover {
  color: var(--by-text);
}

.by-head-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

button.by-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-card);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

span.by-burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--by-text);
  border-radius: 2px;
  transition: transform var(--by-transition), opacity var(--by-transition);
}

div.by-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  background-color: var(--by-surface);
  border-bottom: 1px solid var(--by-border);
  box-shadow: 0 20px 32px rgba(5, 18, 31, 0.65);
  z-index: 49;
}

div.by-drawer.is-open {
  display: block;
}

.by-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 20px;
  padding-block: 24px;
}

.by-drawer-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

p.by-drawer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--by-accent-indigo-light);
  letter-spacing: .08em;
  margin: 0 0 8px 0;
}

a.by-drawer-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--by-text);
  text-decoration: none;
  font-size: 16px;
  border-radius: 8px;
  background-color: transparent;
  transition: background-color var(--by-transition);
}

a.by-drawer-link:hover {
  background-color: rgba(160, 190, 230, 0.08);
}

div.by-ticker {
  background-color: var(--by-surface-deep);
  border-bottom: 1px solid var(--by-border);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  padding-block: 10px;
  user-select: none;
}

div.by-tick-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: by-tick-anim 38s linear infinite;
}

span.by-tick-item {
  display: inline-flex;
  align-items: center;
  padding-inline: 18px;
  color: var(--by-text-muted);
  white-space: nowrap;
}

span.by-tick-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--by-accent-coral);
  margin-right: 12px;
  flex-shrink: 0;
}

span.by-tick-dup {
  display: inline-flex;
  align-items: center;
}

@keyframes by-tick-anim {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

nav.by-crumbs {
  font-size: 14px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(160, 190, 230, 0.08);
}

ol.by-crumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

li.by-crumb {
  display: inline-flex;
  align-items: center;
  color: var(--by-text-muted);
}

li.by-crumb + li.by-crumb::before {
  content: "/";
  margin-right: 8px;
  color: var(--by-border);
}

li.by-crumb a {
  color: var(--by-accent-indigo-light);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

main.by-main {
  flex: 1 0 auto;
}

section.by-sec {
  padding-block: clamp(40px, 7vw, 80px);
  position: relative;
}

section.by-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 5vw, 56px);
}

.by-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.by-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.by-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.by-hero-screen {
  position: relative;
}

figure.by-screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

div.by-screen-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--by-radius-frame);
  border: 2px solid var(--by-accent-indigo);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(5, 18, 31, 0.75);
  background-color: var(--by-surface-deep);
}

img.by-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

span.by-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--by-screen-play-bg);
  border: 1px solid var(--by-screen-play-border);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

svg.by-playicon {
  height: 34px;
  width: auto;
  fill: #ffffff;
  transform: translateX(2px);
}

svg.by-wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 36px;
  fill: var(--by-wave-fill);
  pointer-events: none;
}

ul.by-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

li.by-chip {
  display: inline-flex;
  align-items: center;
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-pill);
  font-size: 14px;
  line-height: 1;
  padding: 8px 14px;
  color: var(--by-text);
}

li.by-chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--by-accent-coral);
  margin-right: 8px;
  flex-shrink: 0;
}

section.by-guide {
  position: relative;
}

section.by-guide {
  counter-reset: by-step-counter;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

div.by-step {
  counter-increment: by-step-counter;
  background-color: var(--by-surface);
  border-radius: var(--by-radius-card);
  padding: 24px;
  border: 1px solid var(--by-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

div.by-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--by-text-muted);
}

span.by-step-no {
  font-family: var(--by-disp);
  color: var(--by-accent-coral);
  font-size: 26px;
  line-height: 1;
}

span.by-step-no::before {
  content: counter(by-step-counter, decimal-leading-zero);
}

p.by-more {
  margin: 24px 0 0 0;
}

a.by-more-link {
  display: inline-flex;
  align-items: center;
  color: var(--by-accent-indigo-light);
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  font-size: 16px;
  transition: transform var(--by-transition);
}

a.by-more-link::after {
  content: " \2192";
  margin-left: 6px;
  transition: transform var(--by-transition);
}

a.by-more-link:hover::after {
  transform: translateX(4px);
}

section.by-leagues {
  position: relative;
}

section.by-leagues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

div.by-lg-item {
  background-color: var(--by-surface);
  border-left: 4px solid var(--by-accent-indigo);
  border-top: 1px solid var(--by-border);
  border-right: 1px solid var(--by-border);
  border-bottom: 1px solid var(--by-border);
  border-radius: 0 var(--by-radius-card) var(--by-radius-card) 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

div.by-lg-item p {
  margin: 0;
  font-size: 15px;
  color: var(--by-text-muted);
  line-height: 1.6;
}

section.by-long,
section.by-art {
  position: relative;
}

article.by-prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--by-text);
}

article.by-prose h2 {
  font-family: var(--by-thai);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.35;
  color: var(--by-text);
  border-left: 4px solid var(--by-accent-coral);
  padding-left: 14px;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

article.by-prose h3 {
  font-family: var(--by-thai);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--by-text);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

article.by-prose p {
  margin: 0 0 1.2em 0;
}

article.by-prose ul,
article.by-prose ol {
  padding-left: 24px;
  margin: 0 0 1.2em 0;
}

article.by-prose li {
  margin-bottom: 0.4em;
}

article.by-prose strong {
  font-weight: 700;
  color: #ffffff;
}

article.by-prose a {
  color: var(--by-accent-indigo-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

div.by-tablewrap {
  overflow-x: auto;
  margin-block: 24px;
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-card);
}

article.by-prose table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

article.by-prose th {
  background-color: var(--by-surface);
  color: var(--by-text);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--by-border);
}

article.by-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--by-border);
  color: var(--by-text-muted);
}

aside.by-inline {
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  border-left: 4px solid var(--by-accent-coral);
  border-radius: 0 var(--by-radius-card) var(--by-radius-card) 0;
  padding: 20px;
  margin-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

p.by-inline-text {
  margin: 0;
  font-size: 16px;
  color: var(--by-text);
  flex: 1 1 240px;
}

section.by-games {
  position: relative;
}

div.by-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 8px;
}

div.by-rail-ctl {
  display: flex;
  gap: 8px;
}

button.by-rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  color: var(--by-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--by-transition), background-color var(--by-transition);
}

button.by-rail-btn:hover {
  background-color: rgba(160, 190, 230, 0.12);
  transform: translateY(-2px);
}

div.by-rail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--by-accent-indigo) var(--by-surface-deep);
  -webkit-overflow-scrolling: touch;
}

div.by-rail::-webkit-scrollbar {
  height: 6px;
}

div.by-rail::-webkit-scrollbar-track {
  background: var(--by-surface-deep);
  border-radius: 4px;
}

div.by-rail::-webkit-scrollbar-thumb {
  background: var(--by-accent-indigo);
  border-radius: 4px;
}

a.by-card {
  flex: 0 0 clamp(148px, 44vw, 214px);
  scroll-snap-align: start;
  border-radius: var(--by-radius-card);
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--by-transition);
}

a.by-card:hover {
  transform: translateY(-4px);
}

img.by-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

span.by-card-name {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--by-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

section.by-phero {
  padding-block: clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--by-surface) 0%, var(--by-bg) 100%);
  position: relative;
  overflow: hidden;
}

.by-phero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.by-phero-grid:has(> :only-child),
.by-phero-grid > :only-child {
  grid-column: 1 / -1;
  max-width: var(--by-max-narrow);
}

.by-phero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

p.by-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--by-text-muted);
  margin: 0;
}

p.by-meta span + span:not(.by-meta-age)::before {
  content: "•";
  margin-right: 10px;
  color: var(--by-border);
}

span.by-meta-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid var(--by-accent-coral);
  border-radius: 4px;
  color: var(--by-accent-coral);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

div.by-phero-side {
  position: relative;
}

figure.by-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--by-radius-frame);
  overflow: hidden;
  border: 2px solid var(--by-accent-indigo);
  margin: 0;
  background-color: var(--by-surface-deep);
}

img.by-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

section.by-kids {
  position: relative;
}

ul.by-kid-list {
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

li.by-kid {
  display: block;
}

a.by-kid-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-card);
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: transform var(--by-transition);
}

a.by-kid-link:hover {
  transform: translateY(-2px);
}

span.by-kid-t {
  min-width: 0;
  padding-right: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--by-text);
}

span.by-kid-go {
  font-size: 14px;
  color: var(--by-accent-indigo-light);
  display: inline-flex;
  align-items: center;
}

span.by-kid-go::after {
  content: " \2192";
  margin-left: 6px;
  transition: transform var(--by-transition);
}

a.by-kid-link:hover span.by-kid-go::after {
  transform: translateX(4px);
}

section.by-logos {
  position: relative;
}

ul.by-logo-grid {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

li.by-logo-item {
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-card);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

img.by-logo-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

section.by-gallery {
  position: relative;
}

ul.by-gal {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 14px;
}

li.by-gal-item {
  display: block;
}

a.by-gal-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--by-radius-card);
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--by-transition);
}

a.by-gal-card:hover {
  transform: translateY(-4px);
}

img.by-gal-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

section.by-faq {
  position: relative;
}

div.by-q-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

details.by-q {
  background-color: var(--by-surface);
  border: 1px solid var(--by-border);
  border-radius: var(--by-radius-card);
  overflow: hidden;
}

summary.by-q-sum {
  min-height: 52px;
  font-weight: 700;
  color: var(--by-text);
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

summary.by-q-sum::-webkit-details-marker {
  display: none;
}

summary.by-q-sum::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--by-accent-indigo-light);
  line-height: 1;
}

details.by-q[open] > summary.by-q-sum::after {
  content: "\2212";
}

div.by-q-ans {
  padding: 0 20px 20px 20px;
  color: var(--by-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

div.by-q-ans > p {
  margin: 0;
}

section.by-ctasec {
  position: relative;
}

div.by-ctaband {
  position: relative;
  overflow: hidden;
  border-radius: var(--by-radius-frame);
  background: linear-gradient(135deg, var(--by-cta-start) 0%, var(--by-surface) 100%);
  border: 1px solid var(--by-border);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 20px 40px rgba(5, 18, 31, 0.45);
}

div.by-cta-in {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

p.by-cta-text {
  font-size: clamp(16px, 2.5vw, 19px);
  line-height: 1.6;
  color: var(--by-text-muted);
  margin: 0;
}

div.by-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

section.by-nf {
  padding-block: clamp(60px, 12vw, 140px);
  text-align: center;
}

a.by-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--by-radius-pill);
  background-color: var(--by-accent-coral);
  color: var(--by-coral-ink);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform var(--by-transition);
}

a.by-fab:hover {
  transform: translateY(-2px);
}

footer.by-foot {
  background-color: var(--by-surface-deep);
  border-top: 1px solid var(--by-border);
  margin-top: auto;
  position: relative;
}

div.by-foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 40px);
  padding-block: clamp(40px, 6vw, 64px);
}

div.by-foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

p.by-foot-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--by-text-muted);
  margin: 0;
  max-width: 36ch;
}

div.by-foot-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

p.by-foot-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--by-accent-indigo-light);
  letter-spacing: .08em;
  margin: 0 0 8px 0;
}

a.by-foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--by-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--by-transition);
}

a.by-foot-link:hover {
  color: var(--by-text);
}

div.by-foot-meta {
  background-color: var(--by-surface-deep);
  border-top: 1px solid var(--by-border);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

span.by-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--by-accent-coral);
  border-radius: 50%;
  color: var(--by-accent-coral);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}

p.by-foot-legal {
  font-size: 14px;
  color: var(--by-text-muted);
  margin: 0;
  flex: 1 1 280px;
}

p.by-foot-copy {
  font-size: 13px;
  color: var(--by-text-muted);
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 959.98px) {
  nav.by-menu {
    display: none;
  }

  button.by-burger {
    display: inline-flex;
  }

  .by-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .by-phero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  section.by-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section.by-leagues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  ul.by-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  div.by-foot-top {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  div.by-rail-ctl {
    display: none;
  }

  aside.by-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  ul.by-kid-list {
    grid-template-columns: minmax(0, 1fr);
  }

  div.by-foot-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 539.98px) {
  section.by-guide {
    grid-template-columns: minmax(0, 1fr);
  }

  section.by-leagues {
    grid-template-columns: minmax(0, 1fr);
  }

  ul.by-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.by-body {
    padding-bottom: 84px;
  }
}

@media (min-width: 1366px) {
  .by-wrap {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  div.by-tick-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

section.by-guide > .by-h2,
section.by-guide > p.by-more,
section.by-leagues > .by-h2 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

@media (min-width: 1366px) {
  ol.by-crumb-list {
    padding-inline: 0;
  }
}
