@font-face {
  font-family: 'Pulsoid Squarified';
  src: url('../../fonts/pulsoid-squarified.woff2') format('woff2');
  font-display: swap;
}

.bd-page {
  --bd-ink: #14101c;
  --bd-ink-deep: #110d18;
  --bd-panel: #1d1728;
  --bd-rule: #2e2540;
  --bd-icing: #f5eefb;
  --bd-muted: #9b8fb2;
  --bd-soft: #b0a6c4;
  --bd-red: #d81e10;
  --bd-ember: #f48416;
  --bd-teal: #07aba1;
  --bd-purple: #9146ff;
  --bd-violet: #5b2d9e;

  background: var(--bd-ink);
  color: var(--bd-icing);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bd-page .bd-sq {
  font-family: 'Pulsoid Squarified', Lato, sans-serif !important;
  font-weight: 400;
}

.bd-tape {
  height: 6px;
  background: repeating-linear-gradient(90deg, #000000 0 16px, var(--bd-ember) 16px 32px);
}

.bd-hero {
  padding: 96px 24px 72px;
  overflow: hidden;
}

.bd-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.bd-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.bd-greeting {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--bd-muted);
}

.bd-greeting strong {
  color: var(--bd-icing);
  font-weight: 700;
}

.bd-lockup {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: 46px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bd-icing);
}

.bd-lockup-accent {
  color: var(--bd-ember);
  text-shadow: 0 0 28px rgba(244, 132, 22, 0.28);
}

.bd-hero-subtitle {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bd-soft);
}

.bd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.bd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--bd-red);
  color: #ffffff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 35, 19, 0.28);
  transition: all 0.2s ease;
}

.bd-btn-primary:hover,
.bd-btn-primary:focus {
  background: #f52313;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 35, 19, 0.45);
}

.bd-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  color: var(--bd-icing);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bd-btn-link:hover,
.bd-btn-link:focus {
  color: var(--bd-ember);
  text-decoration: none;
}

.bd-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bd-rule);
  align-self: stretch;
  max-width: 520px;
}

.bd-social-label {
  width: 100%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bd-muted);
}

.bd-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: var(--bd-panel);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  color: var(--bd-icing);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.bd-social-btn:hover,
.bd-social-btn:focus {
  color: var(--bd-icing);
  border-color: var(--bd-muted);
  text-decoration: none;
}

.bd-hero-board {
  --bd-mascot-w: 124px;
  --bd-mascot-right: 22px;
  --bd-mascot-h: calc(var(--bd-mascot-w) * 404 / 600);
  position: relative;
  min-width: 0;
  padding-top: calc(var(--bd-mascot-h) - 6px);
}

.bd-mascot-wrap {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--bd-mascot-h);
  pointer-events: none;
}

.bd-mascot-glow {
  position: absolute;
  top: calc(var(--bd-mascot-h) / 2);
  right: calc(var(--bd-mascot-right) + var(--bd-mascot-w) / 2);
  width: calc(var(--bd-mascot-w) * 1.9);
  aspect-ratio: 1;
  transform: translate(50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 132, 22, 0.6), rgba(244, 132, 22, 0.22) 45%, transparent);
  animation: bd-flicker 4.2s ease-in-out infinite;
}

.bd-mascot {
  position: absolute;
  top: 0;
  right: var(--bd-mascot-right);
  width: var(--bd-mascot-w);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 0 2px var(--bd-ember)) drop-shadow(0 0 10px rgba(244, 132, 22, 0.8));
  clip-path: inset(-20px -20px 0 -20px);
}

@keyframes bd-flicker {
  0%, 100% { opacity: 0.9; }
  18% { opacity: 1; }
  34% { opacity: 0.78; }
  52% { opacity: 0.96; }
  71% { opacity: 0.84; }
}

.bd-board {
  position: relative;
  z-index: 1;
  background: var(--bd-panel);
  border: 1px solid var(--bd-rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.bd-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bd-rule);
}

.bd-board-title {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bd-muted);
}

.bd-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bd-teal);
}

.bd-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bd-teal);
  box-shadow: 0 0 8px var(--bd-teal);
}

.bd-board-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}

