main.shell-main.opl-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.opl-sheet,
.opl-choice,
.opl-start,
.opl-gate-row,
.opl-actions button,
#opl-download { box-sizing: border-box; }
.opl-sheet {
  width: min(720px, 100%);
  margin: 8px auto 28px;
  padding: 28px 22px 32px;
  color: #f7f4ef;
  background:
    radial-gradient(80% 45% at 0% 0%, rgba(243, 230, 208, 0.12), transparent 55%),
    linear-gradient(180deg, #1c1e26 0%, #101218 100%);
  border: 1px solid rgba(243, 230, 208, 0.22);
  border-radius: 28px;
}
.opl-key { display: flex; gap: 8px; height: 8px; }
.opl-chip { flex: 1; display: block; border-radius: 99px; }
.opl-chip-flirt { background: #f3e6d0; }
.opl-chip-kiss { background: #c4844a; }
.opl-chip-sex { background: #6e1c2a; }
.opl-chip-full { background: #8d6a72; }
.opl-title { margin: 16px 0 0; color: #f7f4ef; font-size: clamp(1.7rem, 4.4vw, 2.45rem); line-height: 1.2; }
.opl-lead, .opl-skip, .opl-sentence, .opl-safe, .opl-clip { color: #f7f4ef; font-size: 1.05rem; line-height: 1.55; }
.opl-lead { margin: 12px 0 0; }
.opl-skip { margin: 8px 0 0; color: #d9cbb8; }
.opl-gates { display: grid; gap: 10px; margin-top: 18px; }
.opl-gate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(247, 244, 239, 0.2);
  border-radius: 16px;
  background: rgba(247, 244, 239, 0.05);
  color: #f7f4ef;
  font-size: 1.08rem;
  cursor: pointer;
}
.opl-gate-row input { width: 1.15rem; height: 1.15rem; accent-color: #f3e6d0; }
.opl-miss { margin: 12px 0 0; color: #ffb4b8; }
.opl-start {
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: #f3e6d0;
  color: #1a140c;
  font-size: 1.15rem;
  font-weight: 740;
  cursor: pointer;
}
.opl-start:disabled { opacity: 0.42; cursor: not-allowed; }
.opl-start:focus-visible, .opl-choice:focus-visible, .opl-actions button:focus-visible, #opl-download:focus-visible {
  outline: 3px solid #f7f4ef;
  outline-offset: 2px;
}
.opl-count { margin: 0; color: #f3e6d0; font-weight: 740; letter-spacing: 0.04em; }
.opl-prompt { margin: 12px 0 18px; color: #f7f4ef; font-size: clamp(1.55rem, 4vw, 2.05rem); line-height: 1.35; }
.opl-choices { display: grid; gap: 12px; }
.opl-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(243, 230, 208, 0.35);
  border-radius: 18px;
  background: rgba(16, 18, 24, 0.55);
  color: #f7f4ef;
  font-size: 1.15rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.opl-choice:hover { background: rgba(243, 230, 208, 0.14); }
.opl-choice.is-on { background: #f3e6d0; color: #1a140c; transform: translateY(-1px); }
.opl-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(247, 244, 239, 0.12);
  color: inherit;
  font-weight: 740;
}
.opl-ladder { display: grid; gap: 10px; }
.opl-rung {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(247, 244, 239, 0.12);
  border-radius: 18px;
  background: rgba(247, 244, 239, 0.04);
  color: #d9cbb8;
}
.opl-rung.is-on { color: #f7f4ef; background: rgba(247, 244, 239, 0.1); }
.opl-rung.is-peak { min-height: 112px; }
.opl-rung.is-peak[data-id="flirt"] { background: #f3e6d0; color: #1a140c; border-color: #f3e6d0; }
.opl-rung.is-peak[data-id="kiss"] { background: #c4844a; color: #1a100c; border-color: #c4844a; }
.opl-rung.is-peak[data-id="sex"] { background: #6e1c2a; color: #fff7f4; border-color: #6e1c2a; }
.opl-rung.is-peak[data-id="full"] { background: #8d6a72; color: #fff7f4; border-color: #8d6a72; }
.opl-rung-head { display: flex; justify-content: space-between; gap: 8px; font-size: 1.05rem; font-weight: 740; }
.opl-rail { height: 12px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: rgba(16, 18, 24, 0.28); }
.opl-rung:not(.is-peak) .opl-rail { background: rgba(247, 244, 239, 0.08); }
.opl-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: currentColor; }
.opl-kicker { margin: 18px 0 0; color: #f3e6d0; font-size: 0.85rem; font-weight: 740; letter-spacing: 0.08em; }
.opl-type { margin: 4px 0 0; color: #f7f4ef; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; }
.opl-block { margin: 8px 0 0; color: #e2b15a; font-size: 1.2rem; font-weight: 740; }
.opl-sentence { margin: 10px 0 0; }
.opl-say, .opl-hardline { margin: 14px 0 0; color: #f7f4ef; line-height: 1.5; }
.opl-say { padding: 12px 14px; border-left: 4px solid #f3e6d0; background: rgba(247, 244, 239, 0.06); }
.opl-say-label, .opl-hard-label { display: block; margin-bottom: 4px; color: #f3e6d0; font-size: 0.82rem; font-weight: 740; }
.opl-hard-label { color: #ffb4b8; }
.opl-clip { margin: 12px 0 0; color: #d9cbb8; }
.opl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.opl-actions button, #opl-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(243, 230, 208, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #f7f4ef;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
#opl-share { background: #6e1c2a; border-color: #6e1c2a; color: #fff7f4; }
.opl-safe { margin: 16px 0 0; color: #d9cbb8; }
.opl-gate[hidden],
.opl-ask[hidden],
.opl-result[hidden],
.opl-miss[hidden],
#opl-download[hidden] { display: none !important; }
@keyframes opl-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.opl-ask:not([hidden]) .opl-prompt,
.opl-result:not([hidden]) .opl-ladder { animation: opl-in 0.28s ease; }
@media (prefers-reduced-motion: reduce) {
  .opl-prompt, .opl-ladder, .opl-choice { animation: none; transition: none; }
}
