.rp-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 56px;
}

.rp-sheet {
  width: min(760px, 100%);
  margin: 12px auto 0;
  color: #241c16;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(141, 58, 58, 0.14), transparent 46%),
    radial-gradient(90% 70% at 0% 100%, rgba(154, 112, 68, 0.2), transparent 42%),
    #f6f1e6;
  border: 1px solid #e4d7c4;
  border-radius: 28px;
  padding: 28px 22px 32px;
  box-shadow: 0 18px 40px rgba(20, 12, 8, 0.18);
}

.rp-cord {
  height: 28px;
  margin: 0 0 14px;
}

.rp-cord svg {
  width: 100%;
  height: 28px;
  display: block;
}

.rp-title {
  margin: 0 0 10px;
  color: #241c16;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.rp-lead,
.rp-skip,
.rp-read,
.rp-dim,
.rp-tell,
.rp-missread,
.rp-safe,
.rp-clip {
  color: #3a312a;
  font-size: 1.05rem;
  line-height: 1.65;
}

.rp-skip {
  color: #6a5c50;
}

.rp-gates {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.rp-gate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  color: #241c16;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid #e0d3c2;
  border-radius: 14px;
  font-size: 1.05rem;
}

.rp-gate-row input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #8d3a3a;
}

.rp-miss {
  color: #8d3a3a;
  font-weight: 700;
}

.rp-start,
.rp-actions button,
.rp-actions a {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #8d3a3a;
  color: #fffaf4;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rp-start:disabled {
  background: #c9b8a6;
  color: #6d6258;
  cursor: not-allowed;
}

.rp-start:not(:disabled):hover,
.rp-actions button:hover,
.rp-actions a:hover {
  background: #732f30;
}

.rp-count {
  margin: 0 0 8px;
  color: #8d3a3a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rp-knots {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.rp-knot {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e4d5c3;
}

.rp-knot.is-on {
  background: #9a7044;
}

.rp-prompt {
  margin: 0 0 18px;
  color: #241c16;
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  line-height: 1.4;
}

.rp-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.rp-choice {
  flex: 1 1 0;
  min-width: 5.6rem;
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid #d9c7b0;
  border-radius: 18px;
  background: #fffaf3;
  color: #241c16;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.rp-choice .rp-n {
  display: block;
  margin-bottom: 2px;
  color: #9a7044;
  font-size: 0.78rem;
}

.rp-choice:hover,
.rp-choice:focus-visible {
  border-color: #8d3a3a;
  outline: 2px solid #8d3a3a;
  outline-offset: 2px;
}

.rp-choice.is-on {
  background: #8d3a3a;
  border-color: #8d3a3a;
  color: #fffaf4;
}

.rp-choice.is-on .rp-n {
  color: #f3d2b0;
}

.rp-braid {
  margin: 0 0 8px;
  padding: 8px 8px 0;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.55);
}

.rp-braid svg {
  width: 100%;
  height: auto;
  display: block;
}

.rp-strand {
  fill: none;
  stroke-linecap: round;
}

.rp-braid[data-role="rigger"] .rp-strand-r { stroke: #9a7044; stroke-width: 16; }
.rp-braid[data-role="rigger"] .rp-strand-b { stroke: #d9cbb8; stroke-width: 6; }
.rp-braid[data-role="bottom"] .rp-strand-b { stroke: #8d3a3a; stroke-width: 16; }
.rp-braid[data-role="bottom"] .rp-strand-r { stroke: #d9cbb8; stroke-width: 6; }
.rp-braid[data-role="both"] .rp-strand-r { stroke: #9a7044; stroke-width: 13; }
.rp-braid[data-role="both"] .rp-strand-b { stroke: #8d3a3a; stroke-width: 13; }
.rp-braid[data-role="none"] .rp-strand-r,
.rp-braid[data-role="none"] .rp-strand-b { stroke: #cfc3b4; stroke-width: 6; }

.rp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  margin: 4px 0 8px;
}

.rp-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #2f5d50;
  color: #f6f1e6;
  font-weight: 700;
}

.rp-tag.is-second {
  background: #9a7044;
}

.rp-kicker {
  margin: 8px 0 0;
  color: #8d3a3a;
  font-weight: 700;
}

.rp-type {
  margin: 4px 0 10px;
  color: #241c16;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.rp-tell,
.rp-missread {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.8);
}

.rp-tell span,
.rp-missread span {
  display: block;
  margin-bottom: 4px;
  color: #8d3a3a;
  font-size: 0.86rem;
  font-weight: 700;
}

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.rp-actions button,
.rp-actions a {
  background: #241c16;
}

.rp-safe {
  color: #6a5c50;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .rp-sheet { padding: 22px 14px 26px; }
  .rp-choice { flex: 1 1 30%; min-width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-choice,
  .rp-start,
  .rp-knot { transition: none; }
}
