.characterStage{--stage-ink:#514662;--stage-muted:#83788e;color:var(--stage-ink);min-width:0}.characterStage button{min-height:46px}.stageHeader{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 28px}.stageHeader h2{font-size:clamp(25px,3.4vw,36px);margin:8px 0;letter-spacing:-1px}.stageEyebrow{font-size:10px;font-weight:900;letter-spacing:2px;color:#8b759e}.stageWelcome{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;background:linear-gradient(125deg,#eee5f5,#f8ede5);border:1px solid #ded2e8;border-radius:34px;padding:40px;overflow:hidden}.stageWelcome h3{font-size:clamp(30px,4vw,46px);line-height:1.1;letter-spacing:-1.6px;margin:18px 0 24px}.stageWelcome p{line-height:1.6;color:var(--stage-muted)}.stageWelcome .primary{margin-top:10px}.stageTheatreArt{position:relative;min-height:270px;border-radius:70px 70px 18px 18px;background:linear-gradient(#c1ccd7,#e9d9e7);box-shadow:inset 0 0 0 10px #fff9ee,0 12px 0 #d8bbd0;overflow:hidden;align-self:center;transform:rotate(2deg)}.stageArtCurtain{position:absolute;top:0;width:26%;height:90%;background:repeating-linear-gradient(90deg,#b789b0 0,#cfabcd 22px,#b789b0 45px);z-index:2}.stageArtCurtain.left{left:0;border-radius:0 0 90% 0}.stageArtCurtain.right{right:0;border-radius:0 0 0 90%}.stageArtFloor{height:25%;position:absolute;bottom:0;left:0;right:0;background:repeating-linear-gradient(90deg,#d1b49d 0,#e3c4a9 40px,#d1b49d 44px);transform:perspective(150px) rotateX(20deg);transform-origin:bottom}.stageArtMoon{position:absolute;right:25%;top:30px;font-size:33px;color:#f8e5a8}.stageArtCloud{position:absolute;left:22%;bottom:42px;font-size:95px;color:#fff9fb;text-shadow:0 6px 0 #d4c7e0;animation:stageFloat 4s ease-in-out infinite}.stageArtStar{position:absolute;right:21%;bottom:46px;font-size:90px;color:#f1d88b;animation:stageFloat 4s ease-in-out -2s infinite}.stageTheatreArt i{position:absolute;left:38%;top:48%;font-size:15px;color:#756086;font-style:normal;letter-spacing:4px}.stageStarter{display:flex;align-items:center;gap:20px;padding:24px;margin:24px 0 30px;background:#fffaf1;border:1px solid #e7dbc9;border-radius:24px}.stageStarter>span{font-size:42px;color:#ad8fc0}.stageStarter p{color:var(--stage-muted);margin:7px 0}.stageStarter button{margin-left:auto}.stageShelfHeading{display:flex;align-items:center;justify-content:space-between}.stageShelfHeading span{color:var(--stage-muted);font-size:13px}.stageCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.stageCard{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid #ded3e6;background:#fffefa;padding:12px;border-radius:20px;text-align:left;min-width:0;color:var(--stage-ink);box-shadow:0 4px 0 #e4d9eb}.stageCard canvas{width:100%;height:auto;border-radius:12px}.stageCard span,.stageCard b{font-size:12px;color:var(--stage-muted)}.stageEmpty{grid-column:1/-1;padding:32px;border:2px dashed #ded4e7;border-radius:24px;color:var(--stage-muted);line-height:1.8}.stageNote{color:var(--stage-muted);font-size:13px;line-height:1.7;margin-top:20px}.stageMeta{display:flex;align-items:center;gap:24px;margin-bottom:18px}.stageMeta .field{min-width:0;flex:1;margin:0}.stageInstructions{font-size:13px;color:var(--stage-muted)}.stageTopTools{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}.stageTopTools button:last-child{margin-left:auto}.stageCanvasFrame{position:relative;border:8px solid #d8c7e1;box-shadow:0 6px 0 #c8b5d2;border-radius:24px;overflow:hidden;background:#e7e3ed}.stageCanvasFrame canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;touch-action:none;cursor:grab}.stageCanvasFrame canvas:active{cursor:grabbing}.stageCurtain{position:absolute;top:0;height:18%;width:5%;background:repeating-linear-gradient(90deg,#b788ad,#d0aed0 10px,#b788ad 20px);pointer-events:none}.stageCurtain.left{left:0;border-radius:0 0 85% 0}.stageCurtain.right{right:0;border-radius:0 0 0 85%}.stageCanvasFrame #stagePlaying{position:absolute;top:12px;left:50%;transform:translateX(-50%);background:#fffaf3ef;border-radius:99px;padding:9px 16px;font-size:12px;font-weight:800;white-space:nowrap;pointer-events:none}.stageTransport{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:22px 0 16px}.stageTransport>span{font-size:13px;color:var(--stage-muted)}.stageCast{display:flex;gap:10px;overflow-x:auto;padding:6px 0 14px;overscroll-behavior-x:contain}.stageCastButton{flex:0 0 118px;display:flex;align-items:center;flex-direction:column;border:2px solid #ded3e5;background:#fffcfa;border-radius:18px;padding:7px;color:var(--stage-ink);gap:5px;min-width:0}.stageCastButton[aria-pressed=true]{border-color:#8c70a0;box-shadow:0 0 0 3px #e4d4ef}.stageCastButton canvas{border-radius:12px;width:64px;height:64px}.stageCastButton span{font-size:12px;max-width:100%;overflow-wrap:anywhere}.stageCharacterTools{background:#fffefa;border:1px solid #e3dae9;border-radius:22px;padding:22px;margin:8px 0 20px}.stageSpeech .field{margin:0}.stageBubblePresets{display:flex;gap:9px;margin:12px 0 20px;flex-wrap:wrap}.stageActorControls{display:flex;flex-wrap:wrap;gap:8px}.stageNudge{display:flex;gap:5px}.stageNudge button{width:46px;padding:0}.stageRename{max-width:340px;margin:20px 0 0!important}.stageKeep{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.stageKeep p{flex-basis:100%;margin:8px 0;color:var(--stage-muted);font-size:13px}.stagePicker,.stageCrop{border:1px solid #d9c9e2;border-radius:22px;background:#fffcfa;padding:24px;margin-bottom:22px}.stagePickerHeader{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.stagePickerHeader h3{margin:0;font-size:20px}.stagePicker p,.stageCrop p{color:var(--stage-muted);line-height:1.6}.stageFriendChoices,.stageSettingChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.stageFriendChoice,.stageSettingChoice{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;text-align:center;border:1px solid #e1d5e9;border-radius:18px;background:#f4edf8;padding:12px;color:var(--stage-ink)}.stageFriendChoice canvas{width:90px;height:auto;max-width:100%}.stageSettingChoice canvas{width:100%;height:auto;border-radius:10px}.stageSettingChoice span{font-size:12px}.stageSettingChoice[aria-pressed=true]{border:2px solid #9275a5}.stagePickerActions{display:flex;flex-wrap:wrap;gap:12px}.stagePictureChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-height:450px;overflow-y:auto}.stagePictureChoices button{display:flex;flex-direction:column;gap:8px;min-width:0;background:#f6f0f8;border:1px solid #e0d5e7;border-radius:16px;padding:10px;color:var(--stage-ink)}.stagePictureChoices img{width:100%;height:100px;object-fit:contain}.stagePictureChoices span{font-size:12px;overflow-wrap:anywhere}.stageCrop canvas{display:block;max-width:100%;width:600px;height:auto;touch-action:none;border:2px solid #d8c6e2;border-radius:16px;margin:auto}.stageCropButtons{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}.stageLift{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dfd3e7;border-radius:12px;font-size:13px}.stageLift input{accent-color:#866399;width:22px;height:22px}.stageExportProgress{position:sticky;bottom:12px;z-index:10;display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:20px;border:2px solid #c7b5d3;background:#fffcf4;box-shadow:0 8px 24px #51466222;border-radius:20px;flex-basis:100%}.stageExportProgress span{font-size:13px}.stageExportProgress button{margin-left:auto}.stageWide{position:fixed;inset:0;z-index:70;overflow-y:auto;background:#f6f0fa;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));overscroll-behavior:contain}.stageWide .stageHeader{margin:0 0 14px}.stageWide .stageHeader h2{font-size:24px}.stageWide .stageMeta{display:none}.stageWide .stageCanvasFrame{width:min(100%,1200px,120dvh);margin:auto}.stageWide .stageCharacterTools{max-width:1200px;margin:10px auto 20px}.stageWide .stageCast{justify-content:center}.stageWide .stageKeep{justify-content:center}.stageWide .stageKeep p{text-align:center}body:has(.stageWide) .sidebar,body:has(.stageWide) .topbar,body:has(.stageWide) .footer{display:none}body:has(.stageWide){overflow:hidden}@keyframes stageFloat{50%{transform:translateY(-8px) rotate(-3deg)}}.noMotion .stageTheatreArt span{animation:none}@media(prefers-reduced-motion:reduce){.stageTheatreArt span{animation:none}}@media(max-width:1000px){.stageWelcome{padding:28px;gap:18px}.stageTheatreArt{min-height:230px}.stageCards{grid-template-columns:repeat(2,minmax(0,1fr))}.stageFriendChoices,.stageSettingChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.stageMeta{display:block}.stageInstructions{display:block;margin-top:12px}.stagePictureChoices{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.stageHeader{gap:10px;margin-bottom:20px}.stageHeader h2{font-size:24px;letter-spacing:-.6px}.stageHeader button{font-size:12px;padding:10px 14px}.stageWelcome{grid-template-columns:1fr;padding:24px}.stageTheatreArt{min-height:220px;width:100%;max-width:340px;margin:4px auto}.stageWelcome h3{font-size:34px}.stageStarter{padding:18px;gap:12px;flex-wrap:wrap}.stageStarter>span{font-size:28px}.stageStarter div{flex:1;min-width:150px}.stageStarter button{margin-left:0;width:100%}.stageCards{grid-template-columns:1fr}.stagePicker,.stageCrop{padding:16px}.stagePickerHeader h3{font-size:17px}.stageTopTools button:last-child{margin-left:0}.stageCanvasFrame{border-width:5px;border-radius:16px}.stageCharacterTools{padding:16px}.stageActorControls button{font-size:12px}.stagePictureChoices{grid-template-columns:repeat(2,minmax(0,1fr))}.stageTransport{justify-content:flex-start}.stageTransport>span{flex-basis:100%}.stageCastButton{flex-basis:100px}.stageWide .stageCast{justify-content:flex-start}.stageWide .stageCanvasFrame{width:100%}.stageEyebrow{font-size:9px;letter-spacing:1.3px}}
