/* A shared wayfinding system, with a different atmosphere for each chapter. */
:root{--accent:#315e50;--chapter-bg:#f5f3e9;--chapter-tint:#e4eee4;--chapter-ink:#233f3b}
body[data-chapter=books]{--accent:#805322;--chapter-bg:#f8f1e4;--chapter-tint:#eedfbe;--chapter-ink:#493925}
body[data-chapter=cinema]{--accent:#783847;--chapter-bg:#f7eef0;--chapter-tint:#e9d6d9;--chapter-ink:#482f3b}
body[data-chapter=videogames],body[data-chapter=play]{--accent:#3d4b89;--chapter-bg:#eef4f8;--chapter-tint:#d4e6ef;--chapter-ink:#263951}
body[data-chapter=blogs]{--accent:#70507f;--chapter-bg:#f6f0f6;--chapter-tint:#e7d9eb;--chapter-ink:#493853}
body[data-chapter=forum],body[data-chapter=discussions]{--accent:#8a4b3d;--chapter-bg:#faf1e9;--chapter-tint:#f0dfd0;--chapter-ink:#553a31}
body[data-chapter=people],body[data-chapter=friends]{--accent:#3d7060;--chapter-bg:#edf5ee;--chapter-tint:#d4e8d9;--chapter-ink:#25493d}
body[data-chapter=shelves]{--accent:#74633b;--chapter-bg:#f5f2e9;--chapter-tint:#e4dfcb;--chapter-ink:#45412f}
body[data-chapter=authors]{--accent:#6c5335;--chapter-bg:#f6f0e5;--chapter-tint:#ead9b9;--chapter-ink:#483b2a}
body[data-chapter=drafts]{--accent:#61724e;--chapter-bg:#f2f4eb;--chapter-tint:#dfe7cf;--chapter-ink:#3d4b32}
body[data-chapter=contests]{--accent:#885a29;--chapter-bg:#fff5e6;--chapter-tint:#f1dfbd;--chapter-ink:#503e28}
body[data-chapter=profile]{--accent:#446562;--chapter-bg:#f1f5f1;--chapter-tint:#dce9e4;--chapter-ink:#294742}
body[data-chapter=messages]{--accent:#476681;--chapter-bg:#f0f5f9;--chapter-tint:#dce7f0;--chapter-ink:#304658}
body[data-chapter=notifications]{--accent:#78642f;--chapter-bg:#fbf7eb;--chapter-tint:#eee5c9;--chapter-ink:#4b432f}
body[data-chapter=settings]{--accent:#50646f;--chapter-bg:#f2f4f5;--chapter-tint:#e1e7ea;--chapter-ink:#334650}
body{background:radial-gradient(ellipse at 100% 0,var(--chapter-tint),transparent 65%),var(--chapter-bg);color:var(--chapter-ink);--text:var(--chapter-ink);--muted:#59645f}
h1,h2,h3{color:var(--chapter-ink)}a,.eyebrow{color:var(--accent)}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover{filter:brightness(.9)}
aside{background:linear-gradient(170deg,#fffdf7,var(--chapter-tint));border-color:#bcc9c0}nav button.active{color:var(--accent);border-color:var(--accent);background:#fffdf8}.topbar{background:#fffdf8f5}.main{max-width:1440px;padding-top:20px}
.chapter-location{display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:20px;font-size:11px;color:#58675f}.chapter-location button{font-size:11px;padding:0;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;color:var(--accent)}
.skip-link{position:fixed;left:20px;top:-100px;z-index:1000;padding:12px 20px;background:#fff;color:#233f3b}.skip-link:focus{top:10px}.main:focus{outline:none}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.chapter-head{border:1px solid #c6c9bb;background:#fffdf9;border-radius:22px;padding:32px;box-shadow:0 12px 40px #28382909;position:relative;isolation:isolate}.chapter-head>div{min-width:0}.chapter-head h1{font-size:clamp(32px,3vw,48px);text-wrap:balance}.chapter-head p{font-size:14px;line-height:1.8;max-width:58ch}.chapter-head.illustrated{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px 32px;min-height:330px;padding:0 0 0 34px;overflow:hidden}.chapter-head.illustrated>div{grid-column:1;grid-row:1;padding-top:32px;align-self:end}.chapter-head.illustrated>button{grid-column:1;grid-row:2;justify-self:start;align-self:start;margin-bottom:32px}.chapter-head.illustrated>div:only-of-type{padding-bottom:30px}.chapter-head.illustrated:has(>button)>div{padding-bottom:0}.chapter-art{grid-column:2;grid-row:1/span 2;margin:0;position:relative;height:100%;min-height:330px;align-self:stretch}.chapter-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:60% center}.chapter-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#fffdf9 0%,transparent 22%)}.chapter-art figcaption{position:absolute;right:16px;bottom:14px;color:#fff;background:#182721d9;border-radius:30px;padding:6px 12px;font-size:10px;letter-spacing:1px;z-index:1}
.chapter-ribbon{display:flex;justify-content:space-between;padding:12px 18px;margin:0 0 20px;border-block:1px solid #b7c1b1;color:var(--accent);font-size:11px;letter-spacing:2px}.chapter-footer{margin-top:48px;padding:25px 0;border-top:1px solid #b9c4b7;display:flex;justify-content:space-between;gap:20px;align-items:center}.chapter-footer p{font:italic 16px Georgia;margin:8px 0}.chapter-footer .eyebrow{font-size:10px}.chapter-footer button{max-width:100%}
.world-portals{margin:36px 0}.portal-heading{margin-bottom:22px}.portal-heading .eyebrow{margin-bottom:8px}.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.world-portal{position:relative;overflow:hidden;border-radius:18px;padding:0;text-align:left;background:#fffdf9;box-shadow:0 8px 26px #28392e15;transition:transform .2s,box-shadow .2s;border:1px solid #bfc9b8}.world-portal img{display:block;width:100%;height:190px;object-fit:cover}.portal-copy{display:flex;flex-direction:column;padding:22px;gap:8px;color:#34483f}.portal-copy small{font-size:10px;letter-spacing:2px;color:#6d6e54}.portal-copy strong{font:28px Georgia;color:#233f3b}.portal-copy>span{font-size:12px}.portal-enter{font-weight:700;margin-top:10px}.world-portal:hover{transform:translateY(-4px);box-shadow:0 16px 36px #28392e24;background:#fffdf9}
.department-grid{gap:16px}.department{position:relative;overflow:hidden;padding:0 0 18px;background:#fffdf9!important;min-height:0}.department img{display:block;width:100%;height:130px;object-fit:cover;margin-bottom:17px}.department strong,.department>span{margin-left:18px;margin-right:18px}.department strong{font-size:24px;color:var(--chapter-ink)}.department>span{line-height:1.6}.department.active{outline:3px solid var(--accent);outline-offset:2px;border-color:transparent}.catalog-filters{padding:20px;background:#fffdf9;border:1px solid #c7cfc1;border-radius:15px}.card{border-color:#c9d0c3}.card h3{line-height:1.3}.work-cover{box-shadow:0 8px 16px #26372618}.reading{background:#fffdfb;max-width:960px;padding:36px;margin-inline:auto}.reading .prose{font-size:16px;line-height:1.9}.reading .work-presentation{margin:28px 0}.empty{padding:36px;background:#fffdf9;border-style:solid;border-color:#c4cebe;border-radius:16px}.empty:before{content:'✧';display:block;font:30px Georgia;color:var(--accent);margin-bottom:10px}
body[data-chapter=cinema] .reading{border-top:5px solid var(--accent)}body[data-chapter=videogames] .reading{border-radius:6px 28px}body[data-chapter=books] .reading{box-shadow:7px 7px 0 #e8ddc9;border-radius:4px 20px 20px 4px}body[data-chapter=blogs] .reading{border-left:4px solid #b79dc3}body[data-chapter=forum] .comment{border-left-color:#ba8872;background:#fbf2e9}body[data-chapter=drafts] .grid>.card{border-radius:3px 18px 18px 3px;border-left:4px solid #a3b48b}body[data-chapter=contests] .grid>.card{border-top:4px solid #c5a156}body[data-chapter=messages] .chat-message.mine{background:#e3edf6}body[data-chapter=notifications] .notification.unread{background:#fff9e5;border-left-color:#9a792d}
body[data-chapter=play] .hero-panel{background-image:linear-gradient(90deg,#fffdf9fa 0%,#fffdf9ed 35%,#fffdf94d 70%),url('/chapter-games.png')}.hero-panel h1{font-size:clamp(36px,4vw,60px);max-width:600px;text-wrap:balance}.hero-panel{min-height:420px}.stats{margin-top:30px}.stat strong{color:var(--accent)}.session-identity strong{max-width:200px;overflow-wrap:anywhere}.topbar>span{letter-spacing:1.3px}
@media(min-width:851px){aside{padding:24px 16px;gap:16px}.account{padding-top:12px}aside nav button{padding:6px 10px}.brand{font-size:21px;letter-spacing:2px}.nav-caption{font-size:9px;letter-spacing:1.5px}}
@media(max-width:1050px){.chapter-head.illustrated{grid-template-columns:1fr 1fr;padding-left:25px}.chapter-head h1{font-size:34px}.chapter-art{min-height:340px}.portal-copy{padding:17px}.portal-copy strong{font-size:23px}.world-portal img{height:160px}.department strong{font-size:20px}}
@media(max-width:850px){aside nav{gap:5px}.chapter-head.illustrated{min-height:310px}.chapter-head.illustrated>div{padding-top:25px}.chapter-head.illustrated>button{margin-bottom:25px}.chapter-art{min-height:310px}.main{padding-top:18px}.hero-panel{min-height:360px}.chapter-footer{flex-wrap:wrap}.session-identity strong{max-width:160px}}
@media(max-width:600px){.main{padding:18px 16px}.chapter-head.illustrated{display:flex;flex-direction:column;padding:0;gap:0;align-items:stretch}.chapter-head.illustrated>.chapter-art{order:-1;width:100%;height:185px;min-height:185px}.chapter-art img{object-position:center 48%}.chapter-art:after{background:linear-gradient(0deg,#fffdf9,transparent 35%)}.chapter-head.illustrated>div{padding:18px 22px 22px;align-self:stretch}.chapter-head.illustrated>button{margin:0 22px 24px;align-self:flex-start}.chapter-head h1{font-size:32px}.chapter-head{padding:24px}.portal-grid{grid-template-columns:1fr;gap:18px}.world-portal img{height:190px}.portal-copy strong{font-size:27px}.department-grid{grid-template-columns:1fr}.department{display:grid;grid-template-columns:100px 1fr;grid-template-rows:auto auto;gap:0 15px;padding:0;min-height:100px}.department img{grid-column:1;grid-row:1/span 2;width:100px;height:100%;min-height:105px;margin:0}.department strong{grid-column:2;margin:15px 12px 5px 0;font-size:22px;align-self:end}.department>span{grid-column:2;margin:0 12px 15px 0}.reading{padding:22px}.catalog-filters{padding:16px}.hero-panel{padding:28px;min-height:360px}.hero-panel h1{font-size:40px}.hero-panel p{font-size:14px}.chapter-location{margin-bottom:16px}.chapter-footer button{text-align:left}.topbar{padding:14px 16px}.catalog-list>.card{min-width:0}.chapter-ribbon{font-size:10px;letter-spacing:1px}}
@media(prefers-reduced-motion:no-preference){.chapter-head,.hero-panel,.chapter-ribbon{animation:chapter-arrive .3s ease-out}@keyframes chapter-arrive{from{opacity:.6;transform:translateY(7px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.world-portal:hover{transform:none}}
.mobile-menu{display:none}
@media(max-width:850px){.mobile-menu{display:block;text-align:left;font-size:13px;padding:11px 14px;margin:0}aside{padding:18px 20px;gap:13px}aside:not(.menu-open)>nav,aside:not(.menu-open)>.account,aside:not(.menu-open)>.support-link{display:none}aside.menu-open>nav{display:flex}aside.menu-open>.account{display:flex}.topbar>span{display:none}.topbar{padding:12px 16px;gap:0}.header-tools{gap:8px}.header-tools .session-identity{margin-left:auto}.session-identity .avatar{width:32px;height:32px;min-width:32px}.session-identity strong{font-size:10px;max-width:120px}.session-identity small{font-size:8px}.header-tools>button{font-size:10px;padding:6px 8px}.brand small{font-size:9px}}
/* Individual works: the cover is the protagonist; controls stay secondary. */
.work-back{margin-bottom:18px}.work-detail{max-width:1160px;margin:auto}.work-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:250px minmax(0,1fr);gap:44px;padding:42px;border:1px solid #d2cebf;background:#fffdf8;border-radius:24px;overflow:hidden;box-shadow:0 16px 45px #263c3510}.work-hero:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.13;background:url('/chapter-books.png') center/cover}.work-hero.film:before{background-image:url('/chapter-cinema.png')}.work-hero.game:before{background-image:url('/chapter-games.png')}.work-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,transparent,#fffdf8e8 48%,#fffdf8)}.work-art-frame{align-self:start;padding:12px;background:#fffdf6b3;border:1px solid #b5ac9255;border-radius:12px;box-shadow:0 14px 30px #2d302b20}.work-art-frame .work-cover.detail{display:block;width:100%;height:auto;max-height:370px;margin:0;background:transparent;object-fit:contain;border-radius:3px}.work-art-frame .cover.detail{width:100%;height:310px;box-shadow:none;border:1px solid #c7c3b0;background:linear-gradient(145deg,var(--chapter-tint),#fffaf0);padding:25px;text-align:center}.work-hero.book .work-art-frame{border-radius:3px 12px 12px 3px;border-left:5px solid #a59166}.work-hero.film .work-art-frame{padding:10px;border-block:7px solid #704553}.work-hero.game .work-art-frame{border-radius:18px 4px 18px 4px}.work-summary h1{font-size:clamp(32px,3.4vw,50px);overflow-wrap:anywhere;text-wrap:balance;margin-bottom:14px}.work-creator{font-size:16px;color:var(--accent)}.work-tags,.work-platforms{display:flex;gap:7px;flex-wrap:wrap}.work-platforms{margin-top:20px}.work-rating{display:flex;gap:14px;align-items:center;margin:24px 0}.work-rating>strong{font:42px Georgia;color:var(--accent)}.work-rating p{margin:0;font-size:12px}.rating-link{padding:0;border:0;text-decoration:underline;background:transparent;font-size:12px}.work-collection{max-width:370px;margin-top:24px}.work-main-actions{margin-top:15px}.work-sections{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:24px 0 28px;padding-bottom:18px;border-bottom:1px solid #c3c9bd}.work-sections button{background:#fffdf8;border:1px solid #c3c9bd;color:var(--accent);padding:10px 18px}.work-sections button:hover{background:var(--chapter-tint)}.work-body-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr);gap:26px;margin-bottom:28px}.work-section,.work-facts{background:#fffdf9;border:1px solid #cbd0c4;border-radius:18px;padding:30px;min-width:0}.work-section{margin-bottom:28px;scroll-margin-top:100px}.work-body-grid>.work-section{margin:0}.work-section:focus{outline:2px solid var(--accent);outline-offset:3px}.work-section h2{font-size:29px;margin-bottom:20px}.work-section>.prose{font-family:Georgia,serif;font-size:18px;line-height:1.9}.work-facts{align-self:start;background:#fffdf7ad}.work-facts h2{font-size:23px}.work-facts .work-metadata{grid-template-columns:minmax(80px,.7fr) minmax(0,1.3fr);gap:10px 16px;margin:0}.work-facts .work-metadata dt,.work-facts .work-metadata dd{padding-bottom:10px;border-bottom:1px solid #cbd0c466;font-size:12px}.work-section .post-media{margin:0}.work-section .video-link{margin:0;background:linear-gradient(120deg,var(--chapter-tint),#fffdf8);padding:26px}.video-missing{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:var(--chapter-bg);border:1px dashed #b8c4b4;border-radius:12px;padding:26px}.video-missing>span{font:48px Georgia;color:var(--accent)}.video-missing>div{flex:1;min-width:180px}.video-missing h3{font-size:22px}.video-missing p{margin-bottom:0}.review-overview{display:grid;grid-template-columns:150px minmax(0,360px);gap:28px;margin:28px 0;padding:24px;background:var(--chapter-bg);border-radius:14px}.review-average strong{font:50px Georgia;color:var(--accent)}.review-average p{font-size:12px}.rating-distribution>div{display:grid;grid-template-columns:35px 1fr 25px;gap:12px;align-items:center;font-size:12px}.rating-distribution meter{width:100%;height:15px;accent-color:var(--accent)}.review-order{max-width:260px;margin:22px 0}.review-list{display:grid;gap:20px}.review-card{padding:24px;border:1px solid #c8d0c2;border-radius:14px;background:#fffefb;min-width:0}.review-byline{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap}.review-byline .meta{margin:5px 0 14px}.review-card>.prose{font-size:15px;line-height:1.85;margin-top:18px}.review-replies{border-top:1px solid #d4d8cd;padding-top:18px;margin-top:20px}.review-replies summary{cursor:pointer;color:var(--accent);font-size:13px}.review-drafts{margin-top:30px;padding-top:24px;border-top:2px dashed #c9b585}.review-drafts .review-card{margin-bottom:20px}.work-management{padding:22px;border:1px solid #c8d0c2;border-radius:14px;background:#fffdf7}.work-management summary{cursor:pointer;font-size:13px;color:var(--accent)}.work-management[open] summary{margin-bottom:20px}.work-management button{margin:6px 10px 0 0}.work-section .empty{margin-top:24px}
@media(max-width:1000px){.work-hero{grid-template-columns:200px minmax(0,1fr);padding:28px;gap:28px}.work-body-grid{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}}
@media(max-width:650px){.work-hero{grid-template-columns:1fr;padding:25px;gap:28px}.work-art-frame{width:min(220px,100%);justify-self:center}.work-hero:after{background:linear-gradient(0deg,#fffdf8 0%,#fffdf8e8 55%,transparent)}.work-summary h1{font-size:33px}.work-body-grid{grid-template-columns:1fr}.work-section,.work-facts{padding:22px}.work-section{scroll-margin-top:20px}.work-section h2{font-size:26px}.work-sections{gap:7px}.work-sections button{padding:9px 13px;font-size:12px}.review-overview{grid-template-columns:1fr;gap:10px}.review-card{padding:18px}.work-collection{max-width:none}.video-missing{padding:20px;gap:14px}.work-section>.prose{font-size:17px}}
.work-art-frame .work-cover.detail{height:320px;object-fit:contain;background:linear-gradient(145deg,#ffffff99,var(--chapter-tint));padding:5px}.work-hero.game .work-art-frame .work-cover.detail{height:270px}@media(max-width:650px){.work-art-frame .work-cover.detail{height:280px}.work-hero.game .work-art-frame .work-cover.detail{height:230px}}

.work-demo-note{padding:14px 18px;border-left:3px solid var(--accent,#b58b42);background:rgba(173,132,62,.09);border-radius:0 12px 12px 0;font-size:.9rem;line-height:1.6;color:var(--muted,#655e71)}

.friend-circle-option{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #ddd4c4;border-radius:10px;margin:10px 0}.friend-circle-option input{width:20px;height:20px;margin:0}

.friend-search{align-items:flex-end}.friend-search label{margin:0;flex:1;min-width:150px}.friend-search button{align-self:flex-end;min-height:44px}.friend-contact-section{margin-top:28px}
