.story-library,.story-library *{box-sizing:border-box}.story-library{margin:0;background:#020504;color:#e8efec;font-family:system-ui,sans-serif}.story-library .jammin-header{position:relative;max-width:1280px;margin:auto;padding:24px 32px;width:100%;gap:20px}.story-library .room-nav{margin-left:auto!important}.library{width:min(1200px,100%);margin:0 auto;padding:56px 32px 80px}.library-top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:36px}.library h1{font-size:clamp(28px,4vw,38px);font-weight:500;letter-spacing:-.05em;margin:0;line-height:1.15}.new-story{display:inline-flex;align-items:center;justify-content:center;gap:10px;color:#c9e2d8;font-size:14px;text-decoration:none;min-height:44px;white-space:nowrap}.new-story span{font-size:24px;font-weight:300}.library-filters{display:flex;gap:8px;flex-wrap:wrap;margin:-10px 0 28px}.library-filters button{background:transparent;border:1px solid transparent;border-radius:24px;padding:10px 14px;color:#81978d;cursor:pointer;font:inherit;font-size:13px;min-height:44px}.library-filters button[aria-pressed=true]{background:#c1e7d60a;border-color:#c1e7d624;color:#d5e7de}.story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 26px}.story-card{min-width:0;animation:story-arrive .6s ease both}.story-media{width:100%;aspect-ratio:16/10;position:relative;display:block;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at 30% 20%,#b5d8cb1a,transparent 65%),#101714;border:1px solid #ffffff0d;color:#eff6f2;padding:0;cursor:pointer;isolation:isolate}.story-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s ease,opacity .4s;opacity:0}.story-media img.loaded{opacity:1}.story-media:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 55%,#0009);pointer-events:none}.story-media:hover img,.story-media:focus-visible img{transform:scale(1.035)}.story-play{position:absolute;left:20px;bottom:20px;z-index:1;width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff42;border-radius:50%;background:#0a191a44;backdrop-filter:blur(12px)}.story-play svg{width:18px;height:18px;fill:currentColor;stroke:none}.story-count{position:absolute;right:18px;bottom:26px;z-index:1;font-size:12px;color:#edf5ef;text-shadow:0 1px 8px #000}.story-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#a3c6b957;font-size:64px;z-index:-1}.story-info{padding:18px 2px 0}.story-overline{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#7f968c;line-height:1.5}.story-overline time{white-space:nowrap}.story-info h2{font-size:clamp(17px,2vw,21px);font-weight:450;letter-spacing:-.025em;line-height:1.4;margin:9px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.story-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px}.story-people{display:flex;padding-left:3px}.story-avatar{width:26px;height:26px;display:grid;place-items:center;border:2px solid #020504;margin-left:-3px;border-radius:50%;background:#15271f;color:#bcd4c8;font-size:10px}.story-footer button{min-height:44px;border:0;background:transparent;color:#c8e6d7;font:inherit;font-size:13px;padding:8px 0;cursor:pointer}.story-footer button:hover{color:#fff}.story-footer button:disabled{opacity:.4;cursor:wait}.story-state{font-size:12px;color:#82958b}.library #status{font-size:14px;line-height:1.6;color:#8b9e95;margin:24px 0}.library #status:empty{display:none}.library-empty{text-align:center;padding:68px 16px 90px}.library-empty>span{font-size:64px;color:#9ebaaa}.library-empty h2{font-size:24px;font-weight:450;letter-spacing:-.03em;margin:24px 0 12px}.library-empty p{color:#8c9f96;font-size:14px;line-height:1.7;margin-bottom:28px}.library-empty a{color:#c9e8d9;text-decoration:none;font-size:14px}.saved-characters{margin-top:50px;border-top:1px solid #ffffff10;padding-top:20px;color:#8eaaa0;font-size:14px}.saved-characters summary{cursor:pointer;min-height:44px}.character-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.character-card{border-top:1px solid #ffffff10;padding:18px 0;overflow-wrap:anywhere}.character-card h3{font-size:16px;font-weight:450}.character-card p{line-height:1.6;font-size:13px}.library [hidden]{display:none!important}.library :is(button,a,summary):focus-visible{outline:2px solid #a6dcca;outline-offset:5px}.story-library .jammin-header .room-balance{font-size:13px}.story-library .story-film-dialog{box-sizing:border-box}
@keyframes story-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(min-width:1300px){.story-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.story-library .jammin-header{padding:20px;gap:10px}.story-library .jammin-brand{font-size:20px!important}.library{padding:32px 20px 60px}.library-top{gap:12px;margin-bottom:28px}.library h1{font-size:28px}.new-story{font-size:12px;gap:6px}.story-grid{grid-template-columns:minmax(0,1fr);gap:30px}.story-media{border-radius:16px}.character-grid{grid-template-columns:minmax(0,1fr)}.story-library #back-to-game{display:none}}
@media(prefers-reduced-motion:reduce){.story-card{animation:none}.story-media img{transition:none}.story-media:hover img{transform:none}}
