.bgt-app {
  --bgt-ink: #151b22;
  --bgt-muted: #64717f;
  --bgt-line: #dce4ea;
  --bgt-panel: #ffffff;
  --bgt-soft: #f4f7f8;
  --bgt-red: #b9432f;
  --bgt-teal: #0f6f73;
  --bgt-gold: #c3902d;
  --bgt-shadow: 0 24px 56px rgba(20, 31, 42, .12);
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 14px 56px;
  color: var(--bgt-ink);
  font-family: inherit;
  box-sizing: border-box;
}

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

.bgt-app [hidden],
.bgt-app .is-hidden {
  display: none !important;
}

.bgt-hero,
.bgt-test,
.bgt-result-hero,
.bgt-result-card,
.bgt-score-table {
  border: 1px solid rgba(21, 27, 34, .08);
  background: var(--bgt-panel);
  box-shadow: var(--bgt-shadow);
}

.bgt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 28px;
  align-items: stretch;
  min-height: 520px;
  padding: 34px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,247,247,.94)),
    repeating-linear-gradient(90deg, rgba(15,111,115,.08) 0 1px, transparent 1px 44px);
}

.bgt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, #f7f7f7 0 20%, #315a86 20% 40%, #6d2d86 40% 60%, #553322 60% 80%, #111 80% 100%);
}

.bgt-hero-copy {
  align-self: center;
  position: relative;
  z-index: 1;
}

.bgt-eyebrow,
.bgt-kicker {
  margin: 0 0 12px;
  color: var(--bgt-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bgt-hero h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.bgt-hero p:not(.bgt-eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--bgt-muted);
  font-size: 17px;
  line-height: 1.75;
}

.bgt-hero-actions,
.bgt-result-actions,
.bgt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bgt-hero-actions {
  margin-top: 28px;
}

.bgt-button {
  appearance: none;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(21, 27, 34, .12);
  border-radius: 8px;
  background: #fff;
  color: var(--bgt-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.bgt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 31, 42, .12);
}

.bgt-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bgt-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--bgt-red), #d86f50);
  color: #fff;
}

.bgt-button-ghost {
  background: #f7fafb;
}

.bgt-hero-panel {
  min-height: 420px;
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(10, 25, 31, .88), rgba(19, 42, 47, .94)),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: auto, 46px 46px;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.bgt-hero-panel::before {
  content: "BJJ";
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(255,255,255,.08);
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
}

.bgt-mat-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(10px);
}

.bgt-mat-card span,
.bgt-mat-card em {
  color: rgba(255,255,255,.72);
  font-style: normal;
  font-weight: 800;
}

.bgt-mat-card strong {
  font-size: 42px;
  line-height: 1;
}

.bgt-axis-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.bgt-axis-preview span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  overflow: hidden;
}

.bgt-axis-preview span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bgt-gold), #f0d18a);
}

.bgt-test {
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f7fafb);
}

.bgt-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.bgt-topbar h3 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: 0;
}

.bgt-counter {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4f4;
  color: var(--bgt-teal);
  text-align: center;
  font-weight: 900;
}

.bgt-progress {
  height: 8px;
  margin: 22px 0 24px;
  border-radius: 999px;
  background: #e4ecef;
  overflow: hidden;
}

.bgt-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bgt-teal), var(--bgt-gold));
  transition: width .24s ease;
}

.bgt-question {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bgt-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--bgt-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.bgt-option:hover,
.bgt-option.is-selected {
  border-color: rgba(185, 67, 47, .42);
  background: #fff8f6;
  box-shadow: 0 14px 30px rgba(185, 67, 47, .10);
  transform: translateY(-1px);
}

.bgt-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--bgt-red);
}

.bgt-option span {
  color: #26323f;
  font-size: 15px;
  line-height: 1.58;
  font-weight: 750;
}

.bgt-warning {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--bgt-red);
  font-size: 14px;
  font-weight: 800;
}

.bgt-nav {
  justify-content: space-between;
  margin-top: 16px;
}

.bgt-auto-note {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  color: var(--bgt-muted);
  font-size: 13px;
  font-weight: 800;
}

.bgt-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  padding: 32px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(244,248,248,.96)),
    repeating-linear-gradient(0deg, rgba(15,111,115,.05) 0 1px, transparent 1px 38px);
}

.bgt-result-hero h3 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.bgt-result-hero .bgt-result-copy > p:not(.bgt-eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--bgt-muted);
  font-size: 17px;
  line-height: 1.75;
}

.bgt-result-actions {
  margin-top: 24px;
}

