.bld-body {
  background: #e6e4e1;
  color: #243044;
}

.bld-sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 22px 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(44, 63, 115, 0.05), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(224, 162, 74, 0.08), transparent 26%),
    #f3f1ee;
  box-shadow: inset 0 0 90px 24px rgba(28, 32, 48, 0.16);
  color: #243044;
}

main.shell-main.bld-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 32px;
}

.bld-title {
  margin: 0;
  color: #243044;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.bld-lead,
.bld-skip,
.bld-safe,
.bld-read,
.bld-dim,
.bld-hard,
.bld-clip,
.bld-note {
  color: #243044;
  line-height: 1.65;
}

.bld-skip,
.bld-safe {
  color: #3d4a60;
}

.bld-gates {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bld-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #e7e9f2;
  color: #243044;
}

.bld-gate-row input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 22px;
  accent-color: #2c3f73;
}

.bld-gate-row input:checked {
  accent-color: #e0a24a;
}

.bld-start,
.bld-actions button,
#bld-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #e0a24a;
  color: #243044;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.bld-ghost,
#bld-download {
  background: transparent;
  color: #243044;
  border: 1.5px solid #243044;
}

.bld-count {
  margin: 0;
  color: #3d4a60;
  font-weight: 700;
}

.bld-meter {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.bld-seg {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #d5d7e0;
}

.bld-seg.is-in {
  background: #e0a24a;
}

.bld-prompt {
  margin: 16px 0 0;
  color: #243044;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
  font-weight: 750;
}

.bld-ask.is-side .bld-prompt {
  font-size: 1rem;
  font-weight: 700;
  color: #3d4a60;
}

.bld-ruler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.bld-tick {
  flex: 1 1 118px;
  min-width: 108px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1.5px solid #c5c8d4;
  border-radius: 14px;
  color: #243044;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bld-tick:nth-child(1) { background: #d9deee; }
.bld-tick:nth-child(2) { background: #e4e6ef; }
.bld-tick:nth-child(3) { background: #efe8dc; }
.bld-tick:nth-child(4) { background: #f3dfb8; }
.bld-tick:nth-child(5) { background: #e8c98a; }

.bld-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.bld-card {
  min-height: 76px;
  padding: 16px 18px;
  border: 1.5px solid #c5c8d4;
  border-radius: 18px;
  background: #f7f4ee;
  color: #243044;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.bld-tick.is-on,
.bld-card.is-on {
  border-color: #e0a24a;
  background: #f6e2bc;
  box-shadow: 0 0 0 3px rgba(224, 162, 74, 0.35);
}

.bld-figure {
  margin: 0 0 12px;
}

.bld-stage {
  display: block;
  width: 100%;
  height: auto;
}

.bld-petals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 92px;
  margin-top: 8px;
}

.bld-petal {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-height: 92px;
}

.bld-petal i {
  display: block;
  width: 28px;
  border-radius: 99px 99px 12px 12px;
  background: #2c3f73;
}

.bld-petal.is-hot i {
  background: #e0a24a;
}

.bld-figure.is-nope .bld-petal i {
  background: #c5c6cc;
}

.bld-petal span {
  color: #3d4a60;
  font-size: 0.85rem;
  font-weight: 700;
}

.bld-type {
  margin: 8px 0 0;
  color: #243044;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.bld-kicker {
  margin: 18px 0 0;
  color: #8a6230;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.bld-open {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: #243044;
  line-height: 1.65;
}

.bld-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#bld-download[hidden],
#bld-miss[hidden],
#bld-canvas[hidden],
#bld-gate[hidden],
#bld-ask[hidden],
#bld-result[hidden] {
  display: none !important;
}

.bld-prompt:focus,
.bld-type:focus {
  outline: none;
}

@media (max-width: 640px) {
  .bld-tick {
    flex: 1 1 42%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bld-tick,
  .bld-card,
  .bld-start {
    transition: none;
  }
}
