/* FD Brawl Home - Brawl Stats inspired rebuild */

:root {
  --fd-home-bs-blue: #0e5fb0;
  --fd-home-bs-blue-2: #0874d8;
  --fd-home-bs-deep: #071a36;
  --fd-home-bs-yellow: #fabc3b;
  --fd-home-bs-card: rgba(9, 31, 64, .86);
  --fd-home-bs-card-2: rgba(14, 95, 176, .84);
  --fd-home-bs-line: rgba(255,255,255,.14);
  --fd-home-bs-text: #fff;
  --fd-home-bs-muted: rgba(255,255,255,.75);
}

html.fd-design-system[data-fd-page="home"] body {
  background:
    radial-gradient(circle at 18% 4%, rgba(250,188,59,.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(8,116,216,.36), transparent 34%),
    linear-gradient(180deg, #06162f 0%, #0b3770 42%, #071a36 100%) !important;
}

.fd-bs-home {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: #fff;
  font-family: Arial, sans-serif;
}

.fd-bs-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
  align-items: center;
  gap: 30px;
  margin: 20px 0 34px;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background:
    ),
    radial-gradient(circle at 80% 18%, rgba(250,188,59,.25), transparent 28%);
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.fd-bs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    44%, rgba(6,22,47,.10)),
    none;
  background-size: cover;
  background-position: center;
  opacity: .28;
}

.fd-bs-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -145px auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(250,188,59,.18);
  filter: blur(8px);
  pointer-events: none;
}

.fd-bs-hero-content,
.fd-bs-hero-panel {
  position: relative;
  z-index: 2;
}

.fd-bs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(250,188,59,.16);
  border: 1px solid rgba(250,188,59,.38);
  color: var(--fd-home-bs-yellow);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.fd-bs-title {
  max-width: 760px;
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -0.065em;
  color: #fff;
  text-shadow: 0 7px 22px rgba(0,0,0,.22);
}

.fd-bs-title span {
  color: var(--fd-home-bs-yellow);
}

.fd-bs-subtitle {
  max-width: 670px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.45;
  font-weight: 700;
}

.fd-bs-search {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: min(620px, 100%);
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.25);
}

.fd-bs-search select,
.fd-bs-search input {
  height: 52px;
  border: 0;
  outline: none;
  font-family: Arial, sans-serif;
  font-weight: 950;
}

.fd-bs-search select {
  width: 132px;
  padding: 0 12px;
  color: #10233f;
  border-radius: 16px;
  background: #edf4ff;
}

.fd-bs-search input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 12px;
  color: #10233f;
  font-size: 18px;
  background: transparent;
  text-transform: uppercase;
}

.fd-bs-search button {
  width: 56px;
  min-width: 56px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--fd-home-bs-yellow), #ff8b2a);
  color: #10233f;
  cursor: pointer;
  font-weight: 950;
  font-size: 22px;
  box-shadow: 0 10px 20px rgba(0,0,0,.17);
}

.fd-bs-search-help {
  margin: 12px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  font-weight: 700;
}

.fd-bs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fd-bs-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  background: rgba(255,255,255,.10);
}

.fd-bs-action.primary {
  background: linear-gradient(135deg, var(--fd-home-bs-yellow), #ff8b2a);
  color: #10233f;
  border-color: rgba(250,188,59,.75);
}

.fd-bs-phone {
  min-height: 410px;
  padding: 18px;
  border-radius: 34px;
  background:
    ),
    rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 62px rgba(0,0,0,.28);
  transform: rotate(1.6deg);
}

.fd-bs-phone-screen {
  height: 100%;
  min-height: 374px;
  border-radius: 26px;
  overflow: hidden;
  background: #0b2248;
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  grid-template-rows: auto 1fr;
}

.fd-bs-phone-top {
  padding: 16px;
  background: linear-gradient(135deg, #0e5fb0, #1181ee);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fd-bs-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fd-bs-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.46), transparent 32%),
    linear-gradient(135deg, var(--fd-home-bs-yellow), #ff7c2a);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 950;
  color: #10233f;
}

.fd-bs-player strong,
.fd-bs-player span {
  display: block;
}

.fd-bs-player strong {
  color: #fff;
  font-size: 17px;
}

.fd-bs-player span {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 800;
}

.fd-bs-phone-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.fd-bs-mini-card {
  border-radius: 20px;
  padding: 14px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
}

.fd-bs-mini-label {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fd-bs-mini-value {
  margin-top: 4px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.fd-bs-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  margin-top: 10px;
}

.fd-bs-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fd-home-bs-yellow), #34d399);
}

.fd-bs-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
}

.fd-bs-section-title h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.fd-bs-section-title p {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.fd-bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fd-bs-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 85% 15%, rgba(250,188,59,.18), transparent 28%),
    );
  box-shadow: 0 22px 52px rgba(0,0,0,.22);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fd-bs-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250,188,59,.62);
  box-shadow: 0 30px 70px rgba(0,0,0,.30);
}

.fd-bs-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 32%),
    linear-gradient(135deg, var(--fd-home-bs-yellow), #ff8b2a);
  color: #10233f;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.fd-bs-card h3 {
  margin: 18px 0 8px;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fd-bs-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.fd-bs-card-link {
  margin-top: 16px;
  display: inline-flex;
  color: var(--fd-home-bs-yellow);
  font-weight: 950;
}

.fd-bs-wide {
  grid-column: span 2;
}

.fd-bs-video-card {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(250,188,59,.18), transparent 32%),
    );
  box-shadow: 0 22px 52px rgba(0,0,0,.24);
}

.fd-bs-video-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: .98;
  letter-spacing: -0.055em;
  color: #fff;
}

.fd-bs-video-copy p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-weight: 700;
  line-height: 1.5;
}

.fd-bs-video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    ),
    radial-gradient(circle at 40% 30%, rgba(250,188,59,.26), transparent 32%),
    #0b2248;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fd-bs-play {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--fd-home-bs-yellow), #ff8b2a);
  color: #10233f;
  font-size: 34px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

.fd-bs-footer {
  margin: 36px 0 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,22,47,.62);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.fd-bs-footer a {
  color: var(--fd-home-bs-yellow);
  font-weight: 950;
}

@media (max-width: 920px) {
  .fd-bs-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fd-bs-phone {
    transform: none;
    min-height: 340px;
  }

  .fd-bs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fd-bs-wide {
    grid-column: span 2;
  }

  .fd-bs-video-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fd-bs-home {
    width: calc(100vw - 18px);
    padding-top: 14px;
  }

  .fd-bs-hero {
    padding: 18px;
    border-radius: 26px;
  }

  .fd-bs-search {
    flex-wrap: wrap;
  }

  .fd-bs-search select {
    width: 100%;
  }

  .fd-bs-search button {
    width: 100%;
  }

  .fd-bs-grid {
    grid-template-columns: 1fr;
  }

  .fd-bs-wide {
    grid-column: span 1;
  }

  .fd-bs-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
