/* A quieter hierarchy: one primary action, compact inputs, optional long content. */
:root{--muted:#77717b}
header{height:68px;max-width:1160px;padding:0 28px;border-bottom-color:#e8e2da99}.brand{font-size:19px}.brand-icon{width:32px;height:32px;font-size:25px;border-radius:10px}.beta{display:none}.tools button,.tools select{min-height:44px;font-size:12px}.tools button{color:#635b68}
main{max-width:1080px;padding:24px 28px 0}.intro .eyebrow{display:none}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.3;margin:0 0 8px}h1 br{display:none}h1 em{margin-left:6px}.intro p{font-size:12px;line-height:1.6}.workspace{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;margin-top:28px}.sanctuary{padding-top:16px;position:sticky;top:20px}.scene{margin-top:0;height:350px}.arch{height:302px;width:280px}#character{height:290px}.bubble{font-size:11px;padding:11px 16px}.orbit,.arch .code,.arch .s3{display:none}.companion{margin:13px 0 14px;font-size:13px}.scene-caption{display:none}
.character-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:350px;margin:0 auto;text-align:left}.character-controls .tradition,.character-controls .mode-picker{display:flex;flex-direction:column;align-items:stretch;gap:5px;margin:0;font-size:10px;color:#77717b}.character-controls select{width:100%;max-width:none;min-height:44px;border:1px solid #e3dce6;background:#f6f2f6;border-radius:10px;padding:8px 10px;color:#62516f;font-size:11px;font-weight:600}
.panel{padding:24px;border-radius:18px;min-height:0;box-shadow:none}.steps{margin-bottom:22px;font-size:10px;gap:7px}.steps span.active{color:#664379}.steps span{white-space:nowrap}#number{display:none}h2{font-size:22px;letter-spacing:-.6px;margin:0 0 8px}.hint{font-size:12px;margin-bottom:18px;line-height:1.5}.choices{gap:8px;margin-bottom:18px}.choice{min-height:44px;padding:10px;font-size:12px;font-weight:600;border-color:#e8e3e9}.choice .icon{font-size:15px;min-width:18px}.choice.selected{box-shadow:none;background:#eee6f4;border-color:#a58bb7}.release-choice{font-size:12px;padding:12px;background:#fbf5e7;border-color:#e5d7b5}.release-choice.selected{background:#f8edcf;border-color:#c4a468}
.profile-fields{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 20px;padding-top:16px;border-top:1px solid #eee8ef}#directionSection,#stackSection{margin:0;padding:0;border:0}#directionLabel,#stackLabel{font-size:11px;font-weight:600;margin:0 0 6px;color:#77717b}#stackHint{display:none}.profile-fields select{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #dfd7e4;border-radius:9px;background:#fffdf9;font-size:12px;color:#44364f}.primary{min-height:46px;padding:13px;font-size:12px;border-radius:10px;box-shadow:none}.primary:hover{transform:none}.back{min-height:40px;margin-top:6px;font-size:11px;color:#74647e}.selection-context{font-size:11px;line-height:1.6;color:#7e7087;margin-bottom:16px}
#done{margin:0 0 10px;color:#8b7498;font-size:9px}#ritualContext{margin:0 0 18px;font-size:11px;color:#887b90;line-height:1.6}#verse{font-size:17px;line-height:1.8;margin:0;padding:18px;background:#f2ecf5;border-radius:12px;min-height:154px;white-space:normal}#verse .verse-line{line-height:1.8}#verse:not(.expanded) .verse-line{display:none}#verse:not(.expanded):not(:has(.current)) .verse-line:nth-child(-n+3){display:block}#verse:not(.expanded) .verse-line.current,#verse:not(.expanded) .verse-line.current + .verse-line,#verse:not(.expanded) .verse-line.current + .verse-line + .verse-line{display:block}#verse:not(.expanded) .verse-line:not(.current){color:#9c8aa8}#verse .verse-line.current{background:transparent;color:#51336c;transform:none;font-weight:700}#verse.expanded .verse-line{display:block;font-size:14px}
.text-action{display:block;border:0;background:transparent;color:#7c658c;font-size:11px;min-height:44px;padding:10px 0;text-decoration:underline;text-underline-offset:4px}.practical{display:block;border-radius:0;background:none;padding:10px 0 0;border-top:1px solid #eee8ef}.practical summary{cursor:pointer;font-size:11px;color:#7d7186;min-height:36px;padding:7px 0}.practical p{padding:4px 0 10px;color:#786b81;line-height:1.7}.result-actions{margin-top:16px}#again{display:none!important}#replay{flex:1}footer{margin-top:28px;padding:16px 0;font-size:10px}footer>span:last-child{display:none}
#releaseDialog{padding:18px 24px;border-radius:20px;max-height:94dvh;width:min(620px,calc(100% - 24px))}.release-top{justify-content:flex-end}.release-top>span{display:none}.release-top button{min-height:36px}#releaseTitle{font-size:25px;margin:2px 0 8px}#releaseSub{display:none}#releaseContext{font-size:10px;line-height:1.5;margin:0 0 8px}.release-mode-picker{margin:0 0 6px;gap:8px}.release-mode-picker select{min-height:40px}.release-scene .bubble{display:none}#releaseStage .scene{height:300px}.release-scene .arch{height:270px}.release-scene #character{height:260px}#releaseStage{padding-bottom:14px}#releaseCaption{font-size:15px;margin:12px 0 5px}#releaseLyric{font-size:16px;min-height:26px;margin:0 0 12px}.release-controls{position:sticky;bottom:0;background:#fcf7ec;padding:8px 0 0;z-index:6}.release-controls .secondary{min-height:44px}
@media(max-width:760px){header{height:60px;padding:0 16px}.brand{font-size:16px;gap:8px}.tools{gap:5px}.tools button span{display:inline}.tools button,.tools select{font-size:10px;padding:4px}main{padding:20px 16px 0}h1{font-size:25px;letter-spacing:-.8px}.intro p{font-size:11px;max-width:290px;margin:auto}.workspace{grid-template-columns:1fr;gap:20px;margin-top:18px}.sanctuary{position:static;max-width:380px;padding-top:0}.scene{height:242px;max-width:330px}.arch{height:206px;width:220px}#character{height:210px}.bubble{font-size:10px;top:0;padding:9px 13px}.companion{margin:8px 0 10px;font-size:12px}.character-controls{max-width:330px}.panel{padding:20px}.steps{margin-bottom:18px}.choices{gap:7px}.choice{font-size:11px}.profile-fields{gap:10px}.scene.task-scene{height:300px}.scene.task-scene #character{height:250px}body[data-step="2"] .scene{height:300px}body[data-step="2"] .arch{height:255px}body[data-step="2"] #character{height:250px}#verse{font-size:16px}#releaseDialog{padding:12px 18px}.release-controls{gap:8px}.release-controls .secondary{white-space:normal;font-size:10px}#releaseStage .scene{height:260px}.release-scene .arch{height:230px}#releaseStage #character{height:220px}}
@media(max-width:360px){header{padding:0 10px}.brand{font-size:14px}.brand-icon{width:28px;height:28px}.tools button span{display:none}.steps{font-size:9px}.choice{padding:8px;font-size:10px}.character-controls select{font-size:10px}.panel{padding:16px}h1{font-size:23px}}
@media(min-width:761px){.profile-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.profile-fields select{font-size:11px;padding:10px 8px}}

.scene.idle-chat .bubble{white-space:normal;width:92%;max-width:360px;min-height:64px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;line-height:1.5;transform:translateX(-50%);top:-12px}
@media(max-width:760px){.scene.idle-chat{margin-top:12px}.scene.idle-chat .bubble{font-size:11px;min-height:58px;top:-14px;padding:10px 14px}}

footer{flex-wrap:wrap}footer .copyright-joke{flex:0 0 100%;max-width:760px;margin:0;font-size:12px;line-height:1.7;color:#807584;overflow-wrap:anywhere}