.bd-board-empty {
  padding: 16px 10px;
  font-size: 15px;
  color: var(--bd-muted);
}

.bd-board-break {
  text-align: center;
  line-height: 14px;
  color: var(--bd-muted);
}

.bd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
}

.bd-row--me {
  background: rgba(244, 132, 22, 0.1);
  outline: 1px solid rgba(244, 132, 22, 0.32);
}

.bd-row-rank {
  width: 28px;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--bd-muted);
}

.bd-row--top .bd-row-rank {
  color: var(--bd-icing);
}

.bd-avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--bd-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bd-muted);
}

.bd-row--me .bd-avatar {
  background: var(--bd-icing);
  color: var(--bd-ink);
}

.bd-avatar--image {
  overflow: hidden;
  padding: 4px;
}

.bd-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bd-row-hidden {
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid var(--bd-rule);
  border-radius: 99px;
  font-size: 11px;
  line-height: 18px;
  color: var(--bd-muted);
}

.bd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bd-row-name {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bd-row-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}

.bd-row-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-muted);
}

.bd-row-score {
  font-size: 20px;
  color: var(--bd-ember);
  text-align: right;
}

.bd-board-foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--bd-rule);
}

.bd-board-total {
  font-size: 22px;
}

.bd-board-foot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bd-muted);
}

.bd-moon {
  position: absolute;
  z-index: 0;
  top: -80px;
  right: -4px;
  width: 68px;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 14px rgba(169, 156, 196, 0.35));
}

.bd-horizon {
  position: relative;
  height: 176px;
  margin-top: -56px;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 75% at 16% 100%, rgba(91, 45, 158, 0.42), transparent 100%),
    linear-gradient(to bottom, transparent, rgba(91, 45, 158, 0.14));
}

.bd-house {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 0 1px rgba(169, 156, 196, 0.5)) drop-shadow(0 0 9px rgba(91, 45, 158, 0.6));
  clip-path: inset(-20px -20px 0 -20px);
}

.bd-how {
  padding: 72px 24px 88px;
  background: var(--bd-ink-deep);
  border-top: 1px solid var(--bd-rule);
}

.bd-how-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.bd-section-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bd-teal);
}

.bd-section-title {
  margin: 14px 0 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bd-icing);
}

.bd-section-subtitle {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bd-soft);
}

.bd-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.bd-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bd-panel);
  border: 1px solid var(--bd-rule);
  border-radius: 14px;
}

.bd-step-num {
  margin-bottom: 14px;
  font-size: 56px;
  line-height: 1;
}

.bd-step-num--teal {
  color: var(--bd-teal);
}

.bd-step-num--purple {
  color: var(--bd-purple);
}

.bd-step-num--ember {
  color: var(--bd-ember);
}

.bd-step-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.bd-step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bd-soft);
}

@media (min-width: 576px) {
  .bd-hero {
    padding-top: 72px;
  }

  .bd-moon {
    top: -40px;
    right: 0;
    width: 84px;
  }

  .bd-lockup {
    font-size: 64px;
  }

  .bd-social-label {
    width: auto;
    margin-right: 6px;
  }

  .bd-hero-board {
    --bd-mascot-w: 140px;
    --bd-mascot-right: 30px;
  }

  .bd-horizon {
    height: 200px;
  }

  .bd-house {
    width: 230px;
  }
}

@media (min-width: 768px) {
  .bd-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .bd-hero-subtitle {
    font-size: 19px;
  }
}

@media (min-width: 1024px) {
  .bd-hero {
    padding: 72px 24px 0;
  }

  .bd-hero-inner {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 72px;
  }

  .bd-lockup {
    font-size: clamp(64px, 6.4vw, 84px);
  }

  .bd-moon {
    top: -36px;
    right: 452px;
    width: clamp(84px, 9vw, 112px);
  }

  .bd-hero-board {
    --bd-mascot-w: 150px;
    --bd-mascot-right: 36px;
    z-index: 1;
  }

  .bd-horizon {
    z-index: 0;
    height: 244px;
    margin-top: -188px;
  }

  .bd-house {
    width: 240px;
  }

  .bd-how {
    padding: 80px 24px 112px;
  }

  .bd-section-title {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-mascot-glow {
    animation: none;
  }
}