.bgt-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bgt-result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bgt-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bgt-muted);
  font-size: 13px;
  font-weight: 900;
}

.bgt-result-meta strong {
  color: var(--bgt-ink);
}

.bgt-character-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)),
    radial-gradient(circle at 50% 12%, rgba(195,144,45,.20), transparent 44%);
  box-shadow: 0 18px 36px rgba(20, 31, 42, .12);
}

.bgt-character-figure {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)),
    repeating-linear-gradient(90deg, rgba(21,27,34,.08) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, var(--character-color), #111923);
}

.bgt-character-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.18));
}

.bgt-character-figure::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  filter: blur(7px);
}

.bgt-character-head,
.bgt-character-body,
.bgt-character-belt,
.bgt-character-arm,
.bgt-character-leg {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.bgt-character-head {
  top: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 40%, rgba(255,255,255,.35) 0 4px, transparent 5px),
    linear-gradient(180deg, #f2c8a2, #d99c73);
  box-shadow: inset 0 -9px 0 rgba(119,75,44,.16), inset 0 12px 0 rgba(45,29,20,.18), 0 8px 18px rgba(0,0,0,.18);
}

.bgt-character-head::before,
.bgt-character-head::after {
  content: "";
  position: absolute;
  top: 27px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2933;
}

.bgt-character-head::before {
  left: 18px;
}

.bgt-character-head::after {
  right: 18px;
}

.bgt-character-body {
  top: 90px;
  width: 116px;
  height: 94px;
  border-radius: 24px 24px 18px 18px;
  background:
    linear-gradient(130deg, transparent 0 38%, rgba(21,27,34,.16) 39% 42%, transparent 43%),
    linear-gradient(230deg, transparent 0 38%, rgba(21,27,34,.12) 39% 42%, transparent 43%),
    linear-gradient(180deg, #ffffff, #edf2f4);
  box-shadow: inset 0 -12px 0 rgba(21,27,34,.06), inset 0 0 0 2px rgba(255,255,255,.76), 0 14px 24px rgba(0,0,0,.16);
}

.bgt-character-body::before,
.bgt-character-body::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 30px;
  height: 48px;
  border-radius: 8px;
  background: rgba(15,111,115,.10);
  border: 1px solid rgba(15,111,115,.18);
}

.bgt-character-body::before {
  left: 18px;
  transform: rotate(-12deg);
}

.bgt-character-body::after {
  right: 18px;
  transform: rotate(12deg);
}

.bgt-character-belt {
  top: 142px;
  width: 132px;
  height: 16px;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 5px 10px rgba(0,0,0,.18);
  z-index: 2;
}

.bgt-character-belt::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 0;
  width: 18px;
  height: 16px;
  background: #b9432f;
}

.bgt-character-belt::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #111;
}

.bgt-character-arm {
  top: 105px;
  width: 38px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf2f4);
  box-shadow: inset 0 -8px 0 rgba(21,27,34,.07), inset 0 0 0 2px rgba(255,255,255,.72);
}

.bgt-character-arm-left {
  margin-left: -74px;
  transform: translateX(-50%) rotate(22deg);
}

.bgt-character-arm-right {
  margin-left: 74px;
  transform: translateX(-50%) rotate(-22deg);
}

.bgt-character-leg {
  top: 174px;
  width: 46px;
  height: 56px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #ffffff, #edf2f4);
  box-shadow: inset 0 -8px 0 rgba(21,27,34,.07);
}

.bgt-character-leg-left {
  margin-left: -28px;
  transform: translateX(-50%) rotate(8deg);
}

.bgt-character-leg-right {
  margin-left: 28px;
  transform: translateX(-50%) rotate(-8deg);
}

.bgt-character-content {
  padding-top: 16px;
}

.bgt-character-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid currentColor;
  color: var(--character-color);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.bgt-character-content h4 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.bgt-character-content p {
  margin: 0;
  color: var(--bgt-muted);
  font-size: 14px;
  line-height: 1.62;
}

.bgt-character-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bgt-character-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--bgt-line);
  border-radius: 999px;
  background: #fff;
  color: #344350;
  font-size: 12px;
  font-weight: 900;
}

.bgt-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.bgt-result-card,
.bgt-score-table {
  padding: 24px;
  border-radius: 18px;
}

.bgt-result-card-wide {
  grid-column: 1 / -1;
}

.bgt-result-card h4,
.bgt-score-table h4 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.2;
}

.bgt-result-card ul {
  margin: 0;
  padding-left: 20px;
  color: #344350;
  line-height: 1.8;
}

