.unlock-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; overflow: auto; padding: 32px; border: 1px solid #67516f; border-radius: 24px; background: #171326; color: #f7efe2; box-shadow: 0 24px 100px #0009; font-family: Manrope, system-ui, sans-serif; }
.unlock-dialog::backdrop { background: #070917cc; backdrop-filter: blur(7px); }
.unlock-dialog h2 { font-family: Fraunces, Georgia, serif; font-size: 2.2rem; line-height: 1.1; margin: 16px 0; }
.unlock-dialog p { line-height: 1.6; color: #d7ccdd; }
.unlock-dialog a, .feedback-social a { color: #ffd198; }
.unlock-dialog form, .story-feedback form { display: grid; gap: 12px; }
.unlock-dialog label, .story-feedback label { font-size: .9rem; text-align: left; }
.unlock-dialog select, .unlock-dialog input[type=email], .story-feedback select, .story-feedback textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #84768f; border-radius: 12px; background: #0b1020; color: #fff; font: inherit; }
.unlock-dialog button, .story-feedback button, .connection-cta button { min-height: 48px; padding: 12px 18px; border: 0; border-radius: 24px; background: #ffd198; color: #211627; font: inherit; font-weight: 800; cursor: pointer; }
.unlock-dialog button:disabled { opacity: .65; cursor: wait; }
.unlock-dialog .unlock-close { display: block; margin: -16px -16px 0 auto; background: transparent; color: #fff; font-size: 1.6rem; width: 48px; }
.growth-kicker { color: #ffcf93; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.growth-note { font-size: .8rem; color: #bfb4cb !important; }
.growth-status:empty { display: none; }
.growth-status { color: #ffcf93 !important; }
[data-connection-card] .story-frame { position: relative; }
.connection-locked .story-art { filter: blur(3px) brightness(.65); }
.connection-label { position: absolute; bottom: 16px; left: 16px; padding: 10px 14px; border-radius: 24px; background: #171326ee; color: #ffd198; font-size: .8rem; font-weight: 800; }
.story-feedback { margin-top: 24px; border-top: 1px solid #ffffff30; padding-top: 16px; text-align: left; }
.story-feedback summary { min-height: 48px; display: list-item; cursor: pointer; font-weight: 800; }
.story-feedback fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.story-feedback legend { margin-bottom: 8px; }
.story-feedback fieldset label { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1px solid #ffffff30; border-radius: 12px; cursor: pointer; }
.story-feedback input { accent-color: #ffd198; }
.story-feedback textarea { resize: vertical; }
.story-feedback p { font-size: .8rem; }
.connection-cta h3 { margin: 12px 0; font-size: 1.5rem; }
.connection-cta button { margin-top: 16px; }
.feedback-social { margin-top: 18px !important; font-size: .85rem; }
.unlock-dialog :focus-visible, .story-feedback :focus-visible, .connection-cta :focus-visible { outline: 3px solid #ffd198; outline-offset: 3px; }
@media(max-width: 480px) { .unlock-dialog { padding: 24px; } .story-feedback fieldset { display: grid; } }

.connection-gated .reader-shell { visibility: hidden; }
.connection-gated .reader-controls, .connection-gated .mobile-dock { visibility: hidden; }
.story-feedback button:disabled { opacity: .65; cursor: default; }


.story-feedback { scroll-margin-top: 80px; }

/* Endings stay in document flow so expanded feedback is never clipped. */
.page.end .end-card { display: block; min-height: 80dvh; }
.page.end .end-card > .art-frame { position: absolute; inset: 0; min-height: 0; opacity: .4; }
.page.end .end-content { position: relative; inset: auto; align-items: center; padding: 112px 24px 40px; }
.page.end .reader-ending { box-sizing: border-box; overflow: visible; width: min(100%, 640px); padding: 24px; }
.reader-ending .paywall-kicker { margin-bottom: 20px; font-size: .68rem; color: #bfb4cb; }
.reader-ending .paywall-links { gap: 12px 24px; margin-top: 24px; }
.reader-ending .paywall-link { min-height: 44px; padding: 4px 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #bfb4cb; font-size: .85rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.reader-ending .paywall-link:hover { color: #fff; }
.connection-preview { position: relative; overflow: hidden; border-radius: 16px; background: #0b1020; }
.connection-preview img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 35%; }
.connection-preview::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, #0b1020e8); }
.connection-preview span { position: absolute; bottom: 14px; left: 18px; z-index: 1; color: #fff; font-size: .8rem; font-weight: 700; }
.connection-offer-copy { padding: 20px 8px 0; }
.reader-ending .connection-cta h3 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.15; margin: 12px 0; }
.reader-ending .connection-cta p { font-size: .9rem; line-height: 1.6; }
.reader-ending .connection-cta button { margin: 18px 0 10px; }
.reader-ending .connection-cta .growth-note { font-size: .72rem; }
.reader-ending .story-feedback { scroll-margin-top: 100px; }
.reader-ending .story-feedback.feedback-primary { border: 0; padding-top: 0; margin-top: 0; }
.feedback-primary summary { font-family: Fraunces, Georgia, serif; font-size: 1.8rem; }
.story-feedback summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.story-feedback summary::-webkit-details-marker { display: none; }
.story-feedback summary::after { content: '+'; font: 400 1.4rem system-ui; color: #ffcf93; }
.story-feedback[open] summary::after { content: '−'; }
.story-feedback form { margin-top: 16px; }
.story-feedback .feedback-status:empty { display: none; }
.story-feedback .feedback-status { padding: 14px; border: 1px solid #ffd19860; border-radius: 12px; background: #ffd19810; font-size: .9rem; line-height: 1.6; }
.feedback-result { padding: 24px 18px; margin-top: 16px; border: 1px solid #a9dab950; border-radius: 16px; background: #a9dab910; text-align: center; }
.feedback-result > span { color: #b7efcc; font-size: 2rem; }
.feedback-result h3 { margin: 8px 0; }
.reader-ending .feedback-social { padding-top: 20px; border-top: 1px solid #ffffff18; }
.feedback-social a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-align: left; text-decoration: none; }
.feedback-social svg { flex: 0 0 24px; color: #efa7c3; }
.feedback-social small { display: block; margin-top: 5px; color: #bfb4cb; font-size: .7rem; }
@media(max-width: 480px) {
  .page.end .end-content { padding: 100px 10px 32px; }
  .page.end .reader-ending { padding: 20px 16px; border-radius: 22px; }
  .connection-preview img { height: 160px; }
  .connection-offer-copy { padding-inline: 0; }
  .reader-ending .connection-cta button { width: 100%; }
}
