@font-face{font-family:Lexend;src:url(/games/ninjago/fonts/lexend-400.woff2)format("woff2");font-weight:400;font-display:swap}@font-face{font-family:Lexend;src:url(/games/ninjago/fonts/lexend-600.woff2)format("woff2");font-weight:500 600;font-display:swap}@font-face{font-family:Lexend;src:url(/games/ninjago/fonts/lexend-800.woff2)format("woff2");font-weight:700 900;font-display:swap}:root{--ink:#1b0f0c;--ink2:#2a1712;--lacquer:#b8241c;--lacquer2:#8e1a14;--gold:#f2b632;--gold2:#c98a12;--paper:#fbf1dc;--paper2:#efdcb4;--jade:#2f9e6e;--sky:#69c3ef;--muted:#8a7468;--good:#3fbf5f;--bad:#e04a3c;--fire:#d6261c;--lightning:#1f6fd1;--earth:#3a3a3a;--ice:#dfe8ee;--energy:#2fa33a;--water:#1aa3a3;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px);--btn:72px;--radius:18px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--ink);height:100%;color:var(--paper);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;touch-action:none;margin:0;font-family:Lexend,system-ui,sans-serif;overflow:hidden}#app{position:fixed;inset:0;overflow:hidden}#game{outline:none;width:100%;height:100%;display:block;position:absolute;inset:0}button,a{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;background:0 0;border:0;padding:0}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.screen{z-index:20;padding:calc(16px + var(--sat)) calc(16px + var(--sar)) calc(16px + var(--sab)) calc(16px + var(--sal));flex-direction:column;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.screen.show{display:flex}.primary{background:linear-gradient(#ffd25c,var(--gold) 55%,var(--gold2));min-height:56px;color:var(--ink);letter-spacing:.02em;border-radius:999px;justify-content:center;align-items:center;gap:10px;padding:0 28px;font-size:20px;font-weight:800;display:inline-flex;box-shadow:0 4px #7a4f06,0 8px 18px #00000059}.primary:active{transform:translateY(3px);box-shadow:0 1px #7a4f06,0 4px 10px #00000059}.primary.small{min-height:48px;padding:0 18px;font-size:17px}.primary:disabled{filter:grayscale(.8);opacity:.6}.ghost{min-height:44px;color:var(--paper);border:2px solid #fbf1dc80;border-radius:999px;padding:0 16px;font-weight:600}.icon-btn{width:56px;height:56px;color:var(--paper);background:#1b0f0cb8;border:2px solid #f2b632bf;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.icon-btn.small{width:46px;height:46px}.icon-btn svg,.action svg,[data-icon] svg{width:58%;height:58%;display:block}[data-icon]{justify-content:center;align-items:center;width:100%;height:100%;display:inline-flex}.logo{letter-spacing:.06em;text-align:center;background:linear-gradient(180deg,#fff2b8 0%,var(--gold) 45%,#b86d06 100%);color:#0000;filter:drop-shadow(0 3px #5a1a10)drop-shadow(0 8px 14px #0000008c);-webkit-background-clip:text;background-clip:text;flex-direction:column;align-items:center;margin:0;font-size:clamp(46px,9vw,96px);font-weight:900;line-height:.9;display:flex}.logo small{letter-spacing:.42em;margin-top:.2em;padding-left:.42em;font-size:.36em}.emblem{background:conic-gradient(var(--fire) 0 25%,var(--lightning) 0 50%,var(--earth) 0 75%,var(--ice) 0 100%);width:110px;height:110px;box-shadow:0 0 0 6px var(--gold),0 0 0 10px var(--ink),0 0 40px #f2b63280;border-radius:50%;margin-bottom:18px;animation:3.2s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}#loading{background:radial-gradient(circle at 50% 40%,#3a1a12,var(--ink) 70%);z-index:60}#loading.done{display:none}.load-track{background:#ffffff1f;border:2px solid #f2b63280;border-radius:7px;width:min(420px,70vw);height:14px;margin-top:24px;overflow:hidden}.load-track i{background:linear-gradient(90deg,var(--gold2),var(--gold));width:4%;height:100%;transition:width .25s;display:block}#load-note{color:var(--paper2);opacity:.8;margin-top:12px;font-size:15px}#title{background:linear-gradient(#1b0f0c40,#1b0f0c1a 40%,#1b0f0cbf);justify-content:space-between}.title-head{flex-direction:column;align-items:center;margin-top:2vh;display:flex}.tagline{color:var(--paper);text-shadow:0 2px 6px #000;margin:10px 0 0;font-size:22px;font-weight:600}.profiles{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:clamp(12px,3vw,32px);margin-bottom:4vh;display:flex}.profile{background:linear-gradient(180deg,#fbf1dcf7,var(--paper2));width:clamp(170px,24vw,250px);color:var(--ink);border:4px solid var(--el,#c98a12);border-radius:24px;flex-direction:column;align-items:center;gap:6px;padding:16px 14px 18px;display:flex;position:relative;box-shadow:0 6px #6b4a22,0 14px 30px #00000073}.profile:active{transform:translateY(4px);box-shadow:0 2px #6b4a22,0 8px 18px #00000073}.profile .portrait{background:var(--el,#555);border:4px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:120px;height:120px;display:flex;overflow:hidden;box-shadow:inset 0 -10px #0000002e}.profile .portrait img{object-fit:cover;width:100%;height:100%}.profile b{font-size:26px;font-weight:900}.profile small{color:#6b5546;font-size:15px;font-weight:600}.profile .stats{color:#4a3528;gap:10px;font-size:15px;font-weight:700;display:flex}.profile .stats span{align-items:center;gap:4px;display:inline-flex}.back-link{left:calc(16px + var(--sal));top:calc(14px + var(--sat));color:var(--paper);background:#1b0f0c99;border-radius:999px;align-items:center;min-height:44px;padding:12px 16px;font-weight:600;text-decoration:none;display:flex;position:absolute}.corner-btn{right:calc(16px + var(--sar));top:calc(14px + var(--sat));background:#1b0f0c99;border:2px solid #f2b63299;border-radius:50%;width:56px;height:56px;position:absolute}#hero-pick{background:radial-gradient(circle at 50% 30%,#3a1a12e0,#1b0f0cf5);justify-content:flex-start;gap:14px}.sheet-head{align-items:center;gap:14px;width:100%;max-width:1100px;display:flex}.sheet-head h2{color:var(--gold);flex:1;margin:0;font-size:28px;font-weight:900}.hero-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:center;gap:14px;width:100%;max-width:1100px;display:grid}.hero{background:#fbf1dc14;border:3px solid #fbf1dc2e;border-radius:20px;flex-direction:column;align-items:center;gap:6px;min-height:200px;padding:10px 8px 12px;display:flex;position:relative}.hero.on{border-color:var(--gold);background:#f2b63229;box-shadow:0 0 0 4px #f2b63240}.hero .portrait{background:var(--el);border-radius:18px;justify-content:center;align-items:center;width:120px;height:120px;display:flex;overflow:hidden}.hero .portrait img{object-fit:cover;width:100%;height:100%}.hero b{font-size:20px;font-weight:900}.hero small{color:var(--paper2);font-size:14px}.hero.locked{opacity:.45}.hero.locked:after{content:"";background:var(--paper2);width:26px;height:26px;position:absolute;top:10px;right:10px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1v12H5V10zm2 0h8V7a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 0 1 12 0v3h1v12H5V10zm2 0h8V7a4 4 0 0 0-8 0z'/%3E%3C/svg%3E") 50%/contain no-repeat}.hero-blurb{text-align:center;max-width:820px;min-height:48px;color:var(--paper);margin:0;font-size:18px}#hud{z-index:10;pointer-events:none;position:absolute;inset:0}#hud>*{pointer-events:auto}.hud-left{left:calc(16px + var(--sal));top:calc(12px + var(--sat));pointer-events:none;flex-direction:column;gap:8px;display:flex;position:absolute}.hearts{gap:4px;display:flex}.heart{background:var(--bad);width:30px;height:28px;clip-path:path("M15 27 L3 15 C-3 8 4 -2 15 6 C26 -2 33 8 27 15 Z");filter:drop-shadow(0 2px #0006)}.heart.empty{background:#ffffff40}.counters{gap:10px;display:flex}.counter{background:#1b0f0ca6;border-radius:999px;align-items:center;gap:6px;min-width:70px;padding:5px 12px 5px 6px;font-size:18px;font-weight:800;display:inline-flex}.stud-icon{background:radial-gradient(circle at 40% 35%,#fff,#c9ced6 45%,#8b939e);border-radius:50%;width:22px;height:22px;box-shadow:inset 0 -3px #00000040}.gbrick-icon{background:linear-gradient(#ffe48a,var(--gold) 50%,var(--gold2));border-radius:4px;width:26px;height:20px;position:relative;box-shadow:inset 0 -3px #0003}.gbrick-icon:before,.gbrick-icon:after{content:"";background:#ffd25c;border-radius:2px 2px 0 0;width:8px;height:5px;position:absolute;top:-5px}.gbrick-icon:before{left:4px}.gbrick-icon:after{right:4px}.hud-right{right:calc(16px + var(--sar));top:calc(12px + var(--sat));gap:10px;display:flex;position:absolute}.quest-chip{left:50%;top:calc(12px + var(--sat));text-align:left;background:#1b0f0cb8;border:2px solid #f2b63299;border-radius:999px;align-items:center;gap:10px;max-width:min(46vw,460px);min-height:52px;padding:6px 18px 6px 10px;display:flex;position:absolute;transform:translate(-50%)}.quest-chip b{color:var(--gold);white-space:nowrap;text-overflow:ellipsis;font-size:16px;display:block;overflow:hidden}.quest-chip small{color:var(--paper2);white-space:nowrap;text-overflow:ellipsis;font-size:14px;display:block;overflow:hidden}.quest-dot{background:var(--gold);border-radius:50%;flex:none;width:14px;height:14px;box-shadow:0 0 0 4px #f2b6324d}.region-banner{text-align:center;opacity:0;pointer-events:none;transition:opacity .6s,transform .6s;position:absolute;top:22%;left:50%;transform:translate(-50%,-10px)}.region-banner.show{opacity:1;transform:translate(-50%)}.region-banner small{letter-spacing:.3em;text-transform:uppercase;color:var(--paper2);text-shadow:0 2px 4px #000;font-size:16px;display:block}.region-banner b{color:var(--gold);text-shadow:0 3px #5a1a10,0 6px 18px #000;font-size:clamp(30px,5vw,54px);font-weight:900;display:block}.world-prompt{left:50%;bottom:calc(34% + var(--sab));border:2px solid var(--gold);pointer-events:none;background:#1b0f0ccc;border-radius:999px;padding:10px 20px;font-size:18px;font-weight:700;position:absolute;transform:translate(-50%)}#touch{pointer-events:none;position:absolute;inset:0}.touch-zone{pointer-events:auto;touch-action:none;position:absolute;top:30%;bottom:0}#left-zone{width:42%;left:0}#look-zone{width:58%;top:0;right:0}.stick{left:calc(46px + var(--sal));bottom:calc(46px + var(--sab));pointer-events:none;background:#1b0f0c59;border:3px solid #fbf1dc73;border-radius:50%;width:132px;height:132px;position:absolute}.stick i{background:#fbf1dcd9;border-radius:50%;width:62px;height:62px;margin:-31px 0 0 -31px;position:absolute;top:50%;left:50%;box-shadow:0 3px #0000004d}.action{width:var(--btn);height:var(--btn);pointer-events:auto;touch-action:none;color:#fff;border:3px solid #ffffffd9;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;box-shadow:0 4px #00000059}.action.on{transform:translateY(3px)scale(.96);box-shadow:0 1px #00000059}.action.jump{right:calc(24px + var(--sar));bottom:calc(30px + var(--sab));width:calc(var(--btn) + 12px);height:calc(var(--btn) + 12px);background:radial-gradient(circle at 40% 35%,#6fd0ff,#1f6fd1)}.action.attack{right:calc(120px + var(--sar));bottom:calc(44px + var(--sab));background:radial-gradient(circle at 40% 35%,#ff8a6a,var(--lacquer))}.action.attack.charging{box-shadow:0 0 0 6px #f2b63299,0 0 24px var(--gold)}.action.act{right:calc(44px + var(--sar));bottom:calc(132px + var(--sab));background:radial-gradient(circle at 40% 35%,#ffe48a,var(--gold2));color:var(--ink)}body.big-buttons{--btn:88px}@media (hover:hover) and (pointer:fine){body:not(.force-touch) #touch .action,body:not(.force-touch) .stick{opacity:0;pointer-events:none}}.dialogue{left:50%;bottom:calc(18px + var(--sab));z-index:30;background:linear-gradient(180deg,var(--paper),var(--paper2));width:min(860px,100vw - 32px);color:var(--ink);border:4px solid var(--gold2);border-radius:22px;align-items:center;gap:14px;padding:14px;display:flex;position:absolute;transform:translate(-50%);box-shadow:0 10px 30px #00000080}.dialogue .portrait{background:var(--el,#844);border:3px solid #fff;border-radius:16px;flex:none;width:92px;height:92px;overflow:hidden}.dialogue .portrait img{object-fit:cover;width:100%;height:100%}.dlg-body{flex:1;min-width:0}.dlg-body b{color:var(--lacquer);font-size:18px;font-weight:900;display:block}.dlg-body p{margin:4px 0 0;font-size:21px;line-height:1.35}.dlg-body p .w{border-radius:4px;padding:0 1px}.dlg-body p .w.lit{background:#ffe48a}.dialogue .icon-btn{background:var(--ink2)}.trial{z-index:40;padding:calc(12px + var(--sat)) calc(12px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal));background:#1b0f0c73;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.trial-card{background:linear-gradient(180deg,var(--paper),var(--paper2));width:min(980px,100%);max-height:100%;color:var(--ink);border:5px solid var(--gold2);border-radius:26px;flex-direction:column;gap:12px;padding:16px 20px 18px;display:flex;position:relative;overflow:auto;box-shadow:0 14px 40px #0009}.trial-head{align-items:center;gap:10px;display:flex}.trial-host{color:var(--lacquer);letter-spacing:.04em;text-transform:uppercase;flex:1;font-size:18px;font-weight:900}.trial-head .icon-btn{background:var(--ink2)}.trial-head .ghost{color:var(--ink);border-color:#1b0f0c59}.trial-prompt{font-size:26px;font-weight:700;line-height:1.3}.trial-prompt.big{font-size:34px}.trial-prompt .w{border-radius:5px;padding:0 2px}.trial-prompt .w.lit{background:#ffe48a}.trial-visual{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;display:flex}.trial-visual:empty{display:none}.trial-input{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.trial-foot{align-items:center;gap:14px;min-height:96px;display:flex}.trial-msg{flex:1;min-height:28px;font-size:20px;font-weight:700}.trial-msg.good{color:#1f8a3d}.trial-msg.wrong{color:#b8241c}.trial-msg.slow{color:#a0620a}.trial-msg.train{color:#2a5aa8}.commit{background:var(--ink);width:96px;height:96px;color:var(--gold);touch-action:none;border-radius:50%;flex:none;font-size:18px;font-weight:900;position:relative}.commit svg{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.commit .ring-bg,.trial-lock .ring-bg{fill:none;stroke:#f2b63240;stroke-width:8px}.commit .ring,.trial-lock .ring{fill:none;stroke:var(--gold);stroke-width:8px;stroke-linecap:round;stroke-dasharray:276.5;stroke-dashoffset:276.5px}.commit span{position:relative}.commit:disabled{opacity:.35}.commit.ready{animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{box-shadow:0 0 0 8px #f2b63259}}.trial-lock{background:#fbf1dcc7;border-radius:22px;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lock-ring{text-align:center;justify-content:center;align-items:center;width:150px;height:150px;font-size:20px;font-weight:900;display:flex;position:relative}.lock-ring svg{position:absolute;inset:0;transform:rotate(-90deg)}.choice{min-width:120px;min-height:84px;color:var(--ink);background:#fff;border:4px solid #d8c49c;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:10px 18px;font-size:28px;font-weight:800;display:flex;box-shadow:0 4px #b39c6e}.choice.pic{min-width:150px;min-height:150px;padding:8px}.choice.pic img,.choice.pic canvas,.choice .pic-art{width:120px;height:120px}.choice.on{border-color:var(--gold2);box-shadow:0 0 0 4px var(--gold),0 4px 0 #b39c6e;background:#fff6d6}.choice.dim{opacity:.4}.choice:disabled{opacity:.55}.choice small{font-size:16px;font-weight:600}.nels .choice{min-width:160px;min-height:160px}.keypad{grid-template-columns:repeat(3,76px);gap:10px;display:grid}.keypad button{background:#fff;border:3px solid #d8c49c;border-radius:14px;height:66px;font-size:30px;font-weight:800;box-shadow:0 3px #b39c6e}.keypad button:active{box-shadow:none;transform:translateY(2px)}.keypad-display{background:var(--ink);min-width:220px;height:84px;color:var(--gold);letter-spacing:.06em;border-radius:16px;justify-content:center;align-self:center;align-items:center;font-size:46px;font-weight:900;display:flex}.keypad-wrap{flex-wrap:wrap;justify-content:center;align-items:center;gap:22px;display:flex}.slots{justify-content:center;gap:10px;display:flex}.slot{background:#ffffff80;border:4px dashed #b39c6e;border-radius:14px;justify-content:center;align-items:center;width:76px;height:84px;font-size:42px;font-weight:900;display:flex}.slot.filled{background:#fff;border-style:solid}.tiles{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.tile{background:#fff;border:4px solid #d8c49c;border-radius:14px;width:76px;height:76px;font-size:40px;font-weight:900;box-shadow:0 4px #b39c6e}.tile.used{visibility:hidden}.count-tray{flex-wrap:wrap;justify-content:center;gap:8px;max-width:620px;display:flex}.count-item{background:#fff;border:4px solid #d8c49c;border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;display:flex}.count-item.on{border-color:var(--gold2);background:#fff2b8}.basket{border:4px solid var(--jade);background:#2f9e6e1a;border-radius:20px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;min-width:260px;min-height:96px;padding:8px;font-size:30px;font-weight:900;display:flex}.visual-grid{gap:4px;display:grid}.visual-grid i{background:var(--gold);border-radius:4px;width:22px;height:22px;box-shadow:inset 0 -3px #0003}.frac-bar{border:3px solid var(--ink);border-radius:8px;width:320px;height:46px;display:flex;overflow:hidden}.frac-bar i{border-right:2px solid var(--ink);flex:1}.frac-bar i:last-child{border-right:0}.frac-bar i.on{background:var(--gold)}.scroll-text{background:#fffaf0;border:2px solid #e2cfa5;border-radius:14px;max-height:34vh;padding:12px 16px;font-size:21px;line-height:1.5;overflow:auto}.toast{left:50%;top:calc(76px + var(--sat));opacity:0;z-index:35;pointer-events:none;border:2px solid var(--gold);background:#1b0f0cd9;border-radius:999px;align-items:center;gap:12px;padding:10px 20px 10px 12px;transition:all .35s;display:flex;position:absolute;transform:translate(-50%,-20px)}.toast.show{opacity:1;transform:translate(-50%)}.toast i{background:var(--gold);border-radius:50%;width:34px;height:34px}.toast b{color:var(--gold);font-size:18px;display:block}.toast small{color:var(--paper2);font-size:14px;display:block}.sheet{inset:calc(12px + var(--sat)) calc(12px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal));z-index:50;border:3px solid var(--gold2);background:linear-gradient(#2a1712,#1b0f0c);border-radius:24px;flex-direction:column;gap:12px;padding:16px 18px;display:flex;position:absolute;overflow:hidden}.sheet .sheet-head{max-width:none}#map-canvas{object-fit:contain;border-radius:16px;flex:1;width:100%;min-height:0}.map-legend{color:var(--paper2);flex-wrap:wrap;justify-content:center;gap:16px;font-size:15px;display:flex}.journal-body,.settings-body,.release-body{-webkit-overflow-scrolling:touch;touch-action:pan-y;flex:1;padding-right:6px;overflow:auto}.settings-body label{border-bottom:1px solid #fbf1dc1f;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:12px 4px;font-size:18px;display:flex}.settings-body input[type=range]{width:min(320px,40vw);accent-color:var(--gold)}.settings-body select{font:inherit;background:var(--paper);color:var(--ink);border-radius:10px;padding:8px;font-size:17px}.settings-body input[type=checkbox]{width:28px;height:28px;accent-color:var(--gold)}.release-body h3{color:var(--gold);margin:14px 0 6px}.release-body li{margin:4px 0;line-height:1.4}.journal-body h3{color:var(--gold);margin:16px 0 8px}.journal-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;display:grid}.journal-card{background:#fbf1dc14;border:2px solid #fbf1dc24;border-radius:14px;padding:10px 12px}.journal-card.done{border-color:var(--gold)}.journal-card b{color:var(--paper);display:block}.journal-card small{color:var(--paper2)}.pause-screen{z-index:45;background:#1b0f0cb3}.pause-card{border:3px solid var(--gold2);background:linear-gradient(#2a1712,#1b0f0c);border-radius:24px;flex-direction:column;align-items:stretch;gap:12px;min-width:min(380px,90vw);padding:22px;display:flex}.pause-card h2{text-align:center;color:var(--gold);margin:0 0 6px;font-size:32px;font-weight:900}.pause-card button:not(.primary),.pause-card a{background:#fbf1dc1a;border-radius:999px;justify-content:center;align-items:center;min-height:52px;font-size:18px;font-weight:600;text-decoration:none;display:flex}.pause-card p{text-align:center;color:var(--paper2)}.story-screen{z-index:55;background:#1b0f0cd1}.scroll{background:linear-gradient(180deg,var(--paper),var(--paper2));max-width:720px;color:var(--ink);text-align:center;border-top:14px solid var(--lacquer2);border-bottom:14px solid var(--lacquer2);border-radius:20px;padding:30px 36px;box-shadow:0 14px 40px #0009}.scroll small{letter-spacing:.3em;text-transform:uppercase;color:var(--lacquer);font-weight:800;display:block}.scroll h2{margin:8px 0 10px;font-size:clamp(30px,5vw,46px);font-weight:900}.scroll p{margin:0 0 18px;font-size:21px;line-height:1.5}.rotate-card{z-index:100;background:var(--ink);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:24px;font-size:22px;font-weight:700;display:none;position:absolute;inset:0}.rotate-icon{border:6px solid var(--gold);border-radius:16px;width:90px;height:130px;animation:2s ease-in-out infinite tilt}@keyframes tilt{0%,30%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (orientation:portrait) and (max-width:1100px){body.touch .rotate-card{display:flex}}@media (max-height:520px){.profile .portrait{width:84px;height:84px}.profile{padding:10px 10px 12px}.trial-prompt{font-size:21px}.choice{min-height:64px;font-size:22px}}@media (prefers-reduced-motion:reduce){.emblem,.commit.ready,.rotate-icon{animation:none}}body:not(.touch) #left-zone{display:none}body:not(.touch) #look-zone{width:100%;top:0}.choice-list{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:14px 0;display:grid}.choice-list button{min-height:64px;color:var(--ink);background:#fffaf0;border:3px solid #e2cfa5;border-radius:16px;justify-content:center;align-items:center;gap:10px;font-size:20px;font-weight:800;display:flex}.choice-list button:active{transform:translateY(2px)}.ghost{min-height:48px;color:var(--ink);background:0 0;border:2px solid #1b0f0c40;border-radius:999px;padding:0 22px;font-size:17px;font-weight:700}#fade{opacity:0;pointer-events:none;z-index:50;background:#0b0705;transition:opacity .6s;position:absolute;inset:0}#fade.on{opacity:1}#dlg-next{flex:none;justify-content:center;align-items:center;width:88px;min-height:64px;padding:0;display:flex}#dlg-next svg{width:34px;height:34px}.portrait.narrator{background:#f3e2bd;justify-content:center;align-items:center;font-size:40px;display:flex}.boss{left:50%;top:calc(env(safe-area-inset-top) + 92px);z-index:12;text-align:center;pointer-events:none;width:min(520px,70vw);position:absolute;transform:translate(-50%)}.boss b{color:#fff;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 2px 4px #0009;font-size:18px;font-weight:900;display:block}.boss-track{background:#0000008c;border:2px solid #f4e4c4;border-radius:999px;height:14px;margin-top:4px;overflow:hidden}.boss-track i{background:linear-gradient(#ff8a5a,#c0261c);width:100%;height:100%;transition:width .25s;display:block}.quest-chip{text-align:left;border-radius:22px}.quest-chip>span:last-child{min-width:0;overflow:hidden}.quest-chip small{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25;display:-webkit-box}.jgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;display:grid}.jt{opacity:.65;background:#fbf1dc14;border:2px dashed #fbf1dc40;border-radius:14px;align-items:center;gap:10px;padding:10px 12px;font-weight:700;display:flex}.jt.got{opacity:1;border-style:solid;border-color:var(--gold);background:#f2b63224}.jt img{object-fit:cover;border-radius:10px;width:40px;height:40px}.jt-icon{text-align:center;width:40px;font-size:28px}.jbig{font-size:22px;font-weight:800}.jstory{columns:2;font-size:17px}.jcredits{opacity:.8;font-size:15px;line-height:1.5}#hud .goal-arrow{filter:drop-shadow(0 2px 4px #00000080);pointer-events:none;z-index:9;border-bottom:58px solid #5ad0ff;border-left:32px solid #0000;border-right:32px solid #0000;width:0;height:0;animation:1.1s ease-in-out infinite goal-pulse;position:absolute}.goal-arrow:after{content:"";background:#fff6dc;border-radius:50%;width:24px;height:24px;position:absolute;top:22px;left:-12px}@keyframes goal-pulse{0%,to{opacity:.95}50%{opacity:.55}}
