@font-face{font-family:StoryLora;src:url('../assets/mystic/lora.ttf') format('truetype');font-display:swap}
@font-face{font-family:StoryCinzel;src:url('../assets/mystic/cinzel.ttf') format('truetype');font-display:swap}
*{box-sizing:border-box}body{margin:0;background:#141329;color:#e9dff3;font:14px/1.6 StoryLora,Georgia,serif}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f6d77a;outline-offset:4px}button:disabled{opacity:.45}img{user-select:none}p,h1,h2{margin:0}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.player-bar{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:740px;margin:auto;padding:9px 18px;border-bottom:1px solid #9375ae36;font:10px/1.6 Arial,sans-serif;letter-spacing:.04em;color:#c4afd5}
.player-bar>span{font-family:StoryCinzel,Georgia,serif;letter-spacing:.09em;font-size:10px}.brand-star{font-size:9px;color:#d3b9e6;padding:0 2px}.portfolio-return{text-decoration:none;font-size:10px}.player-bar>button,.scene-toolbar>button{border:0;background:none;color:#d0b8e3;padding:3px 0;font:11px/1.5 Arial,sans-serif}.player-bar>button:hover,.scene-toolbar>button:hover{color:#f6d77a}.player-shell{padding:0 12px;display:flex;flex-direction:column;align-items:center}.scene-toolbar{width:min(430px,100%,max(280px,calc((100svh - 118px)*.5625)));height:31px;display:flex;align-items:center;justify-content:space-between;gap:15px;font:10px/1.5 Arial,sans-serif;color:#ab91c1}.scene-toolbar p{font-size:9px}.scene-toolbar>button{font-size:10px}
.game{position:relative;width:min(430px,100%,max(280px,calc((100svh - 118px)*.5625)));aspect-ratio:9/16;background:#292046;overflow:hidden;border-radius:5px;box-shadow:0 8px 32px #07061688;border:1px solid #a18ab54d;container-type:inline-size;isolation:isolate}
.scene{position:absolute;inset:0}.scene-base,.guide-slice{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.scene-base{z-index:0}.guide-slice{z-index:1;clip-path:inset(16% 0 44% 0)}
.sound-toggle{position:absolute;top:2.4%;right:4%;z-index:8;border:0;background:none;width:12%;padding:4px;min-height:32px}.sound-toggle img{display:block;width:100%;height:auto}.sound-toggle:hover{filter:brightness(1.2)}
.title-logo{position:absolute;z-index:2;top:33%;left:11%;width:78%;height:auto;filter:drop-shadow(0 0 12px #bba3d234)}
.image-button{display:block;position:absolute;z-index:4;padding:0;border:0;background:none;width:44%}.image-button>img{display:block;width:100%;height:auto}.image-button:hover:not(:disabled){filter:brightness(1.15) drop-shadow(0 0 4px #c5a4e766)}.image-button:active:not(:disabled){transform:translateY(1px)}
.start-action{left:28%;top:70%}.main-action{position:absolute;left:28%;top:84%;width:44%;z-index:4}.label-button{border:0;background:transparent url('../assets/mystic/prototype/empty-button.webp') center/100% 100% no-repeat;color:#faf2ff;text-shadow:0 1px 3px #281a49;font:500 4.6cqw/1.2 StoryLora,Georgia,serif;padding:0 8%;min-height:35px}.label-button.main-action{height:7.2%}.label-button:hover:not(:disabled){filter:brightness(1.15)}
.dialogue{position:absolute;z-index:3;top:56%;left:5%;width:90%;height:23.6%;display:flex;align-items:center;justify-content:center;padding:7.8% 7.5% 4.5%;background:transparent url('../assets/mystic/prototype/dialogue.webp') center/100% 100% no-repeat}
.dialogue-copy{font-size:13px;font-size:clamp(11px,3.65cqw,16px);line-height:1.48;text-align:center;color:#fff8fd;text-shadow:0 1px 2px #483365}
.question-panel{top:56%;height:18.5%;padding:6.5% 7% 3%;background-image:url('../assets/mystic/prototype/question.webp')}.question-panel .dialogue-copy{font-size:clamp(11px,3.5cqw,16px);line-height:1.42}
.story-choice{position:absolute;z-index:4;left:5%;width:90%;height:7.8%;padding:2px 7% 2px 13%;border:0;background:transparent url('../assets/mystic/prototype/choice.webp') center/100% 100% no-repeat;color:#fff5fc;font-size:clamp(11px,3.5cqw,16px);line-height:1.3;text-shadow:0 1px 2px #352344}
.choice-0{top:76%}.choice-1{top:85%}.story-choice:hover{filter:brightness(1.2) drop-shadow(0 0 4px #d5b5ef55)}
.name-panel,.age-panel{position:absolute;z-index:3;top:56%;left:5%;width:90%;height:28.5%;background:transparent url('../assets/mystic/prototype/name-panel.webp') center/100% 100% no-repeat;padding:7% 7% 5%;text-align:center}
.form-prompt{display:block;color:#fff6ff;font-size:clamp(12px,3.8cqw,16px);line-height:1.4}.name-field{display:block;width:85%;height:24%;min-height:30px;margin:11px auto 0;border:0;color:#35264f;background:#b8b5e1;font-size:clamp(13px,4cqw,17px);text-align:center;padding:4px 16px;clip-path:polygon(7% 0,93% 0,100% 50%,93% 100%,7% 100%,0 50%)}.name-field::placeholder{color:#65557d;font-size:clamp(10px,3.2cqw,13px)}.name-field:focus{outline:0;box-shadow:inset 0 0 0 2px #f6d77a}
.form-hint{color:#e2d5ee;font:clamp(9px,2.7cqw,12px)/1.5 Arial,sans-serif;margin-top:9px}.name-panel .image-button{width:32%;right:6%;bottom:5%;left:auto;top:auto}.skip-form{position:absolute;z-index:5;top:88%;left:30%;width:40%;border:0;padding:5px;background:none;color:#e5d7ef;text-decoration:underline;text-underline-offset:3px;font-size:clamp(10px,3cqw,13px);text-shadow:0 1px 2px #2d1c3d}
.age-panel{height:25%;padding-top:6%}.age-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;width:76%;margin:11px auto 0}.age-options .label-button{height:29px;min-height:0;font-size:clamp(11px,3.5cqw,15px);color:#3b2b5b;background-image:url('../assets/mystic/prototype/field.webp');text-shadow:none}.age-options .label-button[aria-pressed=true]{outline:2px solid #f6d77a;outline-offset:2px;filter:brightness(1.16)}.age-panel .form-hint{font-size:clamp(9px,2.6cqw,11px)}
.symbol-heading{position:absolute;z-index:2;top:16%;left:14%;width:72%;height:auto}.symbol-grid{position:absolute;z-index:3;top:27%;left:10%;width:80%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.symbol-option{border:2px solid transparent;padding:0;background:none;display:block;aspect-ratio:1;border-radius:2px;box-shadow:0 4px 8px #160e2955}.symbol-option img{display:block;width:100%;height:100%;object-fit:contain}.symbol-option:hover{filter:brightness(1.13)}.symbol-option[aria-pressed=true]{border-color:#f6d77a;box-shadow:0 0 10px #f6d77a99;transform:translateY(-2px)}.selected-symbol{position:absolute;z-index:3;left:5%;top:78%;width:90%;text-align:center;color:#fff2da;font-size:clamp(11px,3.8cqw,16px);text-shadow:0 1px 3px #241731}.symbol-reveal{position:absolute;z-index:2;top:29%;left:28%;width:44%;height:auto;box-shadow:0 5px 20px #170d2666}
.result-card{display:block;position:absolute;z-index:3;top:12.4%;left:13%;width:74%;aspect-ratio:805/1276;padding:0;border:0;background:none;perspective:1000px;box-shadow:0 4px 15px #170b29a6}.card-turn{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s ease}.result-card.is-back .card-turn{transform:rotateY(180deg)}.card-face{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;backface-visibility:hidden}.card-face.back{transform:rotateY(180deg)}.result-continue,.result-share{top:83.5%;width:41%}.result-continue{left:6%}.result-share{left:53%}.result-support{top:91%;left:29.5%;width:41%}
.ending-return{position:absolute;z-index:4;top:93%;left:10%;width:80%;text-align:center;text-decoration:underline;text-underline-offset:3px;font-size:clamp(10px,3cqw,13px);color:#f5e6ff;text-shadow:0 1px 3px #251036}
.prototype-note{text-align:center;font:9px/1.8 Arial,sans-serif;color:#baa1cd;padding:10px 12px 12px;max-width:460px;margin:auto}.embedded .portfolio-return{display:none}.embedded .player-bar{max-width:460px}.embedded .player-bar>span{font-size:10px}
dialog{border:1px solid #ae8bc9;border-radius:7px;background:#241b39;color:#f3e9fb;width:min(360px,92vw);max-height:92svh;overflow:auto;padding:21px;font:14px/1.8 StoryLora,Georgia,serif}dialog::backdrop{background:#100b22d9;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-head h2{font:500 22px/1.3 StoryLora,Georgia,serif;color:#e6d4f5}.dialog-head>button{width:32px;height:32px;border:1px solid #9d78bd;background:#3d2c55;color:#f6e6ff;border-radius:3px;font:22px Arial;flex-shrink:0}.share-preview{display:block;width:140px;max-width:70%;height:auto;margin:0 auto 20px}.sheet-action{display:block;text-align:center;text-decoration:none;width:100%;border:1px solid #b493ce;border-radius:4px;background:#72538f;color:#fff5ff;padding:10px 13px;font:13px/1.5 StoryLora,Georgia,serif;margin-top:14px}.sheet-action:hover{background:#8966a4}.dialog-head+p,dialog>p{font-size:13px;color:#d1badf}.copy-fallback{width:100%;min-height:150px;background:#f2e8f9;color:#3d2a50;border:1px solid #b79aca;margin-top:15px;padding:12px;font:12px/1.6 StoryLora,Georgia,serif}#share-status{font:11px/1.6 Arial,sans-serif;margin-top:13px}body:has(dialog[open]){overflow:hidden}
@media(max-width:390px){.player-bar{padding-left:12px;padding-right:12px;gap:9px}.player-bar>span{font-size:8px}.portfolio-return{font-size:9px}.player-bar>button{font-size:10px}.prototype-note{font-size:8px}.symbol-grid{gap:6px}}

/* Native screen geometry: the guide meets the panel at each artwork's original edge. */
.scene[data-layout=intro] .guide-slice{clip-path:inset(16% 0 43.85% 0)}
.scene[data-layout=intro] .dialogue{top:56.15%;left:5.74%;width:88%;height:20.42%;padding:0}
.scene[data-layout=intro] .dialogue-copy{position:absolute;left:9%;right:9%;top:27%;height:41%;display:flex;align-items:center;justify-content:center;font-size:3.55cqw;line-height:1.3}
.intro-next{left:66.6%;top:72.1%;width:22%}
.scene[data-layout=story] .guide-slice{clip-path:inset(16% 0 31% 0)}
.scene[data-layout=story] .dialogue{top:69%;left:4.07%;width:91.76%;height:15.1%;padding:0;background-image:url('../assets/mystic/prototype/question.webp')}
.scene[data-layout=story] .dialogue-copy{position:absolute;left:9%;right:9%;top:27%;height:48%;display:flex;align-items:center;justify-content:center;font-size:3.25cqw;line-height:1.3}
.scene[data-layout=story] .main-action{top:86.4%;left:33.2%;width:33.3%}
.scene[data-layout=story] .story-choice{left:5%;width:90%;height:6.2%;font-size:3.1cqw;padding:0 10%}
.scene[data-layout=story] .choice-0{top:85.1%}.scene[data-layout=story] .choice-1{top:92.3%}
.scene[data-layout=road] .guide-slice{clip-path:inset(16% 0 43.5% 0)}
.scene[data-layout=road] .dialogue{top:56.5%;left:4%;width:92%;height:15.1%;padding:0;background-image:url('../assets/mystic/prototype/question.webp')}
.scene[data-layout=road] .dialogue-copy{position:absolute;left:9%;right:9%;top:25%;height:50%;display:flex;align-items:center;justify-content:center;font-size:3.25cqw;line-height:1.3}
.scene[data-layout=road] .main-action{top:78%;left:33.2%;width:33.3%}
.scene[data-layout=name] .guide-slice{clip-path:inset(16% 0 43.3% 0)}
.name-panel{top:56.7%;left:9.54%;width:80.18%;height:19.32%;padding:0}
.name-panel .form-prompt{position:absolute;top:19%;left:14%;width:72%;font-size:3.05cqw;line-height:1.3}
.name-field{position:absolute;left:28.8%;top:55%;width:40.3%;height:23.2%;min-height:0;margin:0;background:transparent url('../assets/mystic/prototype/field.webp') center/100% 100% no-repeat;clip-path:none;padding:0 7%;font:3cqw/1 StoryLora,Georgia,serif;color:#171325;border:0;border-radius:0}
.name-field:focus{box-shadow:none;outline:2px solid #f6d77a;outline-offset:2px}
.name-panel .image-button{left:73.2%;top:83.8%;width:21.1%;bottom:auto;right:auto}
.scene[data-layout=age] .guide-slice{clip-path:inset(16% 0 42.3% 0)}
.age-panel{top:57.7%;left:12.5%;width:75%;height:18%;padding:4.5% 4% 0}
.age-panel .form-prompt{font-size:3.05cqw;line-height:1.3}
.age-options{width:70%;margin:7% auto 0;gap:1.8cqw}
.age-options .label-button{height:6cqw;font-size:3cqw}
.scene[data-layout=age] .main-action{top:78%;left:66%;width:21%}

.name-panel{background-size:103% 108%}

/* These full reference screens retain every original UI pixel. Only the 1080 × 1920 canvas scales. */
.art-hotspot{position:absolute;z-index:5;display:block;border:0;padding:0;margin:0;background:transparent;color:transparent}
.art-hotspot:hover{background:#fff1}.art-hotspot:active{background:#fff2}
.native-name-form{position:absolute;inset:0;z-index:4}
.native-name-input{position:absolute;left:36.57%;top:68.02%;width:24.08%;height:2.82%;min-height:0;padding:0;border:0;border-radius:0;background:#adb0d9;color:#080711;text-align:center;font:3cqw/1 StoryLora,Georgia,serif}
.native-name-input::placeholder{color:#080711;opacity:1}
.native-name-next{left:68.1%;top:72.7%;width:18%;height:2.7%}
.native-age-options{position:absolute;inset:0;z-index:4}
.native-age{width:15.75%;height:2.71%;left:32.4%;top:67.4%}
.native-age.age-1,.native-age.age-3{left:51.75%}.native-age.age-2,.native-age.age-3{top:71.03%}
.native-symbol-heading{position:absolute;z-index:2;left:17.96%;top:16.35%;width:62.4%;height:6.56%;object-fit:fill}
.native-symbol-art{position:absolute;z-index:2;left:22.22%;top:27.08%;width:55.56%;height:31.25%;object-fit:contain}
.native-symbol-panel{position:absolute;z-index:3;left:6.296%;top:61.927%;width:87.13%;height:20.3125%}
.native-symbol-copy{position:absolute;z-index:4;left:14%;top:67.5%;width:72%;height:9%;display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;font:3.25cqw/1.35 StoryLora,Georgia,serif}
.native-symbol-next{left:66.3%;top:77.8%;width:23%;height:3.3%}
/* The fountain uses the Lantern Road's original quiz frame and choice-button artwork. */
.scene[data-layout=fountain] .guide-slice{clip-path:inset(0 0 48% 0)}
.scene[data-layout=fountain] .dialogue{top:52%;left:4%;width:92%;height:15.1%;padding:0;background-image:url('../assets/mystic/prototype/question.webp')}
.scene[data-layout=fountain] .dialogue-copy{position:absolute;left:9%;right:9%;top:25%;height:50%;display:flex;align-items:center;justify-content:center;font-size:3.25cqw;line-height:1.3}
.scene[data-layout=fountain] .story-choice{left:5%;width:90%;height:7.8%;padding:2px 7% 2px 13%;font-size:3.5cqw}
.scene[data-layout=fountain] .choice-0{top:76%}.scene[data-layout=fountain] .choice-1{top:85%}
.scene[data-layout=fountain] .main-action{top:76%;left:33.2%;width:33.3%}

.native-symbol-grid{position:absolute;inset:0;z-index:4}.native-symbol-option{width:23.8%;height:13.4%}.native-intro-next{height:3.4%}

