@import url('./cute-type.css');
:root{color-scheme:light;--ink:#344e49;--muted:#71867a;--paper:#faf5df;--line:#c9ceae;--accent:#526f60;font-family:'ZCOOL KuaiLe','Hiragino Maru Gothic ProN','PingFang SC',sans-serif;background:#e4e9db;color:var(--ink)}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}button,input,textarea,select{font:inherit;color:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);background:#f3edcf;border-radius:12px;padding:9px 13px}button:hover{background:#e8edcf}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8caa85;outline-offset:3px}p{font-size:14px;line-height:1.65;margin:8px 0}h1,h2,h3{font-weight:600;margin:0}small{font-size:11px;line-height:1.5;color:var(--muted)}
#parallel-game{max-width:460px;height:100dvh;margin:auto;background:var(--paper);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;box-shadow:0 0 80px #5b71531a}.px-header{padding:max(16px,env(safe-area-inset-top)) 20px 8px;display:flex;justify-content:space-between;align-items:center}.px-header h1{font-size:23px;margin-top:4px}.px-header button{background:transparent;border:0;font-size:12px}.px-status{display:flex;justify-content:space-between;padding:0 20px 10px;font-size:11px;color:var(--muted)}.px-content{overflow:auto;overscroll-behavior:contain;padding:0 12px 16px;scrollbar-width:thin}.px-scene{position:relative;border-radius:22px;overflow:hidden;background:#bdded8;aspect-ratio:4/3;max-height:35dvh;margin-bottom:10px}.px-scene canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.px-talk{position:absolute;bottom:10px;right:10px;background:#fff4d5dc;width:40px;min-height:40px;padding:0;border-radius:50%;color:#817b53}.px-script{background:#fff9e6;border:1px solid #ded9b8;padding:14px;border-radius:18px}.px-script h2{font-size:16px;line-height:1.65}.px-episode-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.px-progress{display:flex;gap:5px;margin:9px 0}.px-progress i{height:3px;flex:1;background:#e2dec8;border-radius:2px}.px-progress i.seen{background:#90a77e}.px-opening{font-size:13px}.px-rule{display:block;border-left:2px solid #adb990;padding-left:8px;margin-bottom:10px}.px-reaction{padding:8px 10px;border-radius:9px;background:#eaf0da;font-size:12px}.px-choices{display:grid;gap:8px;margin-top:12px}.px-choices button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;background:#eef1d8;border-color:#a7b88f;min-height:48px;font-size:13px}.px-soft{display:block;color:var(--muted);font-size:11px;margin-top:8px}.px-souvenir{border:1px dashed #b3b994;border-radius:12px;padding:13px;margin:12px 0;font-size:14px}.px-ending{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px}.px-message{font-size:12px;min-height:0;margin:0;padding:4px 16px;color:#8a614c}.px-message:empty{display:none}nav{display:flex;gap:5px;padding:8px 14px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}nav button{flex:1;border:0;background:none;font-size:13px}nav [aria-current]{background:#e1e8cc;color:#3e654c}details{margin-top:12px;border-top:1px solid #e1ddc4;padding-top:12px}summary{cursor:pointer;min-height:32px;font-size:13px}.px-tabs,.px-inventory{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.px-tabs button{flex:1}.px-inventory button{font-size:12px;padding:7px 10px}.px-tabs [aria-pressed=true],.px-inventory [aria-pressed=true]{background:#dae5bd;border-color:#809873}.px-slots{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:12px 0}.px-slots button{min-height:52px;font-size:12px;background:#efe4ca}.px-shell{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.px-shell label{font-size:12px}.px-shell select{padding:9px;border:1px solid var(--line);background:var(--paper);border-radius:8px}.px-memory{padding:12px 0;border-bottom:1px dashed var(--line)}.px-memory h3{font-size:15px;margin-top:4px}.px-evolution{padding-top:16px}.px-evolution h3{font-size:15px}.px-evolution button{display:grid;gap:5px;width:100%;text-align:left;margin:8px 0;background:#e9edd5}.px-evolution span{font-size:12px}.px-profile form{display:grid;gap:13px;margin:18px 0}.px-profile label{display:grid;gap:5px;font-size:13px}.px-profile input,.px-profile textarea{width:100%;background:#fcf8e9;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:16px}.px-profile textarea{min-height:75px;resize:vertical}.px-profile fieldset{border:1px solid var(--line);border-radius:12px;display:flex;gap:10px;flex-wrap:wrap;padding:12px}.px-profile legend{font-size:12px}.px-profile .px-check{display:flex;align-items:center;font-size:12px;gap:6px}.px-profile .px-check input{width:18px;height:18px}.px-profile a{color:var(--accent);display:block;margin:15px 0}.px-atlas{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #e2dfc9;align-items:center;opacity:.55}.px-atlas.ready{opacity:1}.px-atlas>span{font-size:11px}.px-atlas>div{flex:1}.px-atlas h3{font-size:14px;margin-bottom:3px}.px-loading{padding:35px;align-self:center;text-align:center}
@media(max-height:740px){.px-scene{max-height:26dvh;margin-bottom:8px}.px-header{padding-top:10px}.px-status{padding-bottom:7px}.px-script{padding:10px 12px}.px-opening{font-size:12px;line-height:1.5}.px-script h2{font-size:14px;line-height:1.5}.px-choices{gap:6px;margin-top:8px}.px-choices button{min-height:44px}.px-rule{font-size:10px}.px-reaction{padding:6px 8px}nav{padding-top:5px;padding-bottom:8px}}
@media(min-width:700px){#parallel-game{border-radius:25px;height:calc(100dvh - 32px);margin:16px auto;overflow:hidden}.px-scene{max-height:32dvh}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.px-scene-label{position:absolute;top:10px;left:12px;color:#faf0ca;background:#324e4b80;border-radius:8px;padding:4px 8px;font-size:10px;pointer-events:none}.px-bubble{position:absolute;left:6%;top:21%;width:88%;background:#fff9e5f5;border:1px solid #b2b994;border-radius:15px;padding:10px 13px;box-shadow:0 3px 0 #526e5420}.px-bubble[hidden]{display:none}.px-bubble strong{font-size:11px;color:#69856a}.px-bubble p{font-size:12px;line-height:1.5;margin:3px 0}.px-scene{animation:scene-arrive .32s ease-out}.px-evolution{animation:scene-arrive .5s ease-out}@keyframes scene-arrive{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}[data-quiet=true] .px-scene,[data-quiet=true] .px-evolution{animation:none}
#parallel-game.px-entry{display:block;overflow:auto;padding:28px}.px-entry-title{font-size:34px;line-height:1.4;margin:20px 0}
.px-npcs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.px-npcs article{display:grid;text-align:center;gap:3px;padding:8px;background:#edf0db;border-radius:10px}.px-npcs img{width:100%;aspect-ratio:1;object-fit:contain;image-rendering:pixelated}.px-npcs strong{font-size:12px}.px-npcs small{font-size:9px}
.px-role-card{padding:10px;margin:8px 0;background:#eef0dc;border-radius:10px}.px-role-card strong{font-size:13px}.px-role-card p{font-size:12px;margin:3px 0}.px-atlas details{border:0;padding-top:2px;margin-top:5px}.px-atlas summary{font-size:11px}.px-invites{padding:12px 0;display:grid;gap:10px}.px-invites input{font-size:12px}.px-invites label{min-width:0}.px-cast{margin-top:9px;padding-top:8px}.px-cast p{font-size:12px}.px-resolution p{font-size:12px}.px-scene[data-universe=u008]{background:#233f59}.px-scene[data-universe=u009]{background:#dbc2a3}.px-scene[data-universe=u010]{background:#a3bec7}.px-scene[data-universe=u011]{background:#acbdce}.px-scene[data-universe=u012]{background:#bdc8ad}
.px-npcs canvas{width:100%;aspect-ratio:1;object-fit:contain;image-rendering:pixelated;background:#e3e8cc;border-radius:8px}
.px-scene{width:100%;height:min(35dvh,300px);aspect-ratio:auto}.px-scene[data-universe=sea]{background:#183e53}.px-scene[data-universe=paper]{background:#f0dfb9}.px-scene[data-universe=clock]{background:#a1b9b8}.px-scene[data-universe=echo]{background:#c4acc2}.px-scene[data-universe=pocket]{background:#b5b8a4}.px-scene[data-universe=mirror]{background:#acc6cf}@media(max-height:740px){.px-scene{height:26dvh}}
