main.shell-main.ftl-main {
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.ftl-sheet, .ftl-choice, .ftl-start, .ftl-gate-row, .ftl-actions button, #ftl-download { box-sizing: border-box; }
.ftl-sheet {
  width: min(640px, 100%);
  margin: 8px auto 28px;
  padding: 22px 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(80% 40% at 0% 0%, rgba(243, 230, 208, 0.16), transparent 48%),
    radial-gradient(80% 46% at 100% 0%, rgba(142, 36, 48, 0.28), transparent 46%),
    #1a1410;
  color: #fff7f4;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}
.ftl-sheet [hidden] { display: none !important; }
.ftl-rule { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; height: 8px; margin: 0 0 18px; }
.ftl-rule i { display: block; border-radius: 999px; }
.ftl-c-visual { background: #f3e6d0; }
.ftl-c-fantasy { background: #d4896a; }
.ftl-c-touch { background: #8e2430; }
.ftl-title, .ftl-prompt, .ftl-type { margin: 0; color: #fff7f4; font-weight: 760; line-height: 1.28; }
.ftl-title { font-size: clamp(1.7rem, 4.4vw, 2.3rem); }
.ftl-lead, .ftl-skip, .ftl-sentence, .ftl-safe, .ftl-clip, .ftl-mainline { color: #fff7f4; font-size: 1.05rem; line-height: 1.55; }
.ftl-lead { margin: 12px 0 0; }
.ftl-skip { margin: 8px 0 0; color: #f0d3c4; }
.ftl-gates { display: grid; gap: 10px; margin-top: 18px; }
.ftl-gate-row {
  display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 8px 12px;
  border: 1px solid rgba(255, 247, 244, 0.28); border-radius: 14px; background: rgba(255, 247, 244, 0.08);
  color: #fff7f4; font-size: 1.05rem; cursor: pointer;
}
.ftl-gate-row input { width: 22px; height: 22px; margin: 0; accent-color: #d4896a; }
.ftl-miss { margin: 12px 0 0; color: #ffd0a8; font-size: 1.02rem; font-weight: 700; }
.ftl-start, .ftl-actions button, #ftl-download { min-height: 52px; border-radius: 14px; font-size: 1.05rem; font-weight: 740; cursor: pointer; }
.ftl-start { width: 100%; margin-top: 16px; border: 0; background: #d4896a; color: #1a1410; }
.ftl-start:disabled { opacity: 0.42; cursor: not-allowed; }
.ftl-start:focus-visible, .ftl-actions button:focus-visible, #ftl-download:focus-visible, .ftl-choice:focus-visible, .ftl-gate-row:focus-within { outline: 3px solid #d4896a; outline-offset: 2px; }
.ftl-count { margin: 0 0 12px; color: #d4896a; font-size: 0.95rem; font-weight: 740; }
.ftl-prompt { font-size: clamp(1.35rem, 3.4vw, 1.7rem); }
.ftl-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ftl-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 14px;
  border: 1px solid #eadfce; border-radius: 14px; background: #f6efe6; color: #1a1410;
  font-size: 1.08rem; line-height: 1.35; text-align: left; cursor: pointer;
}
.ftl-choice:hover { border-color: #d4896a; background: #fffaf3; }
.ftl-n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #1a1410; color: #fff7f4; font-weight: 760; }
.ftl-choice.is-on { border-color: #d4896a; background: #2a2018; color: #fff7f4; }
.ftl-choice.is-on .ftl-n { background: #d4896a; color: #1a1410; }
.ftl-ruler { margin: 0 0 18px; }
.ftl-ruler-track { position: relative; height: 28px; border-radius: 999px; background: rgba(8, 6, 4, 0.55); overflow: hidden; }
.ftl-ruler-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f3e6d0, #d4896a 55%, #8e2430); }
.ftl-ruler-marks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; color: #f0d3c4; font-size: 0.82rem; font-weight: 740; text-align: center; }
.ftl-meter { display: grid; gap: 12px; margin-bottom: 16px; }
.ftl-track-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; color: #fff7f4; font-weight: 740; }
.ftl-score { margin-left: auto; font-variant-numeric: tabular-nums; }
.ftl-rail { height: 18px; overflow: hidden; border-radius: 999px; background: rgba(8, 6, 4, 0.45); }
.ftl-fill { display: block; height: 100%; width: 0; border-radius: inherit; }
.ftl-fill-visual { background: #f3e6d0; }
.ftl-fill-fantasy { background: #d4896a; }
.ftl-fill-touch { background: #8e2430; }
.ftl-kicker { margin: 0; color: #d4896a; font-size: 0.92rem; font-weight: 740; }
.ftl-type { margin-top: 4px; font-size: clamp(1.8rem, 4vw, 2.3rem); }
.ftl-mainline { margin: 8px 0 0; font-weight: 740; }
.ftl-sentence { margin: 10px 0 0; }
.ftl-say, .ftl-hardline { margin: 14px 0 0; color: #fff7f4; line-height: 1.5; }
.ftl-say { padding: 12px 14px; border-left: 4px solid #d4896a; background: rgba(255, 247, 244, 0.08); }
.ftl-say-label, .ftl-hard-label { display: block; margin-bottom: 4px; color: #d4896a; font-size: 0.82rem; font-weight: 740; }
.ftl-hard-label { color: #ffb4b8; }
.ftl-clip { margin: 12px 0 0; color: #f0d3c4; }
.ftl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ftl-actions button, #ftl-download { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid rgba(255, 247, 244, 0.28); background: #f6efe6; color: #1a1410; text-decoration: none; }
#ftl-share { border: 0; background: #d4896a; color: #1a1410; }
.ftl-safe { margin: 14px 0 0; color: #f0d3c4; font-size: 0.95rem; }
#ftl-canvas { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .ftl-fill, .ftl-ruler-fill, .ftl-choice { transition: none; } }
@media (min-width: 720px) { .ftl-sheet { padding: 28px 26px 24px; } }
