:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#080d19;--panel:#111a2d;--panel-2:#17233b;--line:#2a3855;--text:#f5f7fb;--muted:#93a1bd;--accent:#f5b85b;--accent-2:#ff8d6b}*{box-sizing:border-box}html,body{min-height:100%}body{background:var(--bg);color:var(--text);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.68}a{color:inherit;text-decoration:none}.shell{max-width:1200px;margin:auto;padding:32px}.nav{justify-content:space-between;align-items:center;margin-bottom:64px;display:flex}.brand{letter-spacing:.08em;font-weight:800}.eyebrow{color:var(--accent);text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800}.hero{max-width:720px;margin:8vh 0}.hero h1{margin:16px 0;font-size:clamp(42px,7vw,88px);line-height:.98}.hero p{color:var(--muted);font-size:20px;line-height:1.6}.grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;display:grid}.card{border:1px solid var(--line);background:#111a2de6;border-radius:18px;padding:22px}.admin{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.sidebar{border-right:1px solid var(--line);background:#0d1426;padding:28px}.main{padding:34px}.node{border:1px solid var(--line);background:#1a2640;border-radius:12px;margin:12px 0;padding:14px}.choice{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.choice button,.hero button{background:var(--accent);color:#17130d;border-radius:12px;padding:12px 18px;font-weight:800}.player{background:linear-gradient(#0000 30%,#090d18 100%),radial-gradient(circle at 60% 30%,#435378,#111827 50%);place-items:end center;min-height:100vh;padding:32px;display:grid}.dialogue{background:#121a2d;border:1px solid #536483;border-radius:20px;width:min(800px,100%);padding:28px}.auth-page{background:var(--bg);grid-template-columns:minmax(0,1.08fr) minmax(440px,.92fr);min-height:100vh;display:grid;overflow:hidden}.auth-intro{background:radial-gradient(circle at 24% 22%,#49659d57,#0000 35%),linear-gradient(145deg,#111c32 0%,#0b1221 58%,#090f1c 100%);border-right:1px solid #7c91b92e;flex-direction:column;justify-content:space-between;min-height:100vh;padding:clamp(32px,5vw,72px);display:flex;position:relative}.auth-intro:after{content:"";border:1px solid #f5b85b33;border-radius:50%;width:380px;height:380px;position:absolute;bottom:-120px;right:-150px;box-shadow:0 0 0 55px #f5b85b09,0 0 0 110px #f5b85b06}.auth-brand{letter-spacing:.16em;align-items:center;gap:13px;width:max-content;font-size:13px;font-weight:900;display:inline-flex}.auth-brand-mark{background:linear-gradient(145deg,var(--accent),var(--accent-2));color:#17130d;letter-spacing:0;border-radius:11px;place-items:center;width:36px;height:36px;font-size:16px;display:grid}.auth-copy{z-index:1;max-width:650px;margin:10vh 0;position:relative}.auth-copy h1{letter-spacing:-.055em;margin:20px 0 24px;font-size:clamp(46px,5.1vw,78px);line-height:1.01}.auth-copy p{color:#aab6ce;max-width:560px;margin:0;font-size:18px;line-height:1.65}.auth-note{z-index:1;color:#8f9db8;align-items:flex-start;gap:18px;max-width:430px;display:flex;position:relative}.auth-note span{color:var(--accent);letter-spacing:.12em;font-size:12px;font-weight:900}.auth-note p{margin:0;font-size:13px;line-height:1.55}.auth-panel{background:radial-gradient(circle at 75% 25%,#2c3f6752,#0000 35%),#080d19;place-items:center;padding:40px;display:grid;position:relative}.auth-card{background:linear-gradient(155deg,#18233bf5,#0e1627f5);border:1px solid #6e86b54d;border-radius:24px;width:min(440px,100%);padding:42px;box-shadow:0 34px 90px #0000005c}.auth-card-head h2{letter-spacing:-.035em;margin:12px 0 10px;font-size:32px}.auth-card-head p{color:var(--muted);margin:0 0 28px;font-size:14px;line-height:1.55}.auth-form{gap:18px;display:grid}.auth-form label{color:#cdd5e5;gap:8px;font-size:12px;font-weight:750;display:grid}.auth-form input{width:100%;height:50px;color:var(--text);background:#0b1323;border:1px solid #334463;border-radius:12px;outline:none;padding:0 15px;transition:border-color .18s,box-shadow .18s}.auth-form input::placeholder{color:#63718d}.auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b1f}.auth-submit{background:linear-gradient(135deg,var(--accent),#f4a84f);color:#17130d;border-radius:12px;height:52px;margin-top:4px;font-weight:900;box-shadow:0 12px 30px #f5b85b26}.auth-error{color:#ffb1aa;background:#9b2d2d29;border:1px solid #ff787059;border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.45}.auth-switch{color:var(--muted);justify-content:center;align-items:center;gap:7px;margin-top:24px;font-size:13px;display:flex}.auth-switch button{color:var(--accent);background:0 0;padding:0;font-weight:800}.auth-footer{color:#52617d;text-transform:uppercase;letter-spacing:.16em;margin:0;font-size:10px;position:absolute;bottom:22px}@media (max-width:900px){.auth-page{grid-template-columns:1fr}.auth-intro{display:none}.auth-panel{min-height:100vh;padding:24px}.admin{grid-template-columns:1fr}.sidebar{display:none}.main{padding:20px}}@media (max-width:520px){.auth-panel{padding:16px}.auth-card{border-radius:20px;padding:28px 22px}.auth-card-head h2{font-size:27px}.auth-switch{flex-direction:column;align-items:flex-start}.player{padding:16px}.shell{padding:20px}}.project-workspace{background:radial-gradient(circle at 70% 0,#2f436e1f,#0000 32%),#080d19;grid-template-columns:280px minmax(0,1fr);min-height:100vh;display:grid}.project-sidebar{background:linear-gradient(#0d1527,#0a1120);border-right:1px solid #5a6f9942;flex-direction:column;height:100vh;padding:24px 18px;display:flex;position:sticky;top:0}.project-back{color:#9eacc6;align-items:center;gap:9px;padding:7px 10px;font-size:13px;display:flex}.project-back:hover{color:var(--text)}.project-identity{border-bottom:1px solid #5e709633;align-items:center;gap:12px;margin:25px 8px 28px;padding-bottom:24px;display:flex}.project-mark{background:linear-gradient(145deg,var(--accent),var(--accent-2));color:#17130d;border-radius:12px;place-items:center;width:40px;height:40px;font-size:12px;font-weight:950;display:grid}.project-identity div{gap:4px;min-width:0;display:grid}.project-identity strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.project-identity small{color:#687793;font-size:11px}.project-tabs{gap:6px;display:grid}.project-tabs button{color:#8998b4;text-align:left;background:0 0;border:1px solid #0000;border-radius:12px;grid-template-columns:31px 1fr;align-items:center;gap:8px;width:100%;padding:12px;transition:all .18s;display:grid}.project-tabs button:hover{color:#dce3ef;background:#ffffff09}.project-tabs button.active{color:var(--text);background:linear-gradient(90deg,#f5b85b21,#f5b85b09);border-color:#f5b85b3b}.project-tab-index{color:#53617b;letter-spacing:.12em;font-size:10px;font-weight:900}.project-tabs button.active .project-tab-index{color:var(--accent)}.project-tabs button>span:last-child{gap:3px;display:grid}.project-tabs strong{font-size:13px}.project-tabs small{color:#65738e;font-size:10px}.project-sidebar-footer{color:#8f9db8;border-top:1px solid #5e70962e;align-items:center;gap:8px;margin-top:auto;padding:14px 11px;font-size:11px;display:flex}.project-sidebar-footer small{margin-left:auto}.status-dot{background:#69748a;border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #69748a1a}.status-dot.published{background:#59d69a;box-shadow:0 0 0 4px #59d69a1a}.project-main{min-width:0;padding:30px clamp(24px,3vw,48px) 50px}.project-header{justify-content:space-between;align-items:flex-start;gap:24px;min-height:82px;margin-bottom:25px;display:flex}.project-header h1{letter-spacing:-.035em;margin:8px 0 0;font-size:32px}.project-header-actions,.flow-actions,.publish-actions{align-items:center;gap:10px;display:flex}.primary-action,.secondary-action,.danger-action{border-radius:11px;justify-content:center;align-items:center;min-height:42px;padding:0 16px;font-size:12px;font-weight:850;display:inline-flex}.primary-action{background:linear-gradient(135deg,var(--accent),#f2a94d);color:#17130d;box-shadow:0 9px 24px #f5b85b1c}.secondary-action{color:#dbe3f1;background:#121c30;border:1px solid #344360}.danger-action{color:#ffaaa4;background:#88292a1f;border:1px solid #ff716942;margin-top:auto}.workspace-notice{z-index:20;color:#9bf1c6;background:#122b29;border:1px solid #59d69a40;border-radius:12px;padding:11px 16px;font-size:12px;position:fixed;top:24px;left:50%;transform:translate(-50%);box-shadow:0 16px 38px #0000004d}.workspace-card{background:linear-gradient(145deg,#141e33f0,#0d1525f0);border:1px solid #5a6f9947;border-radius:18px;padding:26px;box-shadow:0 20px 55px #0000001f}.workspace-card.compact{flex-direction:column;align-self:start;gap:10px;display:flex}.workspace-card.compact strong{font-size:17px;line-height:1.4}.workspace-card.compact p,.workspace-card p{color:var(--muted);font-size:13px;line-height:1.6}.workspace-card code{color:var(--accent);background:#09111f;border-radius:10px;padding:12px}.card-heading{border-bottom:1px solid #5a6f9933;justify-content:space-between;align-items:center;gap:24px;padding-bottom:21px;display:flex}.card-heading h2,.publish-card h2{margin:0 0 6px;font-size:21px}.card-heading p{margin:0}.settings-layout,.publish-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px;display:grid}.settings-form{gap:19px;max-width:620px;padding-top:24px;display:grid}.settings-form label,.node-inspector label{color:#cad3e3;gap:8px;font-size:12px;font-weight:750;display:grid}.settings-form input,.inline-create input,.level-picker select,.node-inspector select,.node-inspector textarea{width:100%;color:var(--text);background:#0a1323;border:1px solid #33415d;border-radius:10px;outline:none}.settings-form input,.inline-create input,.level-picker select,.node-inspector select{height:44px;padding:0 13px}.settings-form input:focus,.inline-create input:focus,.node-inspector select:focus,.node-inspector textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b17}.settings-form input:disabled{color:#74819a}.settings-form small{color:#687793;font-weight:400}.settings-form .primary-action{width:max-content}.info-label{color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:900}.inline-create{gap:9px;display:flex}.inline-create input{width:230px}.level-list{gap:9px;padding-top:20px;display:grid}.level-list button{color:var(--text);text-align:left;background:#0d1729;border:1px solid #596b903b;border-radius:13px;grid-template-columns:42px 1fr auto;align-items:center;gap:15px;padding:16px;display:grid}.level-list button:hover{background:#111d31;border-color:#f5b85b66}.level-list button>span{color:var(--accent);font-size:11px;font-weight:900}.level-list button>div{gap:4px;display:grid}.level-list small{color:#6f7d97}.level-list b{color:#9eabc2;font-size:11px}.workspace-empty{text-align:center;color:#aeb9cc;place-content:center;justify-items:center;min-height:240px;display:grid}.workspace-empty strong{font-size:16px}.workspace-empty p{max-width:370px}.asset-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;padding-top:20px;display:grid}.asset-grid article{background:#0c1627;border:1px solid #2c3a55;border-radius:13px;gap:12px;min-height:140px;padding:17px;display:grid}.asset-grid article span{color:var(--accent);font-size:9px;font-weight:900}.asset-grid article a{color:#9faec7;margin-top:auto;font-size:11px}.publish-card{align-items:flex-start;gap:22px;display:flex}.publish-icon{width:52px;height:52px;color:var(--accent);background:#f5b85b1f;border-radius:15px;flex:none;place-items:center;font-size:24px;display:grid}.publish-card p{max-width:650px}.publish-actions{margin-top:22px}.flow-workspace{background:#0c1425;border:1px solid #5a6f994d;border-radius:18px;overflow:hidden;box-shadow:0 24px 70px #00000024}.flow-toolbar{background:#111b2e;border-bottom:1px solid #5a6f9940;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;min-height:70px;padding:12px 16px;display:grid}.level-picker{align-items:center;gap:10px;display:flex}.level-picker label{color:#70809c;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:850}.level-picker select{min-width:180px}.flow-legend{color:#7f8da7;justify-content:center;align-items:center;gap:7px;font-size:10px;display:flex}.flow-legend span{border-radius:50%;width:7px;height:7px;margin-left:8px}.flow-legend .start{background:#57d49a}.flow-legend .dialogue{background:#6da4ff}.flow-legend .choice-node{background:#f5b85b}.flow-legend .ending{background:#fb7770}.save-status{color:#73dca7;font-size:11px}.flow-content{grid-template-columns:minmax(0,1fr) 280px;height:calc(100vh - 190px);min-height:560px;max-height:760px;display:grid}.flow-canvas{background:radial-gradient(circle,#21314f57,#0000 55%),#0a1221;min-width:0}.node-inspector{background:#101a2c;border-left:1px solid #5a6f9940;flex-direction:column;gap:18px;padding:20px;display:flex}.inspector-heading{border-bottom:1px solid #5a6f9933;justify-content:space-between;align-items:start;padding-bottom:16px;display:flex}.inspector-heading>div{gap:7px;display:grid}.inspector-heading strong{text-overflow:ellipsis;max-width:190px;font-size:13px;overflow:hidden}.inspector-heading button{color:#8998b4;background:#17233a;border-radius:8px;width:28px;height:28px;font-size:18px}.inspector-empty{text-align:center;color:#8593ad;margin:auto 0}.inspector-empty>span{color:var(--accent);font-size:27px;display:block}.inspector-empty strong{color:#dbe2ee;margin:12px 0 7px;display:block}.inspector-empty p{margin:0;font-size:12px;line-height:1.55}.inspector-empty hr{border:0;border-top:1px solid #273650;margin:22px 0}.inspector-empty small{font-size:10px;line-height:1.55}.flow-canvas .react-flow__node-default{color:#f4f6fa;white-space:pre-line;text-align:left;background:linear-gradient(145deg,#17243c,#111b2f);border:1px solid #405273;border-radius:13px;min-width:190px;padding:15px 16px;font-size:12px;line-height:1.45;box-shadow:0 10px 24px #00000040}.flow-canvas .react-flow__node-default.selected{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b1f,0 12px 28px #00000047}.flow-canvas .react-flow__handle{background:var(--accent);border:2px solid #0b1323;width:9px;height:9px}.flow-canvas .react-flow__edge-path{stroke:#6e82a8;stroke-width:1.8px}.flow-canvas .react-flow__controls{box-shadow:none;border:1px solid #31405c;border-radius:10px;overflow:hidden}.flow-canvas .react-flow__controls button{fill:#b7c2d6;background:#152038;border-bottom-color:#31405c}.flow-canvas .react-flow__minimap{background:#111a2c;border:1px solid #31405c;border-radius:10px;overflow:hidden}.flow-canvas .react-flow__attribution{display:none}@media (max-width:1100px){.flow-toolbar{grid-template-columns:1fr auto}.flow-legend{display:none}.flow-content{grid-template-columns:minmax(0,1fr) 250px}.settings-layout,.publish-layout{grid-template-columns:1fr}.project-workspace{grid-template-columns:240px 1fr}}@media (max-width:760px){.project-workspace{display:block}.project-sidebar{width:100%;height:auto;position:relative}.project-tabs{grid-template-columns:repeat(2,1fr)}.project-sidebar-footer{margin-top:18px}.project-main{padding:22px 16px}.project-header{min-height:auto}.flow-toolbar{grid-template-columns:1fr}.flow-actions{flex-wrap:wrap}.flow-content{height:auto;max-height:none;display:block}.flow-canvas{height:520px}.node-inspector{border-top:1px solid #5a6f9940;border-left:0;min-height:310px}.card-heading{flex-direction:column;align-items:flex-start}.inline-create,.inline-create input{width:100%}}.story-player{isolation:isolate;background-color:#0a1020;background-position:50%;background-size:cover;align-items:flex-end;min-height:100vh;padding:120px clamp(24px,6vw,96px) 54px;transition:opacity .22s;display:flex;position:relative;overflow:hidden}.story-player:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(90deg,#04080f57,#0000 48%,#04080f14);position:absolute;inset:0}.story-player.transitioning{opacity:.35}.story-topbar{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:linear-gradient(#050911a3,#0000);border-bottom:1px solid #ffffff24;grid-template-columns:1fr auto 1fr;align-items:center;height:92px;padding:0 clamp(24px,4vw,64px);display:grid;position:absolute;top:0;left:0;right:0}.story-logo{letter-spacing:.14em;align-items:center;gap:11px;font-size:11px;display:flex}.story-logo>span{background:var(--accent);color:#17130d;border-radius:9px;place-items:center;width:31px;height:31px;font-weight:950;display:grid}.story-chapter{justify-items:center;gap:3px;display:grid}.story-chapter small{color:var(--accent);text-transform:uppercase;letter-spacing:.14em;font-size:9px;font-weight:900}.story-chapter strong{font-family:Georgia,serif;font-size:15px;font-weight:500}.story-progress{background:#fff3;border-radius:3px;justify-self:end;width:150px;height:3px;overflow:hidden}.story-progress span{border-radius:inherit;background:var(--accent);height:100%;transition:width .35s;display:block}.story-intro{text-shadow:0 3px 24px #0000008c;max-width:680px;margin-bottom:6vh;animation:.6s story-rise}.story-intro h1{letter-spacing:-.055em;margin:15px 0 16px;font-family:Georgia,serif;font-size:clamp(54px,7vw,100px);font-weight:500;line-height:.94}.story-intro p{color:#e2e6ed;max-width:500px;font-family:Georgia,serif;font-size:19px;line-height:1.6}.story-intro button{background:var(--accent);color:#1b160e;border-radius:12px;align-items:center;gap:28px;margin-top:28px;padding:15px 18px 15px 22px;font-size:12px;font-weight:900;display:flex}.story-intro button span{font-size:18px}.story-dialogue{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(135deg,#0c1423f5,#090f1be6);border:1px solid #fff3;border-radius:18px;width:min(900px,100vw - 48px);min-height:205px;padding:28px 90px 30px 32px;animation:.38s story-rise;position:relative;box-shadow:0 28px 90px #00000073}.dialogue-meta{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.dialogue-meta span{color:var(--accent);text-transform:uppercase;letter-spacing:.16em;font-size:11px;font-weight:950}.dialogue-meta small{color:#5f6d84;font-size:10px}.story-dialogue>p{color:#eef1f6;max-width:760px;margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(19px,2vw,25px);line-height:1.48}.story-dialogue>h1{margin:0 0 12px;font-family:Georgia,serif;font-size:36px;font-weight:500}.story-next{color:#8998b2;background:0 0;justify-items:center;gap:2px;font-size:0;display:grid;position:absolute;bottom:26px;right:26px}.story-next span{width:45px;height:45px;color:var(--accent);border:1px solid #44536c;border-radius:50%;place-items:center;font-size:20px;transition:all .18s;display:grid}.story-next:hover span{border-color:var(--accent);background:#f5b85b17;transform:translate(3px)}.story-choices{gap:9px;margin-top:22px;display:grid}.story-choices button{color:#eef2f8;text-align:left;background:#111c30;border:1px solid #33425d;border-radius:11px;grid-template-columns:33px 1fr auto;align-items:center;gap:10px;width:100%;padding:13px 15px;font-size:13px;font-weight:750;transition:all .18s;display:grid}.story-choices button:hover{border-color:var(--accent);background:#18253b;transform:translate(4px)}.story-choices button span{color:var(--accent);font-size:10px}.story-choices button b{color:var(--accent);font-size:17px}.story-dialogue.ending{max-width:760px;padding-right:32px}.story-actions{gap:10px;margin-top:24px;display:flex}.story-actions button,.story-actions a{border-radius:10px;align-items:center;min-height:42px;padding:0 17px;font-size:12px;font-weight:850;display:inline-flex}.story-actions button{background:var(--accent);color:#17130d}.story-actions a{background:#121c2e;border:1px solid #3a4963}.story-hint{color:#dee4ef85;text-align:right;text-transform:uppercase;letter-spacing:.1em;max-width:230px;font-size:9px;line-height:1.5;position:absolute;bottom:32px;right:clamp(24px,4vw,64px)}.story-loading,.story-error{background:#080d19;place-items:center;min-height:100vh;display:grid}.story-loading{color:#7f8da7;align-content:center;gap:14px}.story-loading span{border:2px solid #34425a;border-top-color:var(--accent);border-radius:50%;width:28px;height:28px;animation:.7s linear infinite story-spin}.story-error>div{background:#111a2d;border:1px solid #31405c;border-radius:18px;max-width:500px;padding:35px}.story-error span{color:var(--accent);letter-spacing:.15em;font-size:10px;font-weight:900}.story-error h1{font-family:Georgia,serif;font-size:34px}@keyframes story-rise{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes story-spin{to{transform:rotate(360deg)}}@media (max-width:760px){.story-player{padding:100px 16px 24px}.story-topbar{grid-template-columns:1fr auto;height:74px;padding:0 17px}.story-logo strong,.story-progress{display:none}.story-chapter{justify-items:end}.story-intro{margin-bottom:10vh}.story-intro h1{font-size:54px}.story-dialogue{width:100%;min-height:230px;padding:23px 22px 72px}.story-dialogue>p{font-size:19px}.story-next{bottom:16px;right:19px}.story-choices{margin-bottom:-50px}.story-dialogue.ending{padding-bottom:24px}.story-actions{flex-wrap:wrap}.story-hint{display:none}}.flow-legend .legend-start{background:#57d49a}.flow-legend .legend-dialogue{background:#6da4ff}.flow-legend .legend-choice{background:#f5b85b}.flow-legend .legend-ending{background:#fb7770}.level-picker{flex-wrap:wrap}.level-picker small{color:#e7958f;flex-basis:100%;max-width:260px;font-size:9px}.flow-content.expanded{grid-template-columns:minmax(0,1fr) 390px;max-height:820px}.node-inspector.expanded{padding-bottom:16px}.inspector-scroll{scrollbar-color:#34445f transparent;gap:18px;min-height:0;padding-right:5px;display:grid;overflow-y:auto}.node-inspector input,.node-inspector select,.node-inspector textarea{width:100%;color:var(--text);background:#0a1323;border:1px solid #33415d;border-radius:9px;outline:none}.node-inspector input,.node-inspector select{height:39px;padding:0 10px}.node-inspector textarea{resize:vertical;padding:10px;line-height:1.5}.node-inspector input:focus,.node-inspector select:focus,.node-inspector textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b14}.node-inspector label{gap:6px}.node-inspector label small{color:#687793;font-size:10px;font-weight:400;line-height:1.45}.scene-fields{gap:13px;display:grid}.inspector-section-title{color:#8f9db8;text-transform:uppercase;letter-spacing:.12em;border-bottom:1px solid #273650;justify-content:space-between;align-items:center;margin-top:5px;padding-bottom:8px;font-size:9px;font-weight:900;display:flex}.inspector-section-title button,.condition-toolbar>button{color:var(--accent);background:#1a2942;border-radius:7px;padding:5px 8px;font-size:9px;font-weight:850}.field-help{color:#7f8da7;background:#0b1424;border-radius:8px;margin:0;padding:10px;font-size:10px;line-height:1.5}.transition-editor{gap:11px;display:grid}.transition-card{background:#0c1627;border:1px solid #2d3c58;border-radius:11px;gap:10px;padding:12px;display:grid}.transition-head{justify-content:space-between;align-items:center;display:flex}.transition-head strong{font-size:11px}.transition-head button{color:#e88782;background:0 0;font-size:9px}.condition-toolbar{grid-template-columns:1fr auto;align-items:end;gap:8px;display:grid}.condition-toolbar label{font-size:10px}.condition-row{grid-template-columns:1fr 1.15fr 1fr 25px;gap:5px;display:grid}.condition-row input,.condition-row select{min-width:0;height:32px;padding:0 6px;font-size:9px}.condition-row button{color:#f39993;background:#9b323224;border-radius:7px;height:32px}.inspector-heading strong{max-width:280px}@media (max-width:1100px){.flow-content.expanded{grid-template-columns:minmax(0,1fr) 330px}}@media (max-width:760px){.flow-content.expanded{display:block}.condition-row{grid-template-columns:1fr 1fr}.condition-row button{width:32px}}.story-character{z-index:0;pointer-events:none;filter:drop-shadow(0 22px 28px #00000061);justify-content:center;align-items:flex-end;width:46vw;height:calc(100vh - 70px);animation:.5s character-enter;display:flex;position:absolute;bottom:0}.story-character.left{left:1vw}.story-character.center{left:27vw}.story-character.right{right:1vw}.story-character img{object-fit:contain;object-position:bottom;max-width:100%;display:block}.story-topbar,.story-intro,.story-dialogue,.story-hint{z-index:1}@keyframes character-enter{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:none}}@media (max-width:760px){.story-character{opacity:.82;width:80vw;height:75vh}.story-character.left{left:-18vw}.story-character.center{left:10vw}.story-character.right{right:-18vw}}.dashboard-shell{background:radial-gradient(circle at 75% 0,#344c7e29,#0000 32%),#080d19;grid-template-columns:260px minmax(0,1fr);min-height:100vh;display:grid}.dashboard-sidebar{background:#0c1425;border-right:1px solid #26344f;flex-direction:column;height:100vh;padding:28px 20px;display:flex;position:sticky;top:0}.dashboard-brand{align-items:center;gap:12px;margin-bottom:42px;display:flex}.dashboard-brand>span{background:linear-gradient(145deg,var(--accent),var(--accent-2));color:#17130d;border-radius:12px;place-items:center;width:40px;height:40px;font-weight:950;display:grid}.dashboard-brand div{gap:3px;display:grid}.dashboard-brand strong{letter-spacing:.12em;font-size:13px}.dashboard-brand small{color:#667590;letter-spacing:.13em;font-size:8px}.dashboard-sidebar nav{gap:7px;display:grid}.dashboard-sidebar nav button{color:#8f9db7;text-align:left;background:0 0;border:1px solid #0000;border-radius:12px;grid-template-columns:28px 1fr;align-items:center;gap:9px;padding:12px;display:grid}.dashboard-sidebar nav button.active,.dashboard-sidebar nav button:hover{color:#f4f6fb;background:#141f34;border-color:#34435f}.dashboard-sidebar nav button>span{color:var(--accent)}.dashboard-sidebar nav button>div{gap:3px;font-size:12px;font-weight:800;display:grid}.dashboard-sidebar nav small{color:#65738d;font-size:9px;font-weight:500}.dashboard-tip{color:#8896b0;background:#101a2d;border:1px solid #2a3853;border-radius:13px;gap:11px;margin-top:auto;padding:15px;display:flex}.dashboard-tip>span{height:29px;color:var(--accent);background:#1b2942;border-radius:9px;flex:0 0 29px;place-items:center;font-size:9px;font-weight:900;display:grid}.dashboard-tip p{margin:0;font-size:10px;line-height:1.5}.dashboard-main{padding:42px clamp(28px,4vw,60px)}.dashboard-header{justify-content:space-between;align-items:flex-start;gap:24px;display:flex}.dashboard-header h1{letter-spacing:-.045em;margin:9px 0 8px;font-size:38px}.dashboard-header p{color:var(--muted);margin:0;font-size:13px}.dashboard-tools{justify-content:space-between;align-items:center;margin:34px 0 18px;display:flex}.dashboard-tools label{color:#6f7d96;background:#0d1627;border:1px solid #2d3c58;border-radius:11px;align-items:center;gap:10px;width:min(440px,60vw);height:43px;padding:0 13px;display:flex}.dashboard-tools input{width:100%;color:var(--text);background:0 0;border:0;outline:0;font-size:12px}.dashboard-tools>span{color:#71809a;font-size:11px}.project-card-grid{grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:16px;display:grid}.dashboard-project-card,.new-project-card{background:#101a2d;border:1px solid #2b3a57;border-radius:17px;min-height:330px;overflow:hidden}.project-card-cover{background:radial-gradient(circle at 30% 25%,#f5b85b42,#0000 28%),linear-gradient(145deg,#233455,#121d32);place-items:center;height:135px;display:grid;position:relative}.project-card-cover>span{color:#ffffffc7;font-family:Georgia,serif;font-size:46px}.project-card-cover>small{color:#9ba8bd;background:#04091180;border-radius:7px;padding:5px 8px;position:absolute;top:13px;right:13px}.project-card-body{padding:19px}.project-card-meta{justify-content:space-between;align-items:center;display:flex}.project-card-meta span{color:#9aa7bd;text-transform:uppercase;background:#253047;border-radius:12px;padding:5px 8px;font-size:8px;font-weight:900}.project-card-meta span.published{color:#73dca7;background:#46be8221}.project-card-meta small{color:#65738d;font-size:9px}.project-card-body h2{margin:15px 0 4px;font-size:20px}.project-card-body p{color:#7886a0;margin:0 0 18px;font-size:11px}.project-card-body>div:last-child{gap:8px;display:flex}.project-card-body .primary-action,.project-card-body .secondary-action{min-height:38px}.new-project-card{color:#8997af;border-style:dashed;place-content:center;justify-items:center;gap:9px;display:grid}.new-project-card:hover{border-color:var(--accent);background:#131e32}.new-project-card>span{width:50px;height:50px;color:var(--accent);background:#1a2740;border-radius:50%;place-items:center;margin-bottom:6px;font-size:23px;display:grid}.new-project-card small{color:#65738d}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#03070dbf;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.create-project-modal{background:#121c30;border:1px solid #384967;border-radius:20px;gap:17px;width:min(470px,100%);padding:32px;display:grid;position:relative;box-shadow:0 35px 100px #0000008c}.create-project-modal h2{margin:0;font-size:28px}.create-project-modal>p{color:var(--muted);margin:-8px 0 4px;font-size:12px;line-height:1.55}.create-project-modal label,.publication-security label{color:#cad3e3;gap:7px;font-size:11px;font-weight:750;display:grid}.create-project-modal input,.publication-security input[type=password]{width:100%;height:44px;color:var(--text);background:#091221;border:1px solid #34435f;border-radius:10px;outline:0;padding:0 12px}.slug-input{background:#091221;border:1px solid #34435f;border-radius:10px;align-items:center;display:flex}.slug-input span{color:#667590;padding-left:12px}.slug-input input{border:0}.modal-close{color:#8f9cb4;background:0 0;font-size:24px;position:absolute;top:13px;right:15px}.modal-actions{justify-content:flex-end;gap:9px;margin-top:5px;display:flex}.asset-upload-button{background:var(--accent);color:#17130d;cursor:pointer;border-radius:11px;align-items:center;height:42px;padding:0 15px;font-size:11px;font-weight:900;display:inline-flex}.asset-upload-button input{display:none}.asset-summary{color:#7f8da7;gap:24px;padding:18px 2px 0;font-size:10px;display:flex}.asset-summary b{color:var(--text);margin-right:4px;font-size:14px}.asset-library{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:13px;padding-top:18px;display:grid}.asset-library article{background:#0a1424;border:1px solid #2c3b57;border-radius:13px;overflow:hidden}.asset-library article>img,.audio-preview{object-fit:cover;width:100%;height:135px;color:var(--accent);background:linear-gradient(145deg,#1a2944,#0c1627);place-items:center;font-size:34px;display:grid}.asset-library article>div:last-child{gap:7px;padding:13px;display:grid}.asset-library span{color:var(--accent);text-transform:uppercase;font-size:8px;font-weight:900}.asset-library strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.asset-library a{color:#8391a9;font-size:9px}.asset-library audio{width:100%;height:34px}.minigame-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding-top:20px;display:grid}.minigame-grid article{background:#0c1627;border:1px solid #2d3c58;border-radius:14px;gap:16px;min-height:155px;padding:20px;display:flex}.minigame-icon{height:45px;color:var(--accent);background:#f5b85b1c;border-radius:13px;flex:0 0 45px;place-items:center;font-size:19px;display:grid}.minigame-grid small{color:#63d39b;text-transform:uppercase;letter-spacing:.09em;font-size:8px;font-weight:900}.minigame-grid h3{margin:7px 0 5px}.minigame-grid p{margin:0}.minigame-help{color:#8d9ab2;background:#0a1323;border-radius:11px;gap:9px;margin-top:15px;padding:13px;font-size:11px;display:flex}.minigame-help strong{color:var(--accent)}.publication-security{gap:14px;display:grid!important}.security-toggle{align-items:center;gap:9px!important;display:flex!important}.security-toggle input{width:17px;height:17px}.publication-security code{font-size:10px}.id-editor{grid-template-columns:1fr auto;gap:7px;display:grid}.id-editor button{color:var(--accent);background:#20304c;border-radius:8px;padding:0 10px;font-size:9px;font-weight:850}.story-lock{background:radial-gradient(circle at 50% 25%,#364e804d,#0000 35%),#080d19;place-items:center;min-height:100vh;padding:20px;display:grid}.story-lock form{background:#111b2e;border:1px solid #344561;border-radius:22px;gap:17px;width:min(430px,100%);padding:36px;display:grid;box-shadow:0 35px 90px #0006}.story-lock h1{margin:5px 0 0;font-family:Georgia,serif;font-size:33px}.story-lock p{color:var(--muted);margin:-7px 0 5px;font-size:13px;line-height:1.6}.story-lock label{color:#cdd5e3;gap:7px;font-size:11px;font-weight:800;display:grid}.story-lock input{height:48px;color:var(--text);background:#091221;border:1px solid #384966;border-radius:11px;outline:0;padding:0 13px}.story-lock button,.game-complete{background:var(--accent);color:#17130d;border-radius:11px;min-height:46px;font-weight:900}.lock-icon{width:48px;height:48px;color:var(--accent);background:#f5b85b1c;border-radius:14px;place-items:center;margin:8px 0 0;font-size:25px;display:grid}.game-overlay{z-index:3;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#04080fbd;place-items:center;padding:24px;display:grid;position:absolute;inset:92px 0 0}.game-shell{background:#101a2d;border:1px solid #3a4b69;border-radius:20px;width:min(900px,100%);max-height:calc(100vh - 130px);padding:25px;overflow:auto;box-shadow:0 30px 90px #00000080}.game-shell>header{border-bottom:1px solid #2c3a55;justify-content:space-between;gap:20px;padding-bottom:17px;display:flex}.game-shell header small{color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:9px;font-weight:900}.game-shell header h1{margin:6px 0 4px;font-size:25px}.game-shell header p{color:var(--muted);margin:0;font-size:11px}.game-shell>header>span{color:#65738e;font-size:9px;font-weight:900}.game-stats{gap:10px;margin:17px 0;display:flex}.game-stats span{color:#7f8da7;background:#0a1323;border-radius:8px;padding:7px 10px;font-size:9px}.game-stats b{color:var(--text)}.puzzle-board{aspect-ratio:1;gap:3px;width:min(490px,70vh);margin:auto;display:grid}.puzzle-board button{background-repeat:no-repeat;border:2px solid #0000;border-radius:6px;position:relative}.puzzle-board button.selected{border-color:var(--accent);transform:scale(.96)}.puzzle-board button span{display:none}.game-instruction{text-align:center}.game-complete{margin:17px auto 0;padding:0 18px;display:block}.quiz-game h2{font-family:Georgia,serif;font-size:24px}.quiz-answers{gap:9px;display:grid}.quiz-answers button{color:var(--text);text-align:left;background:#0b1526;border:1px solid #33435f;border-radius:10px;gap:13px;padding:14px;display:flex}.quiz-answers button:hover{border-color:var(--accent)}.quiz-answers span{color:var(--accent);font-size:9px}.game-result{text-align:center;place-items:center;padding:55px 20px;display:grid}.game-result>strong{color:var(--accent);font-size:54px}.memory-board{grid-template-columns:repeat(4,1fr);gap:8px;max-width:600px;margin:auto;display:grid}.memory-board button{aspect-ratio:1;color:var(--accent);background:#17243a;border:1px solid #354560;border-radius:10px;font-size:25px;overflow:hidden}.memory-board button.shown{background:#eef1f5}.memory-board img{object-fit:contain;width:100%;height:100%}.tetris-stub{grid-template-columns:280px 1fr;gap:28px;padding-top:20px;display:grid}.tetris-board{background:#08101d;border:1px solid #3a4a66;border-radius:9px;grid-template-columns:repeat(8,1fr);gap:2px;padding:7px;display:grid}.tetris-board i{aspect-ratio:1;background:#111d31;border-radius:2px}.tetris-board i.filled{background:var(--accent)}.tetris-stub aside{flex-direction:column;align-items:flex-start;display:flex}.tetris-stub aside>span{color:#62d49c;text-transform:uppercase;font-size:9px;font-weight:900}.tetris-stub aside small{color:#7f8da7;max-width:390px;line-height:1.6}.tetris-stub .game-complete{margin:20px 0 0}@media (max-width:900px){.dashboard-shell{display:block}.dashboard-sidebar{height:auto;position:relative}.dashboard-sidebar nav,.dashboard-tip{display:none}.dashboard-main{padding:25px 18px}.minigame-grid{grid-template-columns:1fr}.game-overlay{inset:74px 0 0}.tetris-stub{grid-template-columns:1fr}.tetris-board{max-width:280px}.memory-board{grid-template-columns:repeat(3,1fr)}}.quiz-image{object-fit:cover;border-radius:12px;width:min(100%,560px);max-height:240px;margin:0 auto 16px;display:block}.game-result.compact{padding:15px}.node-inspector.expanded{min-height:0;overflow:hidden}.node-inspector.expanded .inspector-scroll{overscroll-behavior:contain;touch-action:pan-y;flex:1;min-height:0}.transition-card.focused{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b1a}.flow-canvas{touch-action:none;position:relative}.flow-touch-hint{z-index:4;color:#8c9ab3;text-align:center;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#070d18d6;border:1px solid #485b7e8c;border-radius:9px;max-width:calc(100% - 180px);padding:7px 11px;font-size:9px;line-height:1.4;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.flow-canvas .react-flow__edge.selected .react-flow__edge-path{stroke:var(--accent);stroke-width:2.5px}.flow-canvas .react-flow__edgeupdater{stroke:var(--accent);fill:#101a2d;stroke-width:2px}.flow-edge-label{z-index:5;color:#b9c4d8;white-space:nowrap;text-overflow:ellipsis;touch-action:manipulation;pointer-events:all;background:#101a2d;border:1px solid #405273;border-radius:8px;max-width:150px;padding:5px 8px;font-size:9px;line-height:1.2;position:absolute;overflow:hidden;box-shadow:0 5px 16px #00000040}.flow-edge-label:hover,.flow-edge-label:focus{border-color:var(--accent);color:var(--accent);outline:none}@media (max-width:760px){.node-inspector.expanded{height:min(72vh,680px);min-height:480px}.flow-touch-hint{max-width:calc(100% - 28px);bottom:10px}.node-inspector.expanded .inspector-scroll{-webkit-overflow-scrolling:touch}}.theme-editor{margin-top:18px}.theme-actions{gap:8px;display:flex}.theme-presets{flex-wrap:wrap;align-items:center;gap:8px;padding:18px 0 4px;display:flex}.theme-presets>span{color:#7f8da7;text-transform:uppercase;letter-spacing:.1em;margin-right:5px;font-size:9px;font-weight:900}.theme-presets button{color:#aeb9cc;background:#0b1526;border:1px solid #31405d;border-radius:9px;align-items:center;gap:7px;padding:7px 10px;font-size:9px;display:flex}.theme-presets button:hover{border-color:var(--accent);color:var(--text)}.theme-presets i{border-radius:50%;width:17px;height:17px;box-shadow:0 0 0 2px #26354f}.theme-editor-body{grid-template-columns:minmax(380px,1fr) minmax(300px,.8fr);gap:24px;padding-top:17px;display:grid}.theme-editor-body.disabled{opacity:.58}.theme-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.theme-fields label{background:#0b1526;border:1px solid #2c3b56;border-radius:11px;grid-template-columns:38px 1fr 77px;align-items:center;gap:10px;padding:10px;display:grid}.theme-fields input[type=color]{cursor:pointer;background:#101a2d;border:1px solid #43516b;border-radius:9px;width:38px;height:38px;padding:2px}.theme-fields label>span{gap:3px;display:grid}.theme-fields strong{font-size:10px}.theme-fields small{color:#6f7d96;font-size:8px;line-height:1.35}.theme-hex{color:#b9c4d7;background:#08111f;border:1px solid #33425e;border-radius:7px;width:77px;min-width:0;height:31px;padding:0 7px;font-family:monospace;font-size:9px}.theme-preview{background:var(--preview-bg);border:1px solid #34445f;border-radius:15px;min-height:310px;padding:16px}.theme-preview-screen{background:radial-gradient(circle at 70% 18%,color-mix(in srgb,var(--preview-accent) 22%,transparent),transparent 35%),var(--preview-bg);border-radius:11px;flex-direction:column;height:100%;min-height:276px;display:flex;overflow:hidden}.theme-preview-screen header{border-bottom:1px solid color-mix(in srgb,var(--preview-muted) 25%,transparent);color:var(--preview-muted);align-items:center;gap:8px;padding:12px 14px;display:flex}.theme-preview-screen header span{color:var(--preview-icon)}.theme-preview-screen header small{letter-spacing:.12em;font-size:8px}.theme-preview-screen section{border-top:1px solid color-mix(in srgb,var(--preview-muted) 28%,transparent);background:var(--preview-panel);color:var(--preview-text);margin-top:auto;padding:18px}.theme-preview-screen section>b{color:var(--preview-accent);letter-spacing:.12em;font-size:9px}.theme-preview-screen section>p{color:var(--preview-text);margin:9px 0 15px;font-family:Georgia,serif;font-size:17px}.theme-preview-screen section>button{background:var(--preview-button);color:var(--preview-bg);border-radius:9px;align-items:center;gap:18px;padding:10px 13px;font-size:10px;font-weight:900;display:flex}.theme-preview-screen section>button span{color:var(--preview-icon)}.theme-preview-screen section>small{color:var(--preview-muted);margin-top:11px;font-size:8px;display:block}.level-list button.selected{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b14}.story-player{background-color:var(--story-bg,#080d19);color:var(--story-text,#f5f7fb)}.story-dialogue,.game-shell{background:color-mix(in srgb,var(--story-panel,#101a2d) 95%,transparent);color:var(--story-text,#f5f7fb)}.story-dialogue>p,.story-dialogue>h1,.game-shell{color:var(--story-text,#f5f7fb)}.story-hint,.game-shell header p,.game-instruction{color:var(--story-muted,#93a1bd)}.story-logo>span{background:var(--story-icon,var(--accent));color:var(--story-bg,#080d19)}.story-intro button,.story-actions button,.game-complete,.story-lock button{background:var(--story-button,var(--accent));color:var(--story-bg,#080d19)}.story-intro button:hover,.story-actions button:hover,.game-complete:hover{background:var(--story-button-hover,var(--story-button,var(--accent)))}.story-intro button span,.story-next span,.story-choices button span,.story-choices button b,.dialogue-meta span,.story-chapter small{color:var(--story-icon,var(--accent))}.story-progress span{background:var(--story-accent,var(--accent))}.dialogue-meta span,.story-intro .eyebrow{color:var(--story-accent,var(--accent))}.story-choices button:hover{border-color:var(--story-button,var(--accent));background:color-mix(in srgb,var(--story-button) 14%,var(--story-panel))}@media (max-width:1000px){.theme-editor-body{grid-template-columns:1fr}.theme-preview{min-height:250px}.theme-preview-screen{min-height:220px}}@media (max-width:650px){.theme-fields{grid-template-columns:1fr}.theme-fields label{grid-template-columns:38px 1fr 72px}.theme-presets>span{width:100%}.theme-actions{flex-wrap:wrap;width:100%}.theme-editor .card-heading{gap:14px}}.story-level-next{background:var(--story-button,var(--accent));color:var(--story-bg,#080d19);border-radius:10px;align-items:center;gap:20px;margin-top:22px;padding:13px 16px;font-size:11px;font-weight:900;display:flex}.story-level-next:hover{background:var(--story-button-hover,var(--story-button,var(--accent)))}.story-level-next span{color:var(--story-icon,var(--accent))}.story-player{padding:0}.story-scene{animation-duration:var(--scene-duration,.5s);align-items:flex-end;padding:54px clamp(24px,6vw,96px);animation-timing-function:ease;animation-fill-mode:both;display:flex;position:absolute;inset:0}.scene-none{animation:none}.scene-fade{animation-name:scene-fade}.scene-zoom{animation-name:scene-zoom}.scene-slide-left{animation-name:scene-slide-left}.scene-slide-right{animation-name:scene-slide-right}.scene-shake{animation-name:scene-shake}.character-none{animation:none}.character-fade-up{animation:character-fade-up var(--scene-duration,.5s) ease both}.character-fade{animation:scene-fade var(--scene-duration,.5s) ease both}.character-zoom{animation:scene-zoom var(--scene-duration,.5s) ease both}.story-character.character-1.left{left:13vw}.story-character.character-1.right{right:13vw}.story-character.character-2.left{left:24vw}.story-character.character-2.right{right:24vw}.story-text.text-fade{animation:scene-fade calc(var(--scene-duration,.5s) * .8) ease both}.typewriter-caret{vertical-align:-.12em;background:currentColor;width:2px;height:1em;margin-left:3px;animation:.7s step-end infinite caret-blink;display:inline-block}.story-code{grid-template-columns:minmax(150px,260px) auto;align-items:end;gap:10px;margin-top:22px;display:grid}.story-code label{color:var(--story-muted);text-transform:uppercase;letter-spacing:.11em;gap:7px;font-size:9px;font-weight:900;display:grid}.story-code input{border:1px solid color-mix(in srgb,var(--story-muted) 45%,transparent);background:color-mix(in srgb,var(--story-bg) 84%,transparent);height:48px;color:var(--story-text);letter-spacing:.2em;border-radius:10px;outline:0;padding:0 15px;font-size:22px}.story-code input:focus{border-color:var(--story-accent)}.story-code>span{color:#ff7b72;grid-column:1/-1;font-size:11px}.story-code button{background:var(--story-button);height:48px;color:var(--story-bg);border-radius:10px;padding:0 18px;font-weight:900}.story-code button:hover{background:var(--story-button-hover)}.game-overlay{inset:0}.puzzle-board{width:min(760px,82vw);max-height:62vh}.puzzle-dimensions{grid-template-columns:1fr auto 1fr;align-items:end;gap:8px;display:grid}.puzzle-dimensions>span{color:var(--accent);padding-bottom:13px;font-weight:900}.character-editor{gap:9px;display:grid}.character-editor-head{color:#cad3e3;justify-content:space-between;align-items:center;font-size:10px;font-weight:850;display:flex}.character-editor-head button,.character-editor article>div button{color:var(--accent);background:#1c2a43;border-radius:7px;padding:6px 8px;font-size:8px;font-weight:900}.character-editor article{background:#0a1424;border:1px solid #2e3d58;border-radius:10px;gap:8px;padding:10px;display:grid}.character-editor article>div{justify-content:space-between;align-items:center;display:flex}.character-editor article>div button{color:#ff7b82;background:#ff5d671a}@keyframes scene-fade{0%{opacity:0}to{opacity:1}}@keyframes scene-zoom{0%{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}@keyframes scene-slide-left{0%{opacity:0;transform:translate(-45px)}to{opacity:1;transform:none}}@keyframes scene-slide-right{0%{opacity:0;transform:translate(45px)}to{opacity:1;transform:none}}@keyframes scene-shake{0%{opacity:0;transform:translate(0)}20%{opacity:1;transform:translate(-12px)}40%{transform:translate(10px)}60%{transform:translate(-7px)}80%{transform:translate(4px)}to{transform:none}}@keyframes character-fade-up{0%{opacity:0;transform:translateY(45px)}to{opacity:1;transform:none}}@keyframes caret-blink{50%{opacity:0}}@media (max-width:760px){.story-scene{padding:24px 16px}.story-code{grid-template-columns:1fr}.story-code button{width:100%}.puzzle-board{width:94vw;max-height:57vh}.story-character.character-1.left{left:-3vw}.story-character.character-1.right{right:-3vw}}.game-overlay{padding:16px}.game-shell{width:min(920px,100%);max-height:calc(100dvh - 32px);padding:22px;overflow:auto}.game-shell>header{padding-bottom:14px}.game-shell header h1{margin:0 0 4px}.tetris-stub{grid-template-columns:minmax(220px,300px) minmax(220px,1fr);align-items:start;gap:clamp(22px,5vw,52px);padding-top:18px}.tetris-board.playable{grid-template-columns:repeat(10,1fr);width:100%;max-width:300px;max-height:none}.tetris-stub aside{min-width:0;padding:8px 0}.tetris-stub aside h2{margin:0 0 20px;font-size:28px}.tetris-stub aside p{margin:0 0 12px}.tetris-controls{grid-template-columns:repeat(4,44px);gap:7px;margin:20px 0 14px;display:grid}.tetris-controls button{height:40px;color:var(--story-icon,var(--accent));background:#17243a;border:1px solid #3a4a66;border-radius:8px;font-size:18px}.tetris-controls button:hover{border-color:var(--story-accent,var(--accent));background:#20304b}.tetris-stub aside>.secondary-action{margin-top:18px}@media (max-width:820px){.game-shell{width:100%;padding:16px}.tetris-stub{grid-template-columns:1fr}.tetris-board.playable{justify-self:center;width:min(100%,260px)}.tetris-stub aside{text-align:center;align-items:center}.tetris-controls{grid-template-columns:repeat(4,48px)}}.dashboard-header-actions,.level-transfer-actions{align-items:center;gap:9px;display:flex}.level-transfer-actions{justify-content:flex-end;padding:15px 0}.level-transfer-actions label{cursor:pointer}.level-transfer-actions input{display:none}.workspace-card.compact>.secondary-action{margin-top:16px}.import-file input{height:auto!important;padding:10px!important}.dashboard-header-actions .secondary-action,.dashboard-header-actions .primary-action{min-height:42px}@media (max-width:700px){.dashboard-header{flex-direction:column}.dashboard-header-actions{flex-wrap:wrap;width:100%}.level-transfer-actions{flex-wrap:wrap;justify-content:flex-start}}.level-music-editor{margin-top:18px}.level-music-grid{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(160px,1fr));gap:14px;padding-top:22px;display:grid}.level-music-grid>label{align-content:start;gap:9px;display:grid}.level-music-grid label>span{color:#cad3e3;font-size:11px;font-weight:800}.level-music-grid select,.level-music-grid input[type=number]{width:100%;height:43px;color:var(--text);background:#0a1323;border:1px solid #33415d;border-radius:10px;outline:none;padding:0 12px}.level-music-grid select:focus,.level-music-grid input[type=number]:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f5b85b17}.level-music-grid input[type=range]{width:100%;accent-color:var(--accent)}.level-music-grid small,.level-music-preview small{color:#687793;font-size:10px}.duration-input{grid-template-columns:1fr 42px;align-items:center;gap:7px;display:grid}.duration-input b{color:#7e8ca6;font-size:10px}.level-music-preview{background:#0b1526;border:1px solid #2d3c57;border-radius:12px;grid-template-columns:42px 1fr minmax(220px,360px);align-items:center;gap:13px;margin-top:19px;padding:13px;display:grid}.level-music-preview>span{width:42px;height:42px;color:var(--accent);background:#f5b85b1f;border-radius:11px;place-items:center;font-size:20px;display:grid}.level-music-preview>div{gap:4px;display:grid}.level-music-preview audio{width:100%;height:36px}@media (max-width:1100px){.level-music-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:650px){.level-music-grid{grid-template-columns:1fr}.level-music-editor .card-heading{flex-direction:column;align-items:flex-start}.level-music-preview{grid-template-columns:42px 1fr}.level-music-preview audio{grid-column:1/-1}}.story-code{grid-template-columns:minmax(0,1fr) auto}.story-code label{min-width:0}.story-code input{letter-spacing:.08em;width:100%;font-size:18px}.story-code button{white-space:nowrap}@media (max-width:760px){.story-code{grid-template-columns:1fr}.story-code button{width:100%}}.word-game,.reaction-game,.sequence-game{padding-top:18px}.word-answer{justify-content:center;gap:8px;margin:20px auto;display:flex}.word-answer i{border-bottom:2px solid var(--accent);width:42px;height:48px;color:var(--text);place-items:center;font-size:24px;font-style:normal;display:grid}.word-letters{flex-wrap:wrap;justify-content:center;gap:8px;max-width:620px;margin:auto;display:flex}.word-letters button{width:42px;height:42px;color:var(--text);background:#17243a;border:1px solid #34445f;border-radius:9px;font-weight:900}.word-letters button:hover{border-color:var(--accent)}.word-letters button:disabled{opacity:.3}.reaction-game>p{text-align:center;color:var(--muted)}.reaction-track{background:#1a2942;border-radius:20px;height:38px;margin:35px 10px 24px;position:relative}.reaction-track i{border-radius:inherit;background:#5ee6b1a6;width:20%;height:100%;position:absolute;top:0;transform:translate(-50%);box-shadow:0 0 24px #5ee6b159}.reaction-track b{background:var(--accent);width:32px;height:32px;box-shadow:0 0 18px var(--accent);border-radius:50%;position:absolute;top:3px;transform:translate(-50%)}.reaction-game .game-complete{margin:16px auto;display:block}.sequence-lights{justify-content:center;gap:14px;margin:30px auto;display:flex}.sequence-lights i,.sequence-buttons button{opacity:.35;border:2px solid #0000;border-radius:16px;place-items:center;width:72px;height:72px;display:grid}.sequence-lights i.lit{opacity:1;transform:scale(1.08);box-shadow:0 0 28px}.sequence-lights .red,.sequence-buttons .red{color:#db5362;background:#db5362}.sequence-lights .blue,.sequence-buttons .blue{color:#5c8eea;background:#5c8eea}.sequence-lights .green,.sequence-buttons .green{color:#49c99a;background:#49c99a}.sequence-lights .gold,.sequence-buttons .gold{color:#e3ad4e;background:#e3ad4e}.sequence-buttons{justify-content:center;gap:12px;display:flex}.sequence-buttons button{opacity:1;color:#101827;font-weight:900}.sequence-buttons button:disabled{opacity:.35}@media (max-width:600px){.sequence-lights i,.sequence-buttons button{width:54px;height:54px}.word-answer i{width:34px}}button:disabled{cursor:not-allowed!important}.story-player,.story-player *,.game-shell,.game-shell *{cursor:default}.story-player button:not(:disabled),.game-shell button:not(:disabled){cursor:pointer}.quiz-editor{gap:12px;margin-top:10px;display:grid}.quiz-editor-intro{color:#8d9ab2;background:#0b1526;border:1px solid #293956;border-radius:9px;padding:10px 12px;font-size:10px;line-height:1.45}.quiz-question-card{background:#0b1526;border:1px solid #2d3d5b;border-radius:12px;gap:10px;padding:14px;display:grid}.quiz-question-head{color:var(--accent);justify-content:space-between;align-items:center;font-size:11px;display:flex}.quiz-question-head button,.memory-asset button{color:#d88777;background:0 0;font-size:10px}.quiz-answer-row{grid-template-columns:70px 1fr 20px;align-items:center;gap:8px!important;display:grid!important}.quiz-answer-row span{color:#7f8da7;font-size:9px}.quiz-answer-row input[type=radio]{width:16px;height:16px}.text-button{color:var(--accent);background:0 0;justify-self:start;font-size:10px;font-weight:800}.memory-picker{gap:8px;display:grid}.memory-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;padding:2px;display:grid;overflow:auto}.memory-asset{background:#0a1424;border:1px solid #2b3b58;border-radius:8px;grid-template-columns:18px 42px 1fr;align-items:center;min-width:0;padding:6px;gap:7px!important;display:grid!important}.memory-asset.checked{border-color:var(--accent);background:#18243a}.memory-asset input{width:15px;height:15px}.memory-asset img{object-fit:cover;border-radius:5px;width:42px;height:34px}.memory-asset span{text-overflow:ellipsis;white-space:nowrap;color:#b9c4d7;font-size:9px;overflow:hidden}.field-help{color:#7f8da7;font-size:10px;line-height:1.45}@media (max-width:700px){.memory-picker-grid{grid-template-columns:1fr}.quiz-answer-row{grid-template-columns:62px 1fr 20px}}.dashboard-sidebar nav a{color:#8f9db7;text-align:left;background:0 0;border:1px solid #0000;border-radius:12px;grid-template-columns:28px 1fr;align-items:center;gap:9px;padding:12px;display:grid}.dashboard-sidebar nav a.active,.dashboard-sidebar nav a:hover{color:#f4f6fb;background:#141f34;border-color:#34435f}.dashboard-sidebar nav a>span{color:var(--accent)}.dashboard-sidebar nav a>div{gap:3px;font-size:12px;font-weight:800;display:grid}.admin-users-card{margin-top:25px}.admin-user-form{grid-template-columns:1fr 1fr auto;align-items:end;gap:12px;display:grid}.admin-user-form label{color:#cad3e3;gap:7px;font-size:11px;font-weight:750;display:grid}.admin-user-form input{height:43px;color:var(--text);background:#091221;border:1px solid #34435f;border-radius:10px;padding:0 12px}.admin-list{gap:9px;margin-top:18px;display:grid}.admin-list article{background:#0b1526;border:1px solid #2b3a57;border-radius:11px;justify-content:space-between;align-items:center;gap:15px;padding:13px;display:flex}.admin-list article>div{gap:4px;display:grid}.admin-list small{color:#71809a;font-size:10px}.success-message{color:#6fdda6;font-size:11px}@media (max-width:700px){.admin-user-form{grid-template-columns:1fr}.admin-list article{flex-direction:column;align-items:flex-start}}.character-position-field{gap:7px;display:grid}.character-position-field>span{color:#cad3e3;font-size:10px;font-weight:800}.character-position-grid{background:#08111f;border:1px solid #2e3d58;border-radius:9px;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px;display:grid}.character-position-grid button{aspect-ratio:1;color:#526684;background:#111d31;border:1px solid #263752;border-radius:5px;place-items:center;font-size:13px;display:grid}.character-position-grid button:hover,.character-position-grid button.selected{border-color:var(--accent);color:var(--accent);background:#f5b85b29}.character-options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.character-flips{gap:7px;display:flex}.character-flips button{color:#9aa8bd;background:#111d31;border:1px solid #2d3d59;border-radius:7px;padding:7px 9px;font-size:9px}.character-flips button.selected{border-color:var(--accent);color:var(--accent);background:#f5b85b24}.story-character[style*=top]{align-items:flex-start;height:auto}.publish-save-toast{z-index:30;background:#101b30;border:1px solid #425475;border-radius:13px;align-items:center;gap:14px;max-width:min(560px,100vw - 32px);padding:13px 14px 13px 17px;animation:.2s toast-in;display:flex;position:fixed;bottom:24px;right:26px;box-shadow:0 18px 55px #00000073}.publish-save-toast>div{gap:4px;display:grid}.publish-save-toast strong{font-size:12px}.publish-save-toast span{color:#93a1bd;font-size:10px}.publish-save-toast .primary-action{white-space:nowrap;min-height:36px;padding:0 12px}.toast-close{color:#8492aa;background:0 0;border-radius:7px;width:28px;height:28px;font-size:19px}.toast-close:hover{color:#fff;background:#1b2942}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media (max-width:650px){.publish-save-toast{flex-wrap:wrap;align-items:flex-start;bottom:16px;right:16px}.publish-save-toast .primary-action{width:100%}.toast-close{position:absolute;top:8px;right:8px}}.story-reset{z-index:40;color:#dbe3f1;cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#080d19c7;border:1px solid #fff3;border-radius:9px;padding:9px 12px;font-size:11px;position:fixed;top:18px;right:18px}.story-reset:hover{border-color:var(--accent);color:var(--accent)}.auth-brand>span:last-child,.auth-footer,.dashboard-brand strong{font-size:0}.auth-brand>span:last-child:after{content:"UPONICA";font-size:12px}.auth-footer:after{content:"UPONICA · admin workspace";font-size:11px}.dashboard-brand strong:after{content:"UPONICA";font-size:14px}.auth-brand-mark,.dashboard-brand>span{font-size:0!important}.auth-brand-mark:after,.dashboard-brand>span:after{content:"U";font-size:16px}