.bgt-axis {
  display: grid;
  gap: 8px;
}

.bgt-axis + .bgt-axis {
  margin-top: 16px;
}

.bgt-axis div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--bgt-muted);
  font-size: 13px;
  font-weight: 900;
}

.bgt-axis div:first-child strong {
  color: var(--bgt-ink);
}

.bgt-axis p {
  margin: 9px 0 0;
  color: var(--bgt-muted);
  font-size: 13px;
  line-height: 1.55;
}

.bgt-axis p b {
  display: block;
  margin-bottom: 3px;
  color: var(--bgt-ink);
}

.bgt-axis-track,
.bgt-score-row div {
  height: 10px;
  border-radius: 999px;
  background: #e8eff1;
  overflow: hidden;
}

.bgt-axis-track span,
.bgt-score-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bgt-teal), var(--bgt-gold), var(--bgt-red));
}

.bgt-score-table {
  margin-top: 16px;
}

.bgt-score-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--bgt-line);
}

.bgt-score-row span,
.bgt-score-row strong {
  color: #42505d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.bgt-score-row strong {
  text-align: right;
}

.bgt-secondary-type {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--bgt-line);
  border-radius: 14px;
  background: #f7fafb;
}

.bgt-content-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--bgt-line);
  border-radius: 14px;
  background: #fffaf1;
}

.bgt-content-links span {
  color: #8a6111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.bgt-content-links a {
  color: var(--bgt-ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.bgt-content-links a:hover {
  color: var(--bgt-red);
}

.bgt-content-links em {
  color: var(--bgt-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.bgt-secondary-type span {
  display: block;
  margin-bottom: 6px;
  color: var(--bgt-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.bgt-secondary-type strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.bgt-secondary-type p {
  margin: 0;
  color: var(--bgt-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bgt-rank-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--bgt-line);
}

.bgt-rank-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef4f4;
  color: var(--bgt-teal);
  font-size: 13px;
  font-weight: 900;
}

.bgt-rank-row strong {
  min-width: 0;
  color: #26323f;
  font-size: 15px;
}

.bgt-rank-row i {
  color: var(--bgt-red);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.bgt-lead-form {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(21, 27, 34, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--bgt-shadow);
}

.bgt-feedback {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(21, 27, 34, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7fafb);
  box-shadow: var(--bgt-shadow);
}

.bgt-feedback h4 {
  margin: 0 0 14px;
  font-size: 22px;
}

.bgt-feedback div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bgt-feedback button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--bgt-line);
  border-radius: 999px;
  background: #fff;
  color: #344350;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.bgt-feedback button:hover {
  border-color: rgba(185, 67, 47, .42);
  color: var(--bgt-red);
}

.bgt-feedback button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.bgt-feedback p {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--bgt-teal);
  font-size: 13px;
  font-weight: 900;
}

.bgt-lead-form h4 {
  margin: 0 0 8px;
  font-size: 22px;
}

.bgt-lead-form p {
  margin: 0 0 18px;
  color: var(--bgt-muted);
  line-height: 1.6;
}

.bgt-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bgt-lead-grid label {
  display: grid;
  gap: 7px;
  color: #344350;
  font-size: 13px;
  font-weight: 900;
}

.bgt-lead-grid input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--bgt-line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.bgt-lead-grid input:focus {
  outline: none;
  border-color: rgba(185, 67, 47, .52);
  box-shadow: 0 0 0 4px rgba(185, 67, 47, .10);
}

.bgt-lead-status {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-left: 12px;
  color: var(--bgt-teal);
  font-size: 13px;
  font-weight: 900;
}

.bgt-noscript {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff4ef;
  color: var(--bgt-red);
  font-weight: 800;
}

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

  .bgt-result-hero {
    grid-template-columns: 1fr;
  }

  .bgt-hero-panel {
    min-height: 300px;
  }

  .bgt-question,
  .bgt-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .bgt-app {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bgt-hero,
  .bgt-test,
  .bgt-result-hero {
    padding: 22px;
    border-radius: 20px;
  }

  .bgt-topbar {
    display: grid;
  }

  .bgt-counter {
    justify-self: start;
  }

  .bgt-option {
    min-height: 0;
    padding: 16px;
  }

  .bgt-nav {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .bgt-auto-note {
    min-height: auto;
  }

  .bgt-lead-grid {
    grid-template-columns: 1fr;
  }

  .bgt-button {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .bgt-score-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .bgt-score-row strong {
    text-align: left;
  }
}
