/* Story library */
#intro.story-intro{display:block;justify-content:initial;pointer-events:auto;overflow:auto;padding:44px clamp(22px,5vw,78px) 64px;background:radial-gradient(ellipse at 90% 0%,#29384280,transparent 44%),#101519;color:#f4f1e9;scrollbar-color:#58616a #101519}
#intro.story-intro.out{pointer-events:none}
#intro.story-intro .inner{max-width:1280px;display:block;margin:0 auto}
.library-hero{display:flex;justify-content:space-between;gap:40px;align-items:flex-end;margin-bottom:36px}
.library-eyebrow{font-size:11px;font-weight:800;letter-spacing:.23em;color:#e7a263;margin-bottom:23px}
#intro.story-intro h1,.library-hero h1{font-size:clamp(40px,5.1vw,72px);white-space:normal;line-height:1.03;letter-spacing:-.055em;font-weight:750;margin:0}
.library-hero p{max-width:560px;font-size:15px;line-height:1.65;color:#aeb9c0;margin-top:18px}
.library-start-actions{display:flex;flex-direction:column;gap:10px;flex-shrink:0;max-width:310px;padding-bottom:3px}
.library-start-actions .btn{min-height:49px;white-space:normal}
.library-start-actions small{color:#88969f;font-size:11px;text-align:center}
.library-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid #ffffff15;padding-top:24px;margin-bottom:22px}
.library-filters button{border:1px solid #ffffff1d;border-radius:30px;padding:9px 16px;font-size:12px;background:transparent;color:#aab7c0}
.library-filters button.active{background:#eee9df;color:#1b2329;border-color:#eee9df}
.library-filters>span{font-size:11px;color:#84939d;margin-left:auto}
.story-poster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.story-poster{text-align:left;display:flex;flex-direction:column;color:#f4f1e9;border:1px solid #ffffff16;background:#192126;border-radius:14px;overflow:hidden;transition:border-color .18s,transform .18s;min-width:0}
.story-poster:hover{border-color:#f0a260;transform:translateY(-3px)}
.story-poster:focus-visible{outline:3px solid #ed9b57;outline-offset:4px}
.story-poster-image{position:relative;aspect-ratio:1.8;overflow:hidden;background:#293238;width:100%}
.story-poster-image::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#08121965,transparent 60%);pointer-events:none}
.story-poster-image img{width:100%;height:100%;object-fit:cover;display:block}
.poster-tags{position:absolute;z-index:1;top:13px;left:13px;right:13px;display:flex;justify-content:space-between;gap:8px}
.poster-tags span{padding:5px 8px;border:1px solid #ffffff2a;background:#10191dcc;border-radius:5px;font-size:10px;color:#f6ede3;letter-spacing:.02em}
.poster-number{position:absolute;bottom:10px;right:15px;z-index:1;font-size:28px;line-height:1;font-weight:300;color:#ffffff96}
.story-poster-copy{padding:18px 19px 16px;display:flex;flex:1;flex-direction:column}
.story-poster-copy h2{font-size:20px;line-height:1.2;letter-spacing:-.025em}
.story-poster-copy p{font-size:12px;line-height:1.6;color:#aeb9c0;margin-top:9px;flex:1}
.poster-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:20px;padding-top:13px;border-top:1px solid #ffffff0f;font-size:10px;color:#84949e}
.poster-footer b{color:#efaa73;font-weight:650;white-space:nowrap;font-size:11px}
.library-duration{font-size:12px;color:#84949e;line-height:1.8;max-width:820px;margin-top:30px}
.library-sheet .sheet-body{background:#101519}.library-sheet .library-hero h1{font-size:44px}.library-sheet .library-hero{align-items:center}.library-sheet .library-filters>span{width:100%;margin:7px 0}
.setup-cover{width:100%;max-height:205px;object-fit:cover;border-radius:12px}.setup-blurb{font-size:15px;line-height:1.6;color:#cbd1d6}.chapter-preview{font-size:13px;line-height:1.7;background:#ffffff06;padding:14px 18px;border:1px solid #ffffff15;border-radius:12px}.chapter-preview summary{cursor:pointer;color:#f0ac71}.chapter-preview ol{padding-left:22px;margin:12px 0}.chapter-preview p{color:#a9b2bb}
.story-cover-in-journal{width:100%;height:160px;object-fit:cover;border-radius:12px}.story-case-banner{padding:17px;background:#cf986c13;border:1px solid #cf986c42;border-radius:14px;display:flex;flex-direction:column;gap:12px}.story-case-banner p{color:#b6bdc5;font-size:13px;line-height:1.6}
/* Readable newspaper, with selectable text rather than lettering baked into an image. */
.newspaper-sheet{background:#d6d0c1!important;color:#24251f}.newspaper-sheet .sheet-head p{color:#5f625b}.newspaper-sheet .sheet-body{padding:18px}.newspaper-sheet .sheet-foot{background:#c9c3b5;border-color:#32352f33}.newspaper-sheet .iconbtn,.newspaper-sheet .btn{color:#24251f;background:#ffffff55}
.newspaper{padding:24px 30px 30px;background:#f2eddf;color:#272b25;box-shadow:0 2px 10px #0001;font-family:Georgia,'Times New Roman',serif;border:1px solid #53574733}
.paper-topline,.paper-rule{display:flex;justify-content:space-between;gap:16px;font:10px/1.5 system-ui,sans-serif;letter-spacing:.08em}.paper-topline{padding-bottom:12px;border-bottom:1px solid #30372f}.paper-masthead{font-weight:900;letter-spacing:-.055em;font-size:clamp(38px,6vw,68px);line-height:1.1;text-align:center;padding:13px 0}.paper-rule{border-top:4px double #30372f;border-bottom:1px solid #30372f;padding:7px 0;letter-spacing:0}.newspaper h1{font-size:36px;letter-spacing:-.03em;line-height:1.08;margin:22px 0}.newspaper figure{margin:0 0 20px}.newspaper img{width:100%;max-height:270px;object-fit:cover;filter:saturate(.7);display:block}.newspaper figcaption{font:10px/1.5 system-ui,sans-serif;margin-top:5px;color:#5e665b}.paper-columns{columns:2;column-gap:28px;font-size:16px;line-height:1.65}.paper-columns p{margin:0 0 18px}.paper-columns p:first-child::first-letter{font-size:45px;float:left;line-height:.9;padding:7px 5px 0 0;font-weight:bold}.paper-byline{font:11px/1.6 system-ui,sans-serif;border-top:1px solid #30372f55;margin-top:20px;padding-top:12px}
/* Chapter work */
.case-summary{display:flex;align-items:center;gap:16px}.case-summary p{font-size:13px;line-height:1.6;color:#aeb9c0}.case-step{padding:20px;border:1px solid #ffffff16;border-radius:14px;background:#182229}.case-step h3{font-size:16px;margin-bottom:12px}.case-step p{font-size:14px;line-height:1.65;margin-bottom:12px;color:#c4ced5}.case-step blockquote{border-left:3px solid #dea36c;padding:14px 16px;background:#fff8e910;font:15px/1.65 Georgia,serif;margin-bottom:15px}.case-options{display:flex;flex-direction:column;gap:8px}.case-options .btn{text-align:left;white-space:normal;justify-content:flex-start}.case-budget{display:flex;flex-wrap:wrap;gap:10px}.case-budget input{flex:1;min-width:130px;width:100%;max-width:200px;border:1px solid #ffffff22;background:#0f171c;padding:12px;border-radius:8px;color:#fff}.case-success{color:#9bd5b6!important}.case-feedback{color:#f0ad75;font-size:13px;line-height:1.5}
/* Pocket phone */
.sheet.phone-sheet{background:#090c0f!important;border:6px solid #0a0d10;border-radius:44px;box-shadow:0 0 0 2px #79818a,0 28px 100px #0009;max-height:calc(100dvh - 54px);height:790px;color:#f1f3f5;overflow:hidden}
.phone-sheet .sheet-body{padding:0;gap:0;overflow:hidden;flex:1;background:linear-gradient(160deg,#1b3344,#13252e 45%,#172020);display:flex;flex-direction:column}
.phone-sheet .sheet-foot{padding:9px 12px 10px;border:none;background:#152028;justify-content:center;min-height:27px}
.phone-homebar{height:5px;width:114px;min-height:5px;padding:0;background:#e3e7e9;border-radius:5px;border:0}
.phone-status{position:relative;display:flex;align-items:center;justify-content:space-between;padding:17px 24px 13px;font-size:11px;flex:none;height:51px}
.phone-island{position:absolute;left:50%;top:10px;transform:translateX(-50%);height:24px;width:100px;background:#040607;border-radius:20px}.phone-island:after{content:'';width:7px;height:7px;background:#123a44;border-radius:100%;position:absolute;right:12px;top:8px;box-shadow:0 0 0 3px #090e14}
.phone-nav{display:flex;align-items:center;justify-content:space-between;padding:4px 20px 10px;min-height:38px;gap:14px}.phone-brand{font-size:11px;color:#a9becb;letter-spacing:.04em}.phone-back{background:none;border:0;color:#d9ad7b;text-align:left;font-size:15px;padding:0}.phone-close{width:27px;height:27px;border-radius:100%;background:#ffffff16;color:#d9e0e5;font-size:20px;line-height:1}
.phone-content{flex:1!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 20px 24px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:#ffffff25 transparent}
.phone-content>*{flex-shrink:0}.phone-content h2{font-size:26px;line-height:1.13;letter-spacing:-.035em}.phone-content h3{font-size:16px;margin-top:4px}.phone-content .btn{font-size:12px;min-height:42px;white-space:normal;line-height:1.4;padding:10px 13px;flex-shrink:0}.phone-content input,.phone-content select{color:#f5f7f8;width:100%;border:1px solid #ffffff26;background:#12212b;border-radius:10px;padding:13px 12px;min-height:44px;font:14px system-ui;outline-offset:3px;box-sizing:border-box}.phone-content select{appearance:auto}.phone-content select option{background:#162630}.phone-greeting span{font-size:11px;color:#b7c7d2}.phone-greeting h2{margin-top:8px;font-size:30px}.phone-widget{border:1px solid #ffffff21;border-radius:22px;background:linear-gradient(120deg,#305568,#203640);padding:19px;text-align:left;display:flex;flex-direction:column;gap:10px;color:#fff;box-shadow:0 4px 16px #0002}.phone-widget small{font-size:9px;letter-spacing:.12em;color:#b6cbd8}.phone-widget strong{font-size:19px;line-height:1.18;letter-spacing:-.02em}.phone-widget>span{font-size:11px;line-height:1.6;color:#bfd0d8}
.phone-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px;margin:10px 0}.phone-app-icon{display:flex;align-items:center;flex-direction:column;gap:8px;background:none;color:#e1e8ed;min-width:0}.phone-app-icon small{font-size:10px;white-space:nowrap}.app-glyph{display:grid;place-items:center;width:58px;height:58px;font-size:29px;border-radius:17px;box-shadow:inset 0 1px 1px #ffffff55,0 4px 10px #0002;color:white}.app-glyph.green{background:linear-gradient(145deg,#55ab7d,#21715e)}.app-glyph.blue{background:linear-gradient(145deg,#70a7e5,#3266a9)}.app-glyph.orange{background:linear-gradient(145deg,#edb779,#ca783f)}.app-glyph.dark{background:linear-gradient(145deg,#657682,#303c46)}.app-glyph.violet{background:linear-gradient(145deg,#b39cdb,#6b64a1)}.app-glyph.cream{background:linear-gradient(145deg,#f7ead1,#ccbaa0);color:#625449}.phone-note{font-size:11px;line-height:1.7;color:#a1b5c1}
.phone-contact{display:flex;gap:12px;align-items:center;text-align:left;padding:13px;background:#ffffff08;border:1px solid #ffffff12;border-radius:14px;color:#e8eef2}.contact-avatar{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:50%;background:#a1b9c32c;color:#dbe8ef;font-size:19px}.phone-contact>span:nth-child(2){flex:1}.phone-contact b{font-size:13px}.phone-contact small{display:block;font-size:10px;color:#9fb1bd;margin-top:4px}.contact-avatar.large{width:64px;height:64px;font-size:30px;margin:2px auto 13px}.call-person{text-align:center}.call-person h2{font-size:23px}.call-person p{font-size:12px;color:#a8bac7;margin:6px 0}.call-person>small{font-size:10px;color:#d8bc91}.call-controls{display:flex;gap:8px}.call-controls .btn{flex:1}.call-transcript,.assistant-chat{display:flex;flex-direction:column;gap:10px}.bubble{padding:13px 15px;border-radius:17px;font-size:13px;line-height:1.65;max-width:96%;overflow-wrap:anywhere}.bubble.npc{background:#ffffff0d;border:1px solid #ffffff12;align-self:flex-start;color:#d6e0e7}.bubble.player{align-self:flex-end;background:#2c655f;color:#e5f5ef;border-bottom-right-radius:5px}.call-transcript .npc{border-bottom-left-radius:5px}
.phone-bank-card{padding:21px;border:1px solid #ffffff32;border-radius:20px;display:flex;flex-direction:column;gap:18px;background:radial-gradient(ellipse at 100% 0%,#6593a866,transparent),linear-gradient(125deg,#314d64,#1b3141);min-height:148px;box-shadow:0 9px 18px #0002}.phone-bank-card small{font-size:9px;letter-spacing:.1em;color:#c8dbe5}.phone-bank-card strong{font-size:31px;font-weight:650;line-height:1}.phone-bank-card>span{font-size:11px;color:#b9cbd6;letter-spacing:.04em}.phone-field{display:flex;flex-direction:column;gap:8px}.phone-field>span{font-size:11px;color:#9fb6c3}.phone-preview{display:flex;flex-direction:column;gap:10px}.phone-preview:not(:empty){border:1px solid #a6b8c130;padding:14px;border-radius:12px;background:#ffffff05}.phone-receipt{padding:13px 0;border-bottom:1px solid #ffffff16;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:12px}.phone-receipt small{display:block;flex-basis:100%;font-size:10px;line-height:1.7;color:#9ab0bf}.phone-receipt p{font-size:12px;line-height:1.5}.phone-line{display:flex;justify-content:space-between;font-size:13px}
.phone-basket{display:flex;flex-direction:column;gap:10px;background:#ffffff0a;padding:15px;border-radius:14px;border:1px solid #ffffff17}.phone-basket>b{font-size:14px}.phone-cart-lines{display:flex;flex-direction:column;gap:6px;color:#c8d5dd;font-size:12px}.phone-product{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #ffffff15}.product-emoji{font-size:27px;flex:0 0 33px}.phone-product>div:nth-child(2){flex:1;min-width:0}.phone-product b{font-size:12px;line-height:1.4}.phone-product small{display:block;font-size:10px;color:#9bb1bd;margin-top:4px}.quantity{display:flex;align-items:center;gap:8px;font-size:12px}.quantity button{width:25px;height:30px;border-radius:7px;background:#ffffff15;color:#e1e9ee;font-size:17px}.quantity span{min-width:12px;text-align:center}.phone-actions{display:flex;gap:10px}.phone-actions>.btn{flex:1}.phone-market-price{display:flex;flex-direction:column;gap:12px;padding:15px 0}.phone-market-price strong{font-size:36px;letter-spacing:-.05em}.phone-market-price span{font-size:13px}.phone-market-price small{font-size:12px;color:#9fb1bd}.positive{color:#99d7b7}.negative{color:#efa097}
.phone-content .calculator-display{text-align:right;font-size:28px;padding:24px 16px;background:#ffffff05}.calculator-result{font-size:21px;text-align:right;min-height:37px;line-height:1.3;overflow-wrap:anywhere;color:#e8bd88}.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.calculator-keys button{height:54px;border-radius:18px;background:#ffffff13;font-size:22px;color:#f0f4f6}.calculator-keys .operator{background:#d99758;color:#172129}.calculator-keys button:active{background:#e4bc8c;color:#172129}
.phone-news-heading small{font-size:9px;color:#d5ab7b;letter-spacing:.12em}.phone-news-heading h2{font:700 26px/1.1 Georgia,serif;margin-top:7px}.phone-news-card{display:flex;flex-direction:column;text-align:left;background:#eae4d7;color:#202b2b;border-radius:14px;overflow:hidden}.phone-news-card>img{height:140px;object-fit:cover;width:100%}.phone-news-card>div{padding:15px;display:flex;flex-direction:column;gap:8px}.phone-news-card small{font-size:9px;color:#6c736e}.phone-news-card b{font:700 21px/1.1 Georgia,serif}.phone-news-card span{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.phone-chapter{display:flex;flex-direction:column;gap:8px;text-align:left;padding:16px;border:1px solid #ffffff1c;border-radius:15px;background:#ffffff06;color:#e4edf1}.phone-chapter small{font-size:9px;color:#d7b686;letter-spacing:.05em}.phone-chapter b{font-size:16px}.phone-chapter span{font-size:11px;color:#a2b8c4}.phone-chapter:disabled{opacity:.42}.assistant-topics{display:flex;gap:7px;flex-wrap:wrap}.assistant-topics>.btn{font-size:10px;min-height:31px;padding:6px 10px}
@media(max-width:950px){.library-hero{gap:24px}.library-start-actions{max-width:260px}.story-poster-grid{gap:16px}.story-poster-copy{padding:15px}.story-poster-copy h2{font-size:18px}.poster-footer{flex-wrap:wrap}.library-filters>span{flex-basis:100%;margin:7px 0 0}}
@media(max-width:700px){#intro.story-intro{padding:28px 20px 40px}.library-hero{flex-direction:column;align-items:flex-start;gap:22px}.library-start-actions{max-width:none;width:100%;display:grid;grid-template-columns:1fr}.library-start-actions small{text-align:left}.story-poster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.story-poster-copy h2{font-size:17px}.story-poster-copy p{font-size:11px}.poster-tags{top:8px;left:8px;right:8px}.poster-tags span{font-size:8px;padding:4px 5px}.poster-number{font-size:23px}.library-eyebrow{margin-bottom:15px}.library-sheet .library-hero h1{font-size:35px}.newspaper{padding:18px}.newspaper h1{font-size:28px}.paper-columns{columns:1;font-size:16px}.case-summary{align-items:flex-start}.case-step{padding:16px}.sheet.phone-sheet{height:810px;max-height:calc(100dvh - 34px)}.phone-sheet .phone-content{padding:12px 16px 20px}}
@media(max-width:420px){.story-poster-grid{grid-template-columns:1fr}.story-poster-image{aspect-ratio:2}.sheet.phone-sheet{border-radius:34px;width:min(100%,380px)}.phone-status{padding-left:18px;padding-right:18px}.phone-nav{padding-left:16px;padding-right:16px}.phone-apps{gap:18px 10px}.phone-content h2{font-size:24px}.case-budget .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.story-poster{transition:none}.story-poster:hover{transform:none}}

.case-options .btn,.phone-content .btn,.story-case-banner .btn{height:auto;min-height:44px}
@media(max-width:860px){#brand{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;font-size:0;border:1px solid #ffffff22;background:#18212b99;border-radius:50%}#brand b{font-size:0}#brand:after{content:'☰';font:20px/1 system-ui;color:#eef0f2}}

#island-scene{position:absolute;inset:0;z-index:4;background-size:cover;background-position:center;pointer-events:none}
#island-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#061215b3,transparent 75%),linear-gradient(0deg,#061215b3,transparent 55%,#06121566)}
body.island-story #globe,body.island-story #labels{visibility:hidden}
body.island-story #panel{background:#0b1c23e8;backdrop-filter:blur(18px)}
body.island-story #search-btn{display:none}
@media(max-width:860px){body.island-story #panel{max-height:48%;bottom:100px}#island-scene{background-position:62% center}}
