*{box-sizing:border-box} [hidden]{display:none!important}:root{--bg:#0b1014;--panel:#11191e;--line:#ffffff14;--ink:#e9e9df;--muted:#86938f;--accent:#d8f69b;font-family:'Noto Naskh Arabic',serif;color-scheme:dark}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;background:none;border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.stage:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:hover{color:var(--accent)}.skip{position:fixed;top:-100px;z-index:30;padding:15px;background:var(--panel)}.skip:focus{top:5px}header{height:108px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4vw;gap:24px}.brand{display:flex;align-items:center;gap:15px;font:700 30px/1.2 Amiri,serif}.brand small{display:block;color:var(--muted);font:13px/1.7 'Noto Naskh Arabic';margin-top:6px}.brand-symbol{color:var(--accent);font-size:47px;font-family:serif}header nav{display:flex;gap:36px;height:100%;align-items:center}header nav button{font-size:16px;height:100%;position:relative;color:var(--muted)}header nav .active{color:var(--ink)}header nav .active:after{content:'';height:2px;position:absolute;bottom:0;left:0;right:0;background:var(--accent)}#saved-count{font-size:12px;margin-right:7px;color:var(--accent)}.edition{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:10px}.edition i,.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px #d8f69b55}main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,.9fr);max-width:1700px;margin:auto;min-height:calc(100svh - 162px)}.explorer{padding:34px 4vw 20px;min-width:0;overflow:hidden}.explore-heading{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:12px;letter-spacing:.6px;color:var(--muted);margin:0 0 12px}h1{font:400 clamp(27px,2.4vw,39px)/1.5 Amiri;margin:0}h1 span{color:var(--muted)}.round{border:1px solid #ffffff20;border-radius:50%;width:40px;height:40px;font:20px/1 sans-serif;flex-shrink:0}.round:hover{background:#d8f69b10;border-color:#d8f69b60}.filters{display:flex;gap:12px;margin-top:25px;position:relative;z-index:5}.search{display:flex;align-items:center;background:#ffffff04;border:1px solid var(--line);padding:5px 14px;flex:1;min-width:0;border-radius:6px;gap:10px}.search span{font:25px sans-serif;color:var(--muted)}input{background:none;border:0;outline:0;min-width:0;width:100%;font-size:15px;color:var(--ink);height:34px}select{background:#11191e;border:1px solid var(--line);border-radius:6px;color:var(--muted);padding:8px;max-width:38%;font-size:13px}.visual{position:relative;height:440px;margin:10px -4vw 0;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#c7e89908,transparent 65%)}.stage{height:100%;perspective:1200px;position:relative;touch-action:pan-y;cursor:grab;user-select:none;direction:ltr;z-index:2;outline-offset:-8px!important}.stage.dragging{cursor:grabbing}#cylinder{position:absolute;top:50%;left:50%;transform-style:preserve-3d;width:0;height:0}.cylinder-word{position:absolute;left:0;top:0;width:170px;height:52px;display:flex;align-items:center;justify-content:center;direction:rtl;font:400 27px/1.1 Amiri,serif;white-space:nowrap;backface-visibility:hidden;transform-style:preserve-3d;will-change:transform,opacity;color:#e5e9df;text-shadow:0 1px 12px #0005;transition:color .2s}.cylinder-word.long{font-size:19px}.cylinder-word:hover,.cylinder-word.selected{color:var(--accent);text-shadow:0 0 22px #d8f69b40}.cylinder-word.selected:after{content:'';position:absolute;bottom:0;width:24px;height:2px;background:var(--accent)}.orbit{position:absolute;width:78%;height:90px;border:1px solid #d8f69b16;border-radius:50%;left:11%;pointer-events:none}.orbit-one{top:30px}.orbit-two{bottom:25px}.axis{position:absolute;top:27px;bottom:25px;left:50%;border-left:1px dashed #d8f69b12}.coordinate{position:absolute;left:32px;bottom:10px;font:9px/1.6 monospace;letter-spacing:2px;color:#56635b;z-index:0;direction:ltr}.rotation-controls{display:flex;justify-content:center;gap:28px;align-items:center;margin-top:0}.rotation-controls p{font-size:14px;color:#bdc5b6;text-align:center;margin:0}.rotation-controls small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.live-dot{margin-left:8px}.explorer-footer{display:flex;justify-content:space-between;gap:12px;color:#69756f;font-size:11px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}#reader{background:linear-gradient(145deg,#141d22,#10171b);border-right:1px solid var(--line);padding:35px clamp(24px,3vw,48px);display:flex;flex-direction:column;min-width:0;max-height:calc(100svh - 108px);min-height:680px;overflow:auto;scrollbar-width:thin;scrollbar-color:#455147 transparent}.welcome{margin:auto 0;position:relative}.welcome-mark{position:absolute;font:220px/1 Amiri;left:0;top:-45px;color:#d8f69b07;pointer-events:none}.welcome h2{font:400 clamp(50px,5vw,78px)/1.2 Amiri;margin:38px 0 28px}.welcome p{color:#9caaa2;font-size:20px;line-height:1.9;margin-bottom:38px}.primary{background:var(--accent);color:#162113!important;border-radius:5px;padding:12px 20px;font-size:17px;display:flex;align-items:center;justify-content:space-between;gap:30px;width:100%;transition:background .2s}.primary:hover{background:#e7ffc0}.welcome small{font-size:12px;color:#718178;display:block;margin-top:15px}.reader-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.bookmark{font-size:15px;border:1px solid #ffffff20;border-radius:30px;padding:4px 14px}.bookmark[aria-pressed=true]{border-color:var(--accent);color:var(--accent)}.story-title{font:400 58px/1.3 Amiri;margin:24px 0 10px;color:var(--accent)}.story-title.long{font-size:38px}.story-hook{font-size:19px;line-height:1.7;color:#b7c2b8;margin:0 0 20px}.reader-tabs{display:flex;gap:25px;border-bottom:1px solid #ffffff18;margin-bottom:22px}.reader-tabs button{padding:10px 0;color:var(--muted);font-size:15px}.reader-tabs button.active{color:var(--ink);box-shadow:0 1px var(--accent)}.status{display:inline-block;font-size:11px;padding:3px 10px;border:1px solid #d8f69b25;border-radius:30px;color:#a8bb91;margin-bottom:8px}.status.pending{color:#dab58b;border-color:#dab58b40}.intro{font-size:19px;line-height:1.9;color:#d5dccf}.chapter{margin:28px 0;position:relative}.chapter h3{font-size:20px;font-weight:600;display:flex;gap:12px;align-items:center;color:#d6decb}.chapter h3 span{font:10px monospace;color:#869974;border:1px solid #85997040;border-radius:50%;width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.chapter p,.source-copy{font-size:18px;line-height:1.95;color:#aebbb3}.meaning{border-top:1px solid var(--line);padding-top:22px;margin-top:25px;font-size:17px;line-height:1.9;color:#bfcab9}.meaning small{color:var(--accent)}blockquote{margin:12px 0;padding-right:16px;border-right:2px solid #d8f69b50;font-size:17px;color:var(--muted)}.source-link{display:block;padding:14px 0;color:var(--accent);text-decoration:underline;text-underline-offset:5px}.source-item{border-bottom:1px solid var(--line);padding:15px 0}.source-item h3{font-size:21px;font-weight:400;margin:5px 0}.source-item p{color:var(--muted);font-size:14px}.reader-bottom{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:24px;margin-top:35px;font-size:14px;color:var(--muted)}.reader-close{font-size:13px}.content-reveal{animation:reveal .3s ease both}@keyframes reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}footer{padding:18px 4vw;display:flex;justify-content:space-between;border-top:1px solid var(--line);color:#64756d;font-size:12px;gap:20px}footer b{color:var(--accent);margin:0 10px}#word-list{padding:22px 4vw;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;overflow:auto;max-height:100%;height:100%;position:relative;z-index:3}#word-list button{padding:10px;border:1px solid var(--line);border-radius:6px;font-size:19px;text-align:right;background:#11191e;min-height:55px}#word-list button.selected{border-color:#d8f69b70;color:var(--accent)}#empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;color:var(--muted);z-index:5}#reset{color:var(--accent);text-decoration:underline}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:50;padding:12px 25px;background:var(--accent);color:#172016;border-radius:6px;text-align:center}
@media(min-width:1500px){.visual{height:500px}.explorer{padding-top:45px}.filters{margin-top:30px}}@media(max-width:1000px){main{grid-template-columns:minmax(0,1.2fr) minmax(310px,.9fr)}header{padding:0 25px}.brand{font-size:25px}.edition{display:none}.explorer{padding-right:25px;padding-left:25px}.visual{margin-right:-25px;margin-left:-25px}.filters{flex-wrap:wrap}.search{flex-basis:100%}select{max-width:100%;width:100%}.visual{height:440px}.cylinder-word{font-size:24px}.cylinder-word.long{font-size:16px}.coordinate{display:none}.explorer-footer span:first-child{display:none}}
@media(max-width:700px){header{height:88px;padding:0 20px;gap:12px}.brand{font-size:23px;gap:9px}.brand-symbol{font-size:34px}.brand small{font-size:10px}header nav{gap:18px}header nav button{font-size:12px}header nav #saved-count{display:none}main{display:block}.explorer{padding:26px 22px 20px}.explore-heading h1{font-size:28px}.eyebrow{font-size:11px}.filters{margin-top:22px;flex-wrap:nowrap}.search{flex-basis:auto;padding:4px 9px}select{max-width:34%;font-size:11px;width:auto}input{font-size:13px}.visual{height:390px;margin:10px -22px 0}.cylinder-word{width:142px;font-size:23px;height:45px}.cylinder-word.long{font-size:16px}.rotation-controls{gap:24px}.explorer-footer{margin-top:22px}.explorer-footer span:first-child{display:block}.orbit{width:85%;left:7.5%;height:65px}.orbit-one{top:30px}.orbit-two{bottom:30px}#reader{min-height:0;max-height:none;padding:35px 27px;border-right:0;border-top:1px solid var(--line)}.welcome{padding:15px 0 25px}.welcome h2{font-size:54px;margin:25px 0}.welcome p{font-size:18px}.welcome-mark{font-size:180px}.story-title{font-size:53px}.story-title.long{font-size:37px}.chapter p{font-size:19px}.reader-top{scroll-margin-top:15px}footer{font-size:11px;flex-direction:column;gap:6px;padding:20px 25px}#word-list{grid-template-columns:repeat(2,1fr);padding:16px 22px}.reader-close{display:block}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

:root{--accent:#43d7ff;--bg:#050e18;--panel:#0a1724;--ink:#e0ecf8;--muted:#859bad}.orbit,.axis,.coordinate{display:none}.visual{height:530px;background:radial-gradient(circle at center,#193d6022,transparent 65%)}.stage{perspective:none;touch-action:none}#cylinder{transform-style:flat}.cylinder-word{font-size:26px;width:150px;height:47px;white-space:normal;line-height:1.3;backface-visibility:visible;transition:color .15s}.cylinder-word.long{font-size:16px}.cylinder-word.selected{color:#43d7ff;text-shadow:0 0 14px #43d7ff55}.group-nav{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:22px}.group-nav button:disabled{opacity:.25;cursor:default}.reader-tools{display:flex;justify-content:space-between;align-items:center;gap:10px}#reader{background:linear-gradient(135deg,#0e1c2b,#07121e);min-height:700px}.explorer-footer{margin-top:15px}.brand-symbol{color:var(--accent)}.source-link{overflow-wrap:anywhere}@media(max-width:700px){.visual{height:400px}.cylinder-word{font-size:22px;width:110px;height:43px}.cylinder-word.long{font-size:13px}#reader{min-height:0}.group-nav{font-size:12px}}

.explorer{padding-top:22px}.explore-heading h1{font-size:27px}.explore-heading h1 br{display:none}.explore-heading h1 span{margin-right:8px}.filters{margin-top:15px}.visual{height:clamp(440px,calc(100svh - 330px),740px)}.cylinder-word{font-size:31px}.cylinder-word.long{font-size:17px}#unread{font-size:12px;white-space:nowrap;border:1px solid var(--line);border-radius:5px;padding:0 10px;color:var(--muted)}#unread[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}.group-nav{margin-top:15px}.welcome small{color:#8c9ba6}.status{color:#9ed3e1;border-color:#43d7ff40}@media(max-width:700px){.explore-heading h1{font-size:24px}.explore-heading h1 br{display:block}.visual{height:390px}.cylinder-word{font-size:24px}.cylinder-word.long{font-size:13px}.filters{flex-wrap:wrap}.filters .search{order:-1;flex-basis:100%}#unread{padding:6px 12px}select{max-width:70%;flex:1}.rotation-controls{margin-top:8px}}

@media(min-width:701px){main{height:calc(100svh - 160px);min-height:730px}.explorer{display:flex;flex-direction:column;height:100%}.explore-heading,.filters,.rotation-controls,.group-nav,.explorer-footer{flex-shrink:0}.visual{height:auto;min-height:380px;flex:1}#reader{min-height:0;max-height:none;height:100%}.explorer .eyebrow{margin-bottom:5px}.explore-heading h1{font-size:25px}.explorer-footer{padding-top:10px}}.cylinder-word{color:#dce8f4}.chapter p,.source-copy{color:#bdcbd7}.reader-close:hover{color:var(--accent)}

.brand img{width:230px;height:64px;object-fit:cover;border-radius:4px}@media(max-width:700px){.brand img{width:165px;height:48px}}

@media(max-width:700px){#reader:has(.story-title){position:fixed;bottom:0;left:0;right:0;z-index:25;height:84svh;max-height:84svh;border:1px solid #43d7ff35;border-radius:20px 20px 0 0;box-shadow:0 -25px 80px #0009;padding-top:20px;overscroll-behavior:contain}.reader-top{position:sticky;top:-20px;background:#0c1824;z-index:2;padding:10px 0}.reader-close{padding:8px 12px;border:1px solid #ffffff20;border-radius:25px}}
/* Model 3 — reference composition, curved typographic surface. */
:root{--accent:#43dfff;--line:#6c9bb52e;--muted:#9db3c9}body{background:radial-gradient(ellipse at 63% 42%,#10283f 0,#06121e 46%,#030b12 85%)}header{height:82px;padding:0 28px;justify-content:flex-start;background:#07121db0;gap:38px}header nav{gap:35px}header nav .active:after{bottom:16px;box-shadow:0 0 12px #43dfff}header .search{margin-right:auto;flex:0 1 310px;border-radius:28px;height:48px;background:#ffffff03;border-color:#57799966}header .edition{display:none}.brand img{width:220px;height:60px}main{height:calc(100svh - 82px);min-height:700px;grid-template-columns:minmax(0,1fr) minmax(340px,32%);gap:20px;padding:22px 20px;max-width:1800px}.explorer{padding:0 18px;position:relative;height:100%;overflow:visible}.explore-heading{position:absolute;top:0;right:20px;z-index:5;gap:14px}.explore-heading h1{display:none}.explore-heading .eyebrow{font-size:12px;opacity:.65}.filters{position:absolute;bottom:0;right:15px;margin:0;gap:7px;z-index:5}.filters select{width:155px;max-width:none;font-size:12px;background:#08162499}.visual{width:100%;margin:0;flex:1;min-height:0;background:radial-gradient(circle,#173a602b 15%,transparent 67%);overflow:visible}.stage:before{content:'';position:absolute;width:min(78%,70vh);aspect-ratio:1;border-radius:50%;top:50%;left:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 36% 26%,#14345310,#06132205 65%,#254e7515);box-shadow:0 0 60px #20517e0c;pointer-events:none}.cylinder-word,.sphere-detail{position:absolute;left:0;top:0;direction:rtl;white-space:nowrap;width:max-content;height:auto;max-width:none;line-height:1.2;font:700 39px/1.25 Amiri;color:#dce9fa;text-shadow:0 0 9px #8bb5e42a;transform-origin:center;will-change:transform;display:block;padding:0}.cylinder-word.long{font-size:25px}.sphere-detail{font-size:22px;color:#90aed0;pointer-events:none}.cylinder-word.selected{color:#46e4ff;text-shadow:0 0 13px #31dfff77,0 0 35px #16bddd44}.cylinder-word.selected:after{inset:-5px -10px;width:auto;height:auto;background:linear-gradient(var(--accent),var(--accent)) left top/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) left top/3px 10px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/3px 10px no-repeat;pointer-events:none}.rotation-controls{margin:8px 0 36px;gap:23px}.rotation-controls .round{border:none;color:#9fc4df}.rotation-controls p{color:#b6cfe4}.rotation-controls small{font-size:12px}.group-nav{position:absolute;left:15px;bottom:0;gap:16px;margin:0}.explorer-footer{border:0;position:absolute;bottom:44px;left:0;margin:0;padding:0;font-size:11px}.explorer-footer span:first-child{display:none}#reader{height:100%;min-height:0;max-height:100%;border:1px solid #42688577;border-radius:17px;background:linear-gradient(130deg,#0d2032a6,#06111cc9 55%,#0b1c2b99);padding:27px 32px;box-shadow:inset 0 1px #a2d2ff06,0 18px 55px #0002;scrollbar-width:thin;scrollbar-color:#2b485d transparent}.reader-top{font-size:16px;min-height:26px}.reader-close{font-size:12px;color:#819cb1}.story-title{font:700 clamp(55px,4.6vw,76px)/1.3 Amiri;margin:24px 0 5px;color:var(--accent);text-shadow:0 0 22px #25bbda25}.story-hook{font-size:23px;line-height:1.7;margin-bottom:25px;color:#bad0e3}.reader-tools{order:0;margin:0 0 12px}.status{font-size:12px;padding:0;border:0;border-radius:0;color:#96afc3;margin:0}.bookmark{font-size:12px;padding:1px 10px;border-color:#54748a55}.reader-tabs{gap:0;margin-bottom:14px;flex-shrink:0}.reader-tabs button{flex:1;font-size:19px;padding:12px 0}.reader-tabs button.active{color:var(--accent);box-shadow:0 2px var(--accent)}.intro,.chapter p{font-size:clamp(19px,1.5vw,24px);line-height:1.85;color:#c9d9e8;margin:16px 0}.chapter{border-top:1px solid var(--line);padding-top:15px;margin:22px 0}.chapter h3{font-size:23px;color:var(--accent);margin:0 0 10px}.chapter h3 span{display:none}.story-progress{margin-top:auto;padding-top:15px;display:flex;align-items:center;gap:15px;color:var(--muted);font-size:13px}.story-progress button{flex:1;padding:14px;border:1px solid #4dd2fa99;border-radius:12px;background:linear-gradient(135deg,#15364c80,#0c1f30);font-size:21px;color:#ecf6ff;box-shadow:inset 0 0 22px #3cc5ff08}.reader-bottom{margin-top:15px;padding-top:12px;font-size:12px}.welcome h2{color:#dcefff}.welcome .primary{background:#102d40;color:#e3f5ff!important;border:1px solid #49c8ef88;border-radius:12px}.welcome-mark{color:#45dfff09}.welcome p{color:#b1c7db}body>footer{display:none}#word-list{padding:40px 5px;background:#071521cc;border-radius:15px}#word-list button{background:#0d2031;border-color:var(--line)}
@media(max-width:1000px) and (min-width:701px){main{grid-template-columns:minmax(0,1fr) 340px;padding:15px 12px;gap:8px}#reader{padding:22px}.explorer{padding:0}.filters{bottom:0}.group-nav{bottom:42px}.cylinder-word{font-size:32px}.story-hook{font-size:20px}.intro,.chapter p{font-size:19px}header{gap:20px}header .search{flex-basis:220px}}
@media(max-width:700px){header{height:126px;flex-wrap:wrap;gap:5px 18px;padding:8px 18px}header .brand img{width:170px;height:48px}header nav{height:45px;gap:15px;margin-right:auto}header nav .active:after{bottom:0}header .search{flex:1 0 100%;height:40px;order:3}main{display:block;height:auto;min-height:0;padding:15px 12px}.explorer{height:560px;padding:0}.visual{height:440px;min-height:0;flex:none}.explore-heading{right:5px}.cylinder-word{font-size:25px}.cylinder-word.long{font-size:16px}.sphere-detail{font-size:15px}.rotation-controls{margin:0 0 20px}.filters{right:0;bottom:0;flex-wrap:nowrap}.filters select{width:130px}.group-nav{left:0;bottom:48px}.explorer-footer{bottom:88px}.story-title{font-size:62px}.story-hook{font-size:21px}.intro,.chapter p{font-size:21px}#reader{height:auto;max-height:none;margin-top:22px;padding:25px}.welcome h2{font-size:50px}#reader:has(.story-title){position:fixed;bottom:0;left:0;right:0;height:84svh;max-height:84svh;margin:0;border-radius:20px 20px 0 0;background:#081724f7;z-index:25}.reader-top{position:sticky;top:-25px;padding:10px 0;background:#081724;z-index:5}.reader-close{padding:6px 12px;border:1px solid #617e9355;border-radius:20px}.story-progress{padding-top:10px}}
#reader>.content-reveal{min-height:0;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#29495e transparent;padding-left:5px}#reader>.story-title,#reader>.story-hook,#reader>.reader-top,#reader>.reader-tools,#reader>.reader-tabs,#reader>.story-progress,#reader>.reader-bottom{flex-shrink:0}.story-progress{margin-top:8px}.stage.has-selection:after{content:'';position:absolute;left:-35px;top:43%;width:32%;height:7%;border-top:1px dashed #43dfff88;border-radius:50%;transform:rotate(17deg);pointer-events:none;opacity:.7}.cylinder-word.selected:after{background:linear-gradient(var(--accent),var(--accent)) left top/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) left top/3px 10px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) right bottom/3px 10px no-repeat,linear-gradient(var(--accent),var(--accent)) right top/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) right top/3px 10px no-repeat,linear-gradient(var(--accent),var(--accent)) left bottom/10px 3px no-repeat,linear-gradient(var(--accent),var(--accent)) left bottom/3px 10px no-repeat}@media(max-width:700px){.stage.has-selection:after{display:none}}
#reader .story-title,#reader .story-hook{direction:rtl;text-align:right;width:100%}.reader-top{direction:ltr}.reader-top>span{direction:rtl}.reader-top .reader-close{direction:rtl}.content-reveal{overscroll-behavior:contain}

/* The connector follows the actual selected label, including during rotation. */
.stage.has-selection:after{display:none}
#story-connector{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:12;overflow:visible}
#story-connector path{fill:none;stroke-linecap:round}
.connector-halo{stroke:#1fd9ff;stroke-width:7;opacity:.16;filter:blur(3px)}
.connector-line{stroke:#65e7ff;stroke-width:2;stroke-dasharray:5 5;opacity:1}
#story-connector circle{fill:#80f1ff;stroke:#092a3b;stroke-width:2;filter:drop-shadow(0 0 5px #32dcff)}
@media(max-width:700px){#story-connector{display:none!important}}

.sphere-detail{cursor:pointer}.sphere-detail:hover,.sphere-detail:focus-visible{color:#70edff;text-shadow:0 0 12px #43dfff88}

/* Quiet atmospheric light; all layers leave the word hit targets untouched. */
.sphere-atmosphere{position:absolute;left:50%;top:50%;width:var(--sphere-diameter,70%);height:var(--sphere-diameter,70%);transform:translate(-50%,-50%);pointer-events:none;z-index:-1;border-radius:50%}
.sphere-aura{position:absolute;inset:-6%;border-radius:50%;background:radial-gradient(circle,transparent 57%,#26b5f112 64%,#33dfff12 66%,transparent 73%);filter:blur(10px);animation:aura-breathe 6s ease-in-out infinite}
.sphere-rim{position:absolute;inset:-1%;border-radius:50%;background:conic-gradient(from 30deg,transparent 0deg,#70eaff88 45deg,transparent 90deg,transparent 210deg,#258cff66 255deg,transparent 300deg);mask:radial-gradient(circle,transparent 69.4%,#000 70%,#000 70.5%,transparent 71%);opacity:.6;animation:rim-orbit 36s linear infinite}
.sphere-spark{position:absolute;width:3px;height:3px;border-radius:50%;background:#a9f3ff;box-shadow:0 0 9px 2px #3cbfff66;animation:spark-glow var(--duration) ease-in-out var(--delay) infinite;opacity:.3}
@keyframes aura-breathe{0%,100%{opacity:.45;transform:scale(.99)}50%{opacity:1;transform:scale(1.025)}}
@keyframes rim-orbit{to{transform:rotate(360deg)}}
@keyframes spark-glow{0%,100%{opacity:.12;transform:scale(.6)}50%{opacity:.75;transform:scale(1.15)}}
.selection-pulse .sphere-aura{animation:selection-wave 1s ease-out, aura-breathe 6s 1s ease-in-out infinite}
@keyframes selection-wave{0%{opacity:.3;transform:scale(.94)}40%{opacity:1;transform:scale(1.045)}100%{opacity:.45;transform:scale(1)}}
.cylinder-word:hover,.sphere-detail:hover{color:#8ff1ff;text-shadow:0 0 14px #49dfff99}.rotation-controls{position:relative}#motion-toggle{position:absolute;left:5px;top:10px;font-size:12px;color:#9fbacf;border:1px solid #50758c55;border-radius:20px;padding:5px 12px}#motion-toggle:hover{color:#77e7ff;border-color:#47bed688}.motion-paused .sphere-atmosphere *{animation:none!important}.motion-paused .sphere-spark{opacity:.22}@media(max-width:700px){#motion-toggle{top:-30px;left:5px;font-size:11px}.sphere-spark{width:2px;height:2px}}
@media(min-width:701px){#motion-toggle{top:-30px}}
#word-list{align-content:start;grid-auto-rows:minmax(55px,auto)}


/* Restore the word-filled silhouette of the approved reference. */
.sphere-rim{display:none}
.sphere-aura{opacity:.18;animation:none}

/* A quiet highlight follows the word under the pointer. */
#cylinder button:hover,#cylinder button:focus-visible{color:#92f4ff;text-shadow:0 0 10px #62ddff99,0 0 24px #38b9e255;filter:brightness(1.2)}
#cylinder button:hover:before,#cylinder button:focus-visible:before{content:'';position:absolute;inset:4px -4px;border-bottom:1px solid #6ceaff88;border-radius:45%;pointer-events:none}
#cylinder button.selected:hover:before{display:none}

/* Every word shares a size curve driven by its depth. */
#cylinder .sphere-detail,#cylinder .cylinder-word,#cylinder .cylinder-word.long{font-size:39px}
@media(max-width:1100px) and (min-width:701px){#cylinder .sphere-detail,#cylinder .cylinder-word,#cylinder .cylinder-word.long{font-size:39px}}
@media(max-width:700px){#cylinder .sphere-detail,#cylinder .cylinder-word,#cylinder .cylinder-word.long{font-size:25px}}

/* Short opacity easing prevents collision and horizon cuts. */
#cylinder button{transition:opacity 240ms ease-out,color 150ms ease-out,filter 150ms ease-out}

/* Welcome and product information */
.welcome{display:flex;flex-direction:column;justify-content:center;gap:22px;min-height:0;height:100%;padding:10px 0}.welcome h2{font:700 clamp(38px,3.6vw,58px)/1.5 Amiri,serif;margin:0;letter-spacing:0;word-spacing:normal}.welcome h2 em{font-style:normal;color:#60e4f5}.welcome .welcome-description{font-size:21px;line-height:1.85;margin:0;color:#b5cbdc}.welcome .primary{margin:0;min-height:60px}.journey{display:flex;flex-wrap:wrap;gap:7px;font-size:13px;color:#93b0c5}.journey span{padding:5px 9px;border:1px solid #4b7e9638;border-radius:20px}.starter-words{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px}.starter-words>span{color:#8caabc;font-size:13px;width:100%}.starter-words button{padding:5px 12px;border:1px solid #47748e55;border-radius:20px}.starter-words button:hover{background:#42dfff12}.welcome-note{border-top:1px solid #53778e40;padding-top:18px;margin-top:2px;color:#9eb8ca}.welcome-note b{font-size:17px;color:#cde3ef}.welcome .welcome-note p{font-size:15px;line-height:1.8;margin:8px 0}.welcome-note button{font-size:14px;color:#60e4f5}.rotation-controls #random-word{position:absolute;right:0;top:10px;font-size:13px;padding:5px 10px;border:1px solid #4d839e66;border-radius:18px}.rotation-controls #motion-toggle{top:10px}#about-dialog{color:#d6e6f2;background:#081824;border:1px solid #34586e;border-radius:22px;width:min(820px,92vw);max-height:88svh;padding:30px 40px;overscroll-behavior:contain}#about-dialog::backdrop{background:#020b14bf;backdrop-filter:blur(8px)}.about-top{display:flex;justify-content:space-between;align-items:center;color:#8babbe}.about-top button{border:1px solid #56788c66;border-radius:20px;padding:6px 15px}#about-title{font:700 42px/1.5 Amiri;margin:22px 0;color:#67e8f6}#about-dialog p{font-size:18px;line-height:1.9;color:#b6cbd9}#about-dialog h3{font-size:22px;margin:20px 0 5px}#about-dialog a{color:#61ddeb;text-decoration:underline}#about-dialog section{border-top:1px solid #34566a66;padding-top:10px}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}#about-dialog .about-disclaimer{font-size:14px;color:#91a9bb}header nav{gap:22px}header nav button{white-space:nowrap}header .brand img{width:190px}
@media(max-width:700px){header{height:auto;min-height:145px}header .brand img{width:140px}header nav{gap:14px}header nav button{font-size:12px}.welcome{height:auto;gap:18px;padding:12px 0}.welcome h2{font-size:42px;line-height:1.45}.welcome .welcome-description{font-size:19px}.rotation-controls #random-word{top:-30px;font-size:11px}.rotation-controls #motion-toggle{top:-30px}.about-grid{grid-template-columns:1fr;gap:5px}#about-dialog{padding:20px}#about-title{font-size:33px}#about-dialog p{font-size:17px}}
/* Arabic reading order throughout the side panel. */
#reader,#reader .welcome,#reader .content-reveal,#reader .reader-top,#reader .reader-tools,#reader .reader-tabs,#reader .story-progress,#reader .reader-bottom,#about-dialog{direction:rtl;text-align:right}
#reader .reader-tabs{justify-content:flex-start}#reader .primary{direction:rtl;text-align:right;display:flex;justify-content:space-between;align-items:center}#reader .chapter h3,#reader .meaning,#reader .source-item,#reader blockquote{direction:rtl;text-align:right}#reader .story-title{word-spacing:normal}#reader .story-progress{direction:rtl}#reader .starter-words{justify-content:flex-start}

#cylinder .cylinder-word,#cylinder .cylinder-word.long{font-size:28px;white-space:nowrap;width:max-content;height:auto;line-height:1.4;padding:3px 5px}#cylinder .cylinder-word.long{font-size:22px}#side-index{position:fixed;inset:0 0 0 auto;margin:0;width:min(360px,92vw);height:100svh;max-height:100svh;background:#081824;color:#d7e8f4;border:0;border-left:1px solid #365d73;padding:24px;direction:rtl;text-align:right}#side-index::backdrop{background:#020b1466}.index-head{display:flex;align-items:center;justify-content:space-between}.index-head h2{font-size:26px}#side-index input{border:1px solid #486a80;border-radius:12px;padding:8px 12px;height:46px}#index-total{display:block;margin:14px 0;color:#97b4c7}#side-index-list{display:grid;gap:4px}#side-index-list button{text-align:right;border-bottom:1px solid #375c7333;padding:9px 12px;border-radius:8px}#side-index-list button:hover,#side-index-list button[aria-current=true]{background:#164057;color:#6ae9f7}header{gap:18px}header nav{gap:14px}header .brand img{width:165px}@media(max-width:700px){header nav{flex-wrap:wrap;height:auto;gap:8px 14px}#cylinder .cylinder-word{font-size:22px}#cylinder .cylinder-word.long{font-size:16px}}

#alphabet-rail{position:fixed;right:8px;top:98px;bottom:22px;width:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:8;border:1px solid #45677c44;border-radius:18px;background:#071725d9;padding:7px 0}#alphabet-rail button{flex:1;min-height:0;width:28px;padding:0;font:17px/1.1 'Noto Naskh Arabic',serif;color:#a8c5d6}#alphabet-rail button:hover{color:#62ecff;background:#1b526c;border-radius:9px}#alphabet-rail button:disabled{opacity:.25;cursor:default}main{padding-right:48px}#side-index{padding-right:24px}.explore-heading{right:8px}@media(max-width:700px){#alphabet-rail{top:165px;bottom:18px;right:3px;width:25px;max-height:620px}#alphabet-rail button{font-size:15px;width:23px}main{padding-right:33px}.explorer{height:560px}}

#alphabet-rail button[aria-pressed=true]{color:#62ecff;background:#1b526c;border-radius:8px}#alphabet-rail button[data-all]{font-size:11px;min-height:25px}
/* Phone landscape: side-by-side reading with adequate type size. */
.orientation-note{display:none}
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){
header{height:54px;min-height:54px;flex-wrap:nowrap;padding:4px 14px;gap:12px}header .brand img{width:125px;height:42px}header nav{height:44px;flex-wrap:nowrap;gap:12px}header nav button{font-size:12px}header .search{flex:1 1 140px;order:0;height:36px}header .search input{font-size:13px;height:30px}header nav #saved-count{display:none}header nav #index-open{display:none}
main{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,38%);height:calc(100svh - 54px);min-height:0;padding:8px 38px 8px 10px;gap:10px}.explorer{height:100%;min-height:0;display:flex;flex-direction:column}.visual{height:auto;min-height:0;flex:1}.explore-heading{right:0;top:0}.explore-heading .eyebrow{font-size:10px}.explore-heading .round{height:28px;width:28px;font-size:16px}.rotation-controls{height:40px;flex-shrink:0;margin:0 0 30px;gap:12px}.rotation-controls p{font-size:11px}.rotation-controls small{display:none}.rotation-controls .round{width:28px;height:28px}.rotation-controls #motion-toggle{top:-12px;font-size:10px}.rotation-controls #random-word{top:-12px;font-size:10px}.filters{bottom:0;right:0}.filters select{font-size:11px;width:130px;padding:3px;height:27px}.group-nav,.explorer-footer{display:none}
#reader,#reader:has(.story-title){position:relative;bottom:auto;left:auto;right:auto;height:100%;max-height:100%;min-height:0;margin:0;padding:14px;border-radius:14px;overflow-y:auto}.welcome{height:auto;min-height:100%;justify-content:flex-start;gap:12px;padding:4px 0}.welcome h2{font-size:30px;line-height:1.35}.welcome .welcome-description{font-size:16px;line-height:1.7}.welcome .primary{min-height:42px;font-size:16px}.journey{font-size:10px;gap:3px}.journey span{padding:3px 5px}.welcome-note{padding-top:10px}.welcome .welcome-note p{font-size:13px}.starter-words{font-size:13px;gap:5px}.story-title{font-size:40px;margin:8px 0}.story-hook{font-size:17px;margin:4px 0}.reader-top{top:0;padding:0}.reader-tools{margin:8px 0;font-size:11px}.reader-tabs{margin:8px 0}.reader-tabs button{padding:8px;font-size:15px}.intro,.chapter p{font-size:18px;line-height:1.8}.chapter h3{font-size:21px}.reader-bottom{padding-top:8px}.story-progress{padding-top:8px}.reader-close{font-size:12px}#reader>.content-reveal{flex:0 0 auto;overflow:visible}#alphabet-rail{top:62px;bottom:8px;width:24px;right:5px;padding:3px 0;overflow-y:auto;justify-content:flex-start}#alphabet-rail button{flex:0 0 23px;font-size:15px}footer{display:none}#cylinder .cylinder-word{font-size:22px}#cylinder .cylinder-word.long{font-size:16px}
}
@media (orientation:portrait) and (max-width:700px){.orientation-note{display:block;margin:0;padding:9px 16px;background:#103247;color:#c2e6f2;font-size:14px;text-align:center}#alphabet-rail{top:200px}}

@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){#cylinder .cylinder-word{font-size:17px}#cylinder .cylinder-word.long{font-size:13px}.group-nav{display:flex;bottom:72px;left:0;font-size:10px}.group-nav button{padding:2px 8px}}

#about-dialog{max-height:90svh;overflow-y:auto;overscroll-behavior:contain}#about-dialog .about-actions{position:sticky;bottom:-1px;background:#071924;padding:18px 0 4px;margin-top:20px}#start-exploring{max-width:360px;margin-right:0;margin-left:auto;background:#12374a;color:#e1f7ff!important;border:1px solid #4dcde5;border-radius:12px;min-height:50px;text-align:right} @media(max-height:600px){#about-dialog{padding:20px 28px}#about-dialog h2{font-size:32px;margin:12px 0}#about-dialog p{font-size:18px;line-height:1.8}#about-dialog .about-actions{padding-top:10px}}

/* The globe is a drag control, not selectable text (including Safari). */
#stage,#stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#stage .cylinder-word{-webkit-appearance:none;appearance:none;background:transparent}
#stage ::selection{background:transparent}
