body.fpl-body {
  background: #f7f1f4 !important;
  background-color: #f7f1f4 !important;
  color: #1a2744 !important;
}

.fpl-body .shell-footer {
  position: static !important;
  background: #f7f1f4 !important;
  border-top: 1px solid #eadde4 !important;
}

.fpl-body .shell-footer-inner {
  color: #5c5470 !important;
}

main.shell-main.fpl-main {
  box-sizing: border-box;
  width: min(760px, 100%);
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 36px;
  color: #1a2744 !important;
}

.fpl-sheet {
  width: min(720px, 100%);
  margin: 18px auto 0;
}

.fpl-title {
  margin: 0 0 14px;
  color: #1a2744;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.18;
  font-weight: 760;
}

.fpl-lead,
.fpl-skip,
.fpl-safe,
.fpl-read,
.fpl-dim,
.fpl-hard,
.fpl-clip,
.fpl-notes p,
.fpl-count,
.fpl-miss {
  color: #1a2744;
}

.fpl-lead,
.fpl-skip {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.fpl-skip,
.fpl-safe,
.fpl-hard {
  color: #5c4a62;
}

.fpl-gates {
  display: grid;
  gap: 8px;
  margin: 22px 0 18px;
}

.fpl-gate-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 8px 2px;
  color: #1a2744;
  font-size: 1.05rem;
  line-height: 1.45;
}

.fpl-gate-row input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #d4537e;
  flex: none;
}

.fpl-start,
.fpl-actions button {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #d4537e;
  color: #fffafb;
  font-size: 1.05rem;
  font-weight: 740;
  cursor: pointer;
}

.fpl-start:disabled {
  background: #ead5de;
  color: #7d6a74;
  cursor: default;
}

.fpl-start:focus-visible,
.fpl-tick:focus-visible,
.fpl-actions button:focus-visible {
  outline: 3px solid #7d6ad4;
  outline-offset: 3px;
}

.fpl-count {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fpl-meter {
  height: 12px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: #eadde6;
  overflow: hidden;
}

.fpl-meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e56b90, #8d74d6);
}

.fpl-prompt {
  margin: 0;
  color: #1a2744;
  font-size: clamp(1.65rem, 4.4vw, 2.2rem);
  line-height: 1.32;
  font-weight: 740;
}

.fpl-ruler {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(90deg, #f6d5e2, #e4d6f6);
}

.fpl-tick {
  box-sizing: border-box;
  flex: 1 0 calc((100% - 32px) / 5);
  min-height: 58px;
  padding: 8px 6px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 251, 252, 0.78);
  color: #1a2744;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.fpl-tick:hover {
  background: #fff;
}

.fpl-tick.is-on {
  background: linear-gradient(180deg, #fff 0%, #f7b3c8 42%, #c9b0ef 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 16px rgba(196, 92, 140, 0.22);
  color: #1a2744;
}

.fpl-figure {
  margin: 0 0 8px;
}

.fpl-stage {
  display: grid;
  grid-template-columns: 108px 110px 108px;
  justify-content: center;
  align-items: end;
  gap: 14px;
  min-height: 360px;
}

.fpl-tag {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  color: #1a2744;
  font-size: 0.95rem;
  font-weight: 650;
}

.fpl-tag.is-shame { align-items: flex-end; }
.fpl-tag.is-praise { align-items: flex-start; }

.fpl-tag i {
  display: block;
  height: 12px;
  max-width: 100%;
  border-radius: 999px;
  background: #e7a0b8;
}

.fpl-tag.is-praise i { background: #8d74d6; }

.fpl-tag.is-bold {
  font-weight: 850;
}

.fpl-tag.is-bold i { height: 22px; }

.fpl-tube {
  position: relative;
  width: 92px;
  height: 320px;
  border-radius: 46px;
  background: #fff;
  border: 2px solid #ead3e4;
  box-shadow: inset 10px 0 16px rgba(255, 255, 255, 0.9), inset -8px 0 14px rgba(176, 140, 186, 0.18);
  overflow: visible;
}

.fpl-tube::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  bottom: 16px;
  width: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.fpl-fill {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 36px;
  overflow: hidden;
}

.fpl-layer { width: 100%; }
.fpl-layer.cloth { background: linear-gradient(180deg, #f7b7cb, #e05688); }
.fpl-layer.dressed { background: linear-gradient(180deg, #ebc6f4, #c084d8); }
.fpl-layer.named { background: linear-gradient(180deg, #ddd7fb, #7d6ad4); }

.fpl-mark {
  position: absolute;
  left: -6px;
  right: -6px;
  border-top: 1px dashed #8a7aa8;
  pointer-events: none;
}

.fpl-mark span {
  position: absolute;
  right: calc(100% + 8px);
  left: auto;
  top: 0;
  transform: translateY(-50%);
  color: #5c5478;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fpl-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #1a2744;
  font-size: 0.92rem;
  font-weight: 700;
}

.fpl-legend li { display: flex; align-items: center; gap: 6px; }
.fpl-legend b {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.fpl-legend .cloth b { background: #e05688; }
.fpl-legend .dressed b { background: #c084d8; }
.fpl-legend .named b { background: #7d6ad4; }

.fpl-notes { margin: 10px 0 0; text-align: center; }
.fpl-notes p { margin: 0 0 4px; font-size: 0.95rem; }

.fpl-type {
  margin: 18px 0 8px;
  color: #1a2744;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.fpl-kicker {
  margin: 18px 0 6px;
  color: #d4537e;
  font-size: 0.92rem;
  font-weight: 800;
}

.fpl-read,
.fpl-dim,
.fpl-hard,
.fpl-clip,
.fpl-safe {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.fpl-open {
  margin: 0;
  padding-left: 1.2em;
  color: #1a2744;
  font-size: 1.02rem;
  line-height: 1.65;
}

.fpl-clip { margin-top: 12px; font-weight: 740; }
.fpl-safe { margin-top: 12px; }

.fpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fpl-actions button.fpl-ghost {
  background: transparent;
  color: #1a2744;
  border: 2px solid #d4537e;
}

.fpl-miss { margin-top: 12px; font-weight: 700; }

@media (max-width: 720px) {
  .fpl-tick { flex-basis: calc((100% - 16px) / 3); }
  .fpl-stage { grid-template-columns: 84px 92px 84px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fpl-tick,
  .fpl-meter i,
  .fpl-fill { transition: none; }
}
