:root {
  --wrap-viewport-height: 100vh;
  background: #000;
  color: #fff;
  color-scheme: dark;
}
@supports (height: 100dvh) {
  :root { --wrap-viewport-height: 100dvh; }
}
body {
  --wrap-frame-height: var(--wrap-viewport-height);
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-block-size: var(--wrap-viewport-height);
  margin: 0;
}
.wrap-frame {
  box-sizing: border-box;
  inline-size: 100%;
  min-block-size: var(--wrap-frame-height);
  container-type: inline-size;
  background: #181818;
  overflow: hidden;
}
@media (min-width: 481px) {
  body {
    --wrap-frame-height: min(800px, calc(var(--wrap-viewport-height) - 48px));
    padding: 24px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left));
  }
  .wrap-frame {
    max-inline-size: 424px;
    border-radius: 8px;
  }
}
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #75f952; outline-offset: 4px; }

.wrap-access {
  display: flex;
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  isolation: isolate;
  position: relative;
  background: #202020;
  font: 400 15px/1.5 'Wrap Inter', Inter, system-ui, sans-serif;
  text-align: center;
}
.wrap-access header { display: flex; gap: 10px; align-items: center; justify-content: center; }
.wrap-access header img { height: auto; }
.access-copy { margin-block: auto; padding-block: 48px; }
.access-copy h1 {
  font: 400 clamp(44px, 16cqi, 62px)/0.99 'Wrap Cardinal', Georgia, serif;
  margin: 0 0 16px;
}
.access-copy p { margin: 0 auto 18px; max-width: 300px; color: #c6c6c6; }
.access-fields {
  display: grid;
  gap: 9px;
  border: 0;
  padding: 0;
  margin: 22px auto 14px;
  min-inline-size: 0;
  inline-size: min(100%, 320px);
}
.access-copy label { font-size: 13px; font-weight: 600; }
.access-copy input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 4px;
  background: #181818;
  padding: 10px 12px;
  text-align: center;
}
.access-copy button { color: #181818; background: #75f952; border: 0; border-radius: 4px; min-height: 46px; padding: 10px 18px; font-weight: 600; }
.access-copy button:disabled { opacity: 0.65; }
.access-copy .access-back { color: #75f952; text-underline-offset: 4px; }
.access-orbit {
  position: absolute;
  z-index: -1;
  width: 148%;
  aspect-ratio: 2.45;
  inset: auto -48% -9%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 49% 47%, transparent 24%, rgb(48 90 38 / 45%) 33%, #75f952 39%, #d5ffc3 42%, #50db3b 46%, #1d6423 53%, transparent 71%);
  filter: blur(6px);
  opacity: 0.70;
  transform: rotate(-24deg);
  animation: welcome-drift 8s ease-in-out both;
}
@keyframes welcome-drift { from { transform: translate(-34px, 15px) rotate(-42deg); } to { transform: rotate(-24deg); } }
@media (prefers-reduced-motion: reduce) { .access-orbit { animation: none; } }

#theosu-wrap-story .story-missing-cover { border-radius: 4px; background: #383838; aspect-ratio: 16 / 9; }
#theosu-wrap-story .story-person-list li { grid-template-columns: minmax(0, 1fr) auto; }
#theosu-wrap-story .story-time-long { font-size: clamp(35px, 11cqi, 65px); }
#theosu-wrap-story .story-title { overflow-wrap: anywhere; }
#theosu-wrap-story .recap-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 12px;
  padding: 0 16px env(safe-area-inset-bottom);
  text-align: center;
}
#theosu-wrap-story .recap-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #c6c6c6;
  font-size: 12px;
  text-underline-offset: 3px;
}
