:root{--paper:#f5f3fc;--ink:#302941;--muted:#8c839b;--grape:#7560d8;--grape-dark:#614cbd;--line:#eeeaf5;--pale:#f0ebfc;--mint:#b7d9c3;--peach:#f0b6a1;--yellow:#f6d57b;font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #b0a0ee;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.48}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,p{margin:0}h2{font-size:14px;font-weight:650;letter-spacing:.1px}
.site-header{height:90px;max-width:1480px;padding:0 44px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8e3f2}.brand{display:flex;align-items:center;font-size:22px;font-weight:750;letter-spacing:1px}.brand-mark{display:grid;grid-template-columns:13px 13px;grid-gap:4px;transform:rotate(-10deg);margin-right:13px}.brand-mark i{height:13px;border-radius:50%;background:var(--grape);box-shadow:inset -2px -2px 0 rgba(0,0,0,0.0431);position:relative}.brand-mark i:after{content:"";width:4px;height:4px;position:absolute;left:4.5px;top:4.5px;background:var(--paper);border-radius:50%}.brand-mark i:nth-child(2){background:#c6b4ec}.brand-mark i:nth-child(3){background:var(--peach)}.brand-mark i:nth-child(4){background:var(--yellow)}.brand-caption{font-size:10px;display:block;font-weight:400;letter-spacing:1.2px;color:var(--muted);margin-top:2px}.header-links{display:flex;align-items:center;height:100%;margin-left:0}.header-links button{padding:12px 0;margin:0 20px;font-size:13px;color:var(--muted)}.header-links .nav-active{color:var(--grape);position:relative;font-weight:650}.nav-active:after{content:"";position:absolute;bottom:0;left:calc(50% - 10px);height:3px;width:20px;border-radius:3px;background:var(--grape)}.save-status{font-size:11px;color:var(--muted);display:flex;align-items:center}.save-status>span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9fbdaa;margin-right:7px}
main{max-width:1480px;margin:0 auto;padding:37px 44px 18px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.intro h1{font-size:27px;font-weight:650;letter-spacing:1.1px;line-height:1.5}.intro p{font-size:12px;letter-spacing:.3px;margin-top:6px;color:var(--muted)}.intro-note{font-size:11px;color:#a297b6;display:flex;align-items:center;padding:6px 12px;transform:rotate(-3deg)}.tiny-bead{width:18px;height:18px;border:6px solid #cbbbe8;border-radius:50%;margin-right:8px}
.studio-layout{display:grid;grid-template-columns:230px minmax(320px,1fr) 238px;grid-gap:22px;align-items:start}.source-panel,.play-panel{background:#fff;border:1px solid #f0ecf6;border-radius:18px;padding:22px 18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.panel-heading h2{font-size:13px}.label-tag{font-size:9px;color:#9989b6;background:#f5f1fd;padding:4px 5px;border-radius:4px}.upload-area{width:100%;display:flex;flex-direction:column;align-items:center;padding:20px 10px 14px;border:1.5px dashed #cdbfed;border-radius:12px;background:#faf8ff;transition:background .15s}.upload-area:hover{background:#f0ebfc}.upload-icon{width:51px;height:47px;margin-bottom:11px;display:flex;align-items:center;justify-content:center;color:#9e88d8}.upload-icon svg{width:38px;height:38px;stroke-width:1.4}.upload-area strong{font-size:12px;font-weight:550;margin-bottom:7px}.upload-area>span:not(.upload-icon):not(.upload-cta){font-size:9px;color:#a399b4}.upload-cta{font-size:11px;color:var(--grape);background:#fff;border:1px solid #e7def9;padding:8px 14px;border-radius:7px;margin-top:18px}.upload-cta>span{margin-left:8px;font-size:14px}.divider-label{color:#a69cb4;font-size:10px;display:flex;align-items:center;margin:24px 0 15px;white-space:nowrap}.divider-label:before,.divider-label:after{content:"";height:1px;background:var(--line);flex:1}.divider-label:before{margin-right:8px}.divider-label:after{margin-left:8px}.template-list{display:grid;grid-template-columns:1fr 1fr;grid-gap:9px}.template-item{padding:9px 4px 8px;border:1px solid #eeebf4;border-radius:11px;background:#fdfcfe;text-align:center;position:relative}.template-item.selected{border-color:#c0abe9;background:#f8f4ff}.template-item canvas{display:block;width:66px;height:66px;margin:0 auto 5px}.template-item span{font-size:10px;color:#81758f;white-space:nowrap}.template-item.selected:after{content:"✓";position:absolute;right:5px;top:5px;font-size:9px;color:white;background:#a18bd4;width:13px;height:13px;line-height:13px;border-radius:50%}.settings-block{margin-top:26px}.settings-block h2{font-size:12px;margin-bottom:12px}.segmented{display:flex;background:#f5f3f9;border-radius:7px;padding:3px}.segmented button{flex:1;padding:7px 1px;font-size:10px;white-space:nowrap;border-radius:5px;color:#9a90a8}.segmented button.selected{background:white;color:#7862bc;box-shadow:0 1px 5px rgba(59,36,81,0.0667)}.field-note{font-size:9px;line-height:1.8;color:#a79db4;margin-top:9px}.source-footnote{font-size:9px;line-height:1.9;color:#a79db4;padding-top:23px;margin-top:20px;border-top:1px solid var(--line)}.source-footnote>span{color:#b7a5da;margin-right:3px}
.workspace{background:white;border:1px solid #eeebf5;border-radius:20px;overflow:hidden;box-shadow:0 8px 30px rgba(70,50,96,0.0157)}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;padding:19px 23px}.pattern-heading{display:flex;align-items:center}.pattern-emoji{background:#fbf0dc;width:36px;height:36px;display:grid;place-items:center;font-size:23px;color:#d2ad6a;border-radius:10px;margin-right:10px}.pattern-heading h2{font-size:14px;font-weight:650}.pattern-heading p{font-size:10px;color:#a296b0;margin-top:5px}.button{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;font-size:12px;line-height:1.4;border-radius:8px;border:1px solid transparent;font-weight:500;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button-light{background:#fff;border-color:#eae4f3;color:#8c7aab}.button-light:hover{background:#f8f5fd}.button-primary{background:var(--grape);color:white;box-shadow:0 3px 8px rgba(112,85,194,0.0784)}.button-primary:hover{background:var(--grape-dark)}.button-full{width:100%;margin-top:14px}.export-button{font-size:10px;padding:9px 11px}.export-button svg{width:15px;height:15px;margin-right:5px}
.canvas-stage{position:relative;padding:16px 24px 14px;background-color:#f4f1fa;background-image:radial-gradient(#ddd4ed 0.75px,transparent .75px);background-size:14px 14px;border-top:1px solid #f0eaf7;border-bottom:1px solid #efe8f6}.stage-topline,.stage-bottomline{display:flex;justify-content:space-between;align-items:center;min-height:24px}.stage-caption{font-size:10px;color:#a797b7}.grid-badge{background:rgba(255,255,255,0.6000);color:#a08db5;font-size:9px;padding:5px 7px;border-radius:5px}.board-wrap{position:relative;max-width:500px;margin:13px auto 14px;line-height:0;padding:13px;border-radius:14px;background:#fdfcfe;border:1px solid #e6dff0;box-shadow:0 7px 0 #e7e1f0,0 13px 22px rgba(119,98,139,0.0745);touch-action:none}.board-wrap:before,.board-wrap:after{content:"";position:absolute;width:5px;height:5px;border:1px solid #ded5e7;border-radius:50%;top:5px;background:#ebe6f1}.board-wrap:before{left:5px}.board-wrap:after{right:5px}#bead-board{display:block;width:100%;height:auto;touch-action:none;border-radius:4px;cursor:crosshair}#board-hint{font-size:9px;color:#a492b3;line-height:1.7}.reference-toggle{font-size:10px;color:#9175b2;padding:7px 8px;border-radius:6px;white-space:nowrap;background:rgba(255,255,255,0.6000);margin-left:8px}.reference-toggle[aria-pressed=true]{color:#fff;background:#9c86c5}.reference-toggle>span{font-size:12px;margin-right:3px}.board-cursor{position:absolute;border:2px solid var(--grape);border-radius:4px;pointer-events:none;display:none}.workspace-bottom{display:flex;align-items:center;justify-content:space-between;padding:12px 20px}.drawing-tools{display:flex;align-items:center}.tool-button{font-size:10px;display:flex;align-items:center;padding:8px 9px;border-radius:7px;color:#a092b3}.tool-button svg{width:17px;height:17px;margin-right:5px}.tool-button.active{color:var(--grape);background:#f0ebfa}.tool-button:hover{background:#f7f4fc}.tool-separator{width:1px;height:18px;background:#eee8f5;margin:0 5px}.text-button{font-size:10px;color:#aea3bb;white-space:nowrap;padding:8px 0 8px 8px}.text-button:hover{color:var(--grape)}
.play-panel{padding:23px 18px 18px}.progress-heading{display:flex;align-items:center;justify-content:space-between}.progress-heading h2{font-size:12px}.progress-percent{font-size:24px;font-weight:600;color:#8c76cc;letter-spacing:-.7px}.progress-percent>span{font-size:12px;font-weight:400;margin-left:1px}.progress-track{height:7px;margin:13px 0 10px;background:#f0ebf7;border-radius:7px;overflow:hidden}.progress-track>div{height:100%;width:0;background:#b7a5df;border-radius:7px;transition:width .2s}.progress-detail{font-size:9px;color:#b2a7bd;display:flex;align-items:center;white-space:nowrap}.progress-detail strong{color:#9074bf;font-size:11px;font-weight:600;margin-right:3px}.progress-detail>span:first-of-type{margin:0 4px}.progress-detail>span:last-child{margin-left:auto;font-size:9px}.palette-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.palette-heading h2{font-size:12px}.palette-heading>span{font-size:9px;color:#b5a9c2}.palette-list{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:8px}.palette-color{min-width:0;position:relative;background:#faf9fc;border:1px solid #f0ecf5;border-radius:9px;padding:8px 3px 7px;text-align:center}.palette-color.selected{background:#f8f4fe;border-color:#b9a2df}.swatch-bead{display:block;width:29px;height:29px;border-radius:50%;background:var(--bead-color);box-shadow:inset -2px -2px 0 rgba(0,0,0,0.0549),inset 2px 2px 0 rgba(255,255,255,0.2196),0 2px 3px rgba(0,0,0,0.0392);margin:0 auto 5px;position:relative}.swatch-bead:after{content:"";position:absolute;width:9px;height:9px;background:#fcfbfe;border-radius:50%;left:10px;top:10px;box-shadow:1px 1px 0 rgba(255,255,255,0.5020),inset 1px 1px 1px rgba(0,0,0,0.1255)}.palette-color>span:last-child{font-size:9px;color:#a494b1;display:block}.palette-color.selected:after{content:"✓";position:absolute;top:-4px;right:-4px;border-radius:50%;width:13px;height:13px;font-size:9px;line-height:13px;background:#9e83cf;color:#fff}.palette-color.done{opacity:.5}.selected-color-note{font-size:9px;color:#b4a8c1;line-height:1.8;margin-top:10px;min-height:16px}.room-card{background:#f5f1fd;border:1px solid #eee7f8;border-radius:12px;text-align:center;padding:17px 9px 8px;margin-top:23px}.room-illustration{height:39px;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:7px}.friend-bead{display:inline-block;width:30px;height:30px;border-radius:50%;border:10px solid #b6a1df;box-shadow:0 3px 0 #a790d0;transform:rotate(-12deg);position:relative}.friend-bead.two{border-color:#f0bda6;box-shadow:0 3px 0 #e6aa90;transform:translateY(5px)}.friend-spark{font-size:21px;color:#c2aadf;margin:0 7px;transform:translateY(-8px)}.room-card h2{font-size:12px;font-weight:550}.room-card p{color:#ac9cbd;font-size:10px;line-height:1.8;margin:8px 0 14px}.room-card .button{width:100%;font-size:10px;padding:10px 4px}.room-card .button>span{font-size:15px;margin-right:5px}.room-join-link{font-size:10px;color:#aa99bf;padding:10px 4px;display:block;width:100%;text-align:center}.room-join-link:hover{color:var(--grape)}.active-room{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.room-code-row{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9f8fb6}.room-code-row strong{color:#7d64b7;letter-spacing:1px;font-size:11px}.connection-status{font-size:9px;color:#7ca18b}.member-list{padding:10px 0}.member-row{display:flex;align-items:center;font-size:10px;color:#92839f;margin:8px 0}.member-avatar{width:24px;height:24px;border-radius:50%;margin-right:7px;display:grid;place-items:center;color:#fff;font-size:10px}.member-contribution{margin-left:auto;color:#b2a6c0;font-size:9px}.active-room .button{width:100%;font-size:11px;padding:9px}.site-footer{display:flex;align-items:center;margin-top:28px;font-size:10px;color:#afa4bc}.footer-flower{font-size:20px;color:#c6b6e1;margin-right:8px}.footer-local{margin-left:auto;font-size:9px;color:#c1b7cd}
.toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%);background:#4e4168;color:#fff;border-radius:10px;padding:13px 22px;font-size:12px;z-index:100;box-shadow:0 5px 20px rgba(52,41,67,0.0941);max-width:calc(100vw - 36px);line-height:1.7;text-align:center;pointer-events:none}dialog{border:1px solid #e7dff2;border-radius:18px;padding:25px;width:min(460px,calc(100vw - 28px));max-height:90vh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 24px 90px rgba(48,33,66,0.1882);margin:auto}dialog::backdrop{background:rgba(48,33,66,0.3608);backdrop-filter:blur(4px)}dialog.fallback-dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:90;margin:0;box-shadow:0 0 0 200vmax rgba(48,33,66,0.3608)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dialog-heading h2{font-size:17px;font-weight:650}.close-dialog{font-size:25px;line-height:1;color:#ae9dc3;padding:0 0 2px 10px}.dialog-description{font-size:12px;color:#a394b3;line-height:1.9;margin:8px 0 17px}.crop-preview-wrap{position:relative;width:240px;max-width:100%;margin:0 auto 17px;border-radius:10px;overflow:hidden;line-height:0;background:#f4f0fa}#crop-preview{width:100%;height:auto}.crop-grid{position:absolute;inset:0;background:linear-gradient(to right,transparent 33%,rgba(255,255,255,0.3333) 33%,rgba(255,255,255,0.3333) 33.4%,transparent 33.4%,transparent 66%,rgba(255,255,255,0.3333) 66%,rgba(255,255,255,0.3333) 66.4%,transparent 66.4%),linear-gradient(to bottom,transparent 33%,rgba(255,255,255,0.3333) 33%,rgba(255,255,255,0.3333) 33.4%,transparent 33.4%,transparent 66%,rgba(255,255,255,0.3333) 66%,rgba(255,255,255,0.3333) 66.4%,transparent 66.4%);pointer-events:none}.range-field,.crop-offsets label{font-size:11px;color:#9b8aac;display:flex;align-items:center}.range-field input{flex:1;margin-left:14px;min-width:0}.crop-offsets{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px;margin:13px 0 17px}.crop-offsets label{display:block;font-size:10px}.crop-offsets input{width:100%;margin:7px 0 0}input[type=range]{accent-color:var(--grape)}.form-row{display:grid;grid-template-columns:1fr 1fr;grid-gap:14px}.form-row label,.input-field{display:block;font-size:11px;color:#9b8aac}.form-row select,.input-field input{display:block;width:100%;border:1px solid #e8e0f2;border-radius:7px;background:#faf8fe;color:#7a668f;padding:11px 9px;font-size:12px;margin-top:7px;min-width:0}.input-field{margin:18px 0}.input-field input{font-size:14px}.checkbox-field{display:flex;align-items:center;font-size:11px;color:#a394b3;margin:16px 0 5px}.checkbox-field input{margin:0 7px 0 0;accent-color:var(--grape)}.dialog-footnote{font-size:10px;line-height:1.9;color:#afa0bf;margin-top:12px}.form-error{font-size:12px;color:#ba6086;line-height:1.8}.invite-code-display{padding:22px;background:#f5f0fd;color:#8a70be;letter-spacing:9px;font-size:32px;text-align:center;border-radius:10px;margin:20px 0}.export-options{display:flex;margin:15px 0;background:#f7f3fc;padding:4px;border-radius:9px}.export-options button{flex:1;padding:9px;color:#a591b8;font-size:12px;border-radius:6px}.export-options button.selected{color:var(--grape);background:#fff;box-shadow:0 1px 4px rgba(48,41,65,0.0392)}#export-image{display:block;width:100%;height:auto;max-height:48vh;object-fit:contain;background:#f6f2fc;border-radius:8px}.help-steps{padding-left:22px;color:#8d73bc;font-size:13px}.help-steps li{padding:10px 0}.help-steps strong{font-weight:550}.help-steps p{font-size:12px;color:#ac9cba;line-height:1.9;margin-top:7px}.dialog-actions{display:flex;justify-content:flex-end;margin-top:20px}.dialog-actions .button{margin-left:10px}
@media(min-width:1440px){.studio-layout{grid-template-columns:250px minmax(320px,1fr) 254px;grid-gap:25px}.source-panel,.play-panel{padding:25px 22px}.template-item canvas{width:75px;height:75px}.board-wrap{max-width:510px}.canvas-stage{padding-left:36px;padding-right:36px}.template-item{padding-top:13px;padding-bottom:10px}}
@media(max-width:1150px){.site-header{padding:0 25px;height:79px}main{padding:28px 25px 18px}.studio-layout{grid-template-columns:190px minmax(300px,1fr) 205px;grid-gap:14px}.source-panel,.play-panel{padding:18px 13px}.canvas-stage{padding:13px 17px}.workspace-toolbar{padding:16px}.brand-caption{font-size:9px}.save-status{font-size:10px}.header-links button{margin:0 13px}.panel-heading{display:block}.label-tag{display:inline-block;margin-top:8px}.intro h1{font-size:24px}.template-item canvas{width:60px;height:60px}.progress-detail>span:last-child{display:none}.workspace-bottom{padding:11px 13px}.tool-button{padding:8px 7px}.board-wrap{padding:10px}.stage-caption{font-size:9px}.reference-toggle{font-size:9px}.stage-bottomline{display:block;text-align:center}.reference-toggle{margin:5px 0 0}.palette-list{grid-gap:6px}.intro-note{display:none}}
@media(max-width:900px) and (min-width:701px){.studio-layout{grid-template-columns:170px minmax(300px,1fr)}.play-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.5fr;grid-column-gap:26px}.progress-heading,.progress-track,.progress-detail{grid-column:1}.palette-heading{grid-column:2;grid-row:1;margin:0}.palette-list{grid-column:2;grid-row:2/5;grid-template-columns:repeat(6,1fr)}.selected-color-note{grid-column:2}.room-card,.active-room{grid-column:1/-1}.room-illustration{display:none}.room-card p br{display:none}.room-card .button{max-width:240px}.room-card .room-join-link{max-width:150px;display:inline-block}.room-card p{margin:7px}.save-status{display:none}.source-panel{padding:17px 10px}.template-item canvas{width:53px;height:53px}.template-item span{font-size:9px}}
@media(max-width:700px){.site-header{height:72px;padding:0 20px}.brand{font-size:19px}.brand-mark{grid-template-columns:11px 11px;grid-gap:3px;margin-right:10px}.brand-mark i{height:11px}.brand-mark i:after{width:3px;height:3px;left:4px;top:4px}.brand-caption{font-size:8px;letter-spacing:.6px}.save-status{display:none}.header-links button{font-size:11px;margin:0 0 0 16px}.header-links .nav-active{display:none}main{padding:23px 14px 22px}.intro{margin:0 5px 20px}.intro h1{font-size:22px;letter-spacing:.2px}.intro p{font-size:11px;line-height:1.8;margin-top:5px;max-width:290px}.studio-layout{display:flex;flex-direction:column;grid-gap:0}.source-panel{width:100%;padding:15px;border-radius:14px;margin-bottom:15px}.panel-heading{display:none}.upload-area{padding:10px 12px;display:flex;flex-direction:row;justify-content:flex-start;border-radius:8px}.upload-icon{width:30px;height:30px;margin:0 10px 0 0}.upload-icon svg{width:29px;height:29px}.upload-area strong{font-size:12px;margin:0}.upload-area>span:not(.upload-icon):not(.upload-cta){display:none}.upload-cta{font-size:10px;padding:6px 8px;margin:0 0 0 auto;border:0;background:none}.upload-cta>span{display:none}.divider-label{font-size:9px;margin:15px 0 10px}.template-list{grid-template-columns:repeat(4,1fr);grid-gap:7px}.template-item{padding:7px 1px}.template-item canvas{width:52px;height:52px;margin-bottom:2px}.template-item span{font-size:9px}.template-item.selected:after{right:2px;top:2px;width:11px;height:11px;line-height:11px;font-size:8px}.settings-block{margin-top:13px;display:flex;align-items:center;justify-content:space-between}.settings-block h2{font-size:10px;margin:0}.segmented{width:230px;max-width:77%;padding:2px}.segmented button{font-size:10px;padding:5px 2px}.field-note,.source-footnote{display:none}.workspace{width:100%;border-radius:15px}.workspace-toolbar{padding:15px}.pattern-heading h2{font-size:13px}.pattern-heading p{font-size:9px}.pattern-emoji{width:32px;height:32px;font-size:21px}.export-button{font-size:10px;padding:8px 9px}.canvas-stage{padding:12px 18px 10px}.stage-caption{font-size:9px}.board-wrap{margin-top:9px;margin-bottom:15px;padding:9px;max-width:440px;border-radius:11px}.stage-bottomline{display:flex;text-align:left}.reference-toggle{font-size:9px;padding:7px;margin:0 0 0 7px}#board-hint{font-size:8px;max-width:170px}.workspace-bottom{padding:10px 13px}.tool-button{font-size:10px;padding:8px}.tool-button svg{width:16px;height:16px}.text-button{font-size:9px}.play-panel{width:100%;margin-top:15px;padding:20px 18px;border-radius:14px}.progress-heading h2{font-size:12px}.progress-percent{font-size:23px}.progress-detail>span:last-child{display:block}.palette-heading{margin-top:22px}.palette-list{grid-template-columns:repeat(6,1fr);grid-gap:7px}.palette-color{padding:7px 2px}.swatch-bead{width:30px;height:30px;margin-bottom:4px}.swatch-bead:after{width:10px;height:10px;left:10px;top:10px}.palette-color>span:last-child{font-size:9px}.selected-color-note{margin-top:10px}.room-card{padding:15px 14px 10px;position:relative;margin-top:17px;text-align:left}.room-illustration{float:right;width:94px;height:57px;margin:7px 0 0}.room-card h2{font-size:13px}.room-card p{margin:7px 0 13px;line-height:1.8;font-size:10px}.room-card .button{font-size:11px;width:100%}.room-join-link{font-size:10px;padding:11px 4px}.site-footer{font-size:9px;justify-content:center;margin-top:20px}.footer-local{display:none}.footer-flower{font-size:18px;margin-right:6px}.toast{bottom:20px;font-size:11px;padding:12px 15px}.dialog-heading h2{font-size:16px}dialog{padding:21px;max-height:88vh}.crop-preview-wrap{width:210px}.dialog-footnote{font-size:9px}.form-row{grid-gap:9px}.form-row select{font-size:11px}}
dialog:not([open]){display:none}.tool-button.editing{background:#fcecf2;color:#b46e8e}.board-wrap.editing{box-shadow:0 7px 0 #efdfeb,0 13px 22px rgba(119,98,139,0.0745);border-color:#dfbcd6}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Complete Chrome 61 fallback before modern declaration enhancements. */
dialog{width:460px;max-width:calc(100vw - 28px)}
button:focus,a:focus,input:focus,select:focus,canvas:focus{outline:2px solid #B0A0EE;outline-offset:3px}
@supports selector(:focus-visible){button:focus:not(:focus-visible),a:focus:not(:focus-visible),input:focus:not(:focus-visible),select:focus:not(:focus-visible),canvas:focus:not(:focus-visible){outline:none}}
.crop-grid{top:0;right:0;bottom:0;left:0}
.site-header{padding-top:0;padding-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));min-height:72px}
body{padding-bottom:0;padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));-webkit-touch-callout:none}
.source-panel,.workspace,.play-panel{min-width:0}
.template-item span,.field-note,.source-footnote,#board-hint,.stage-caption,.selected-color-note,.progress-detail,.palette-color>span:last-child{color:#8C7C9B}

/* A readable paper pattern sits beside the physical board; sorted trays stay below it. */
.studio-layout{grid-template-columns:190px minmax(0,1fr);grid-template-rows:auto 1fr;gap:18px}
.source-panel{grid-column:1;grid-row:1}.workspace{grid-column:2;grid-row:1/3}.play-panel{grid-column:1;grid-row:2}
.canvas-stage,.canvas-stage.is-realistic{padding:16px 14px;background:#f2edf8;background-image:none}
.stage-controls{margin:0 6px 14px}.stage-topline{gap:12px}.stage-caption{font-size:11px;line-height:1.7}
.experience-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;min-height:34px}
.experience-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.snap-assist-control{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-size:11px;color:var(--ink);cursor:pointer;white-space:nowrap;touch-action:manipulation}.snap-assist-control input{width:17px;height:17px;margin:0;accent-color:var(--grape)}
.mode-switch{display:flex;background:#e8e2f0;padding:3px;border-radius:8px;flex-shrink:0}.mode-switch button{font-size:11px;padding:8px 12px;border-radius:6px;color:#887499}.mode-switch button.selected{background:#fff;color:#65509b;box-shadow:0 1px 4px rgba(58,40,78,.08)}
.scene-status{font-size:11px;line-height:1.6;color:#8c7c9b;text-align:right}.scene-status[data-state=miss]{color:#a26d78}.scene-status[data-state=seated]{color:#58836a}.scene-status[data-state=held]{color:#7560b2}
.table-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:14px;align-items:start}.table-board{min-width:0;grid-column:1;grid-row:1}
.reference-paper{grid-column:2;grid-row:1;position:sticky;top:14px;background:#fffdfc;padding:12px;border:1px solid #dfd5e6;border-radius:7px;box-shadow:0 3px 9px rgba(64,49,82,.05)}
.reference-card{display:block;width:100%;padding:0;text-align:left;touch-action:manipulation}.reference-card>span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:#5f4d71;margin:0 1px 10px}.reference-card>span>span{font-size:10px;font-weight:400;color:#7560b2}.reference-card canvas{display:block;width:100%;height:auto}
.reference-instruction{font-size:10px;line-height:1.8;color:#806d8d;margin:10px 2px}.reference-inline-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:192px;overflow-y:auto;padding:2px 3px 3px 2px}
.reference-color{display:flex;align-items:center;gap:6px;min-width:0;padding:7px 5px;border:1px solid #e9e2ee;border-radius:5px;text-align:left;color:#766181;background:#fff;font-size:10px;line-height:1.4}.reference-color.selected{border-color:#b6a0da;background:#f2ecfc;color:#5f4797}.reference-color i{display:block;width:12px;height:12px;flex-shrink:0;border:1px solid rgba(54,35,70,.15);border-radius:3px}.reference-color span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scene-host{width:100%;height:650px;height:clamp(500px,55vw,760px);position:relative;overflow:hidden;border-radius:12px;touch-action:none}.scene-host canvas{display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-4px}.scene-host canvas.is-grabbing{cursor:grabbing}
.board-wrap.realistic{background:transparent;border:0;box-shadow:none;padding:0;max-width:none;margin:0}.board-wrap.realistic:before,.board-wrap.realistic:after{display:none}
.supply-labels{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;pointer-events:none}.supply-label{position:absolute;max-width:31%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transform:translate(-50%,-50%);font-size:10px;line-height:1.5;color:#685675;background:rgba(255,253,252,.92);padding:2px 5px;border-radius:4px}
.supply-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:8px 4px 0;font-size:10px;color:#85718f}.supply-jump{display:flex;align-items:center;gap:5px;min-width:0}.supply-jump select{width:145px;max-width:38vw;min-height:32px;border:1px solid #ded3e8;background:#fffafc;border-radius:6px;font-size:10px;color:#685675;padding:4px}.supply-pager{display:flex;align-items:center;gap:9px}.supply-pager button{width:32px;height:32px;border:1px solid #ded3e8;background:#fffafc;border-radius:6px;font-size:23px;line-height:1}.supply-pager button:disabled{opacity:.3}.supply-pager>span{font-size:10px;white-space:nowrap}
.stage-bottomline{display:flex;align-items:center;justify-content:space-between;margin:12px 6px 0;gap:8px}#board-hint{font-size:10px;line-height:1.7}.reference-toggle{margin:0;font-size:10px}
#reference-dialog{width:840px;max-width:calc(100vw - 28px)}.reference-zoom{display:flex;align-items:center;justify-content:center;gap:15px;margin:10px 0}.reference-zoom button{width:38px;height:34px;border:1px solid #ded3e8;border-radius:6px;background:#f8f4fc;font-size:19px}.reference-zoom>span{font-size:13px;min-width:36px;text-align:center}.reference-viewport{width:100%;max-height:60vh;overflow:auto;border:1px solid #e0d5e7;background:#fffdfc;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}#reference-preview{display:block;width:100%;height:auto;max-width:none}
.reference-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px;font-size:11px;line-height:1.6;color:#7b698a}.reference-legend span{display:flex;align-items:center;gap:5px}.reference-legend i{display:inline-block;flex-shrink:0;width:13px;height:13px;border-radius:4px;border:1px solid rgba(54,35,70,.1)}
@media(min-width:1440px){.studio-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}.table-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}.source-panel,.play-panel{padding:22px 15px}}
@media(max-width:1000px){.studio-layout{display:flex;flex-direction:column;gap:0}.studio-layout .workspace{order:0;width:100%}.studio-layout .source-panel{order:1;width:100%;margin-top:15px;margin-bottom:0}.studio-layout .play-panel{order:2;display:block;width:100%;margin-top:15px}.table-layout{grid-template-columns:minmax(0,1fr) 260px}.source-panel .template-list{grid-template-columns:repeat(4,1fr)}.play-panel .palette-list{grid-template-columns:repeat(6,1fr)}.scene-host{height:620px}}
@media(max-width:700px){.canvas-stage,.canvas-stage.is-realistic{padding:12px 6px 10px}.stage-controls{margin:0 8px 12px}.stage-topline{flex-wrap:wrap;gap:4px}.stage-caption{font-size:10px}.grid-badge{display:none}.experience-bar{gap:8px;flex-wrap:wrap}.mode-switch button{font-size:11px;padding:7px 10px}.scene-status{font-size:10px;text-align:left}.table-layout{display:flex;flex-direction:column;gap:12px}.reference-paper{order:0;position:relative;top:auto;align-self:center;width:100%;max-width:380px;padding:10px}.reference-card>span{font-size:13px}.reference-card>span>span{font-size:11px}.reference-instruction{font-size:10px;margin:7px 2px}.reference-instruction br{display:none}.reference-inline-legend{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.reference-color{font-size:9px;padding:7px 4px;gap:4px;min-height:31px}.reference-color i{width:10px;height:10px}.table-board{order:1;width:100%}.scene-host{height:calc((100vw - 42px)*1.3);min-height:410px;max-height:650px}.supply-label{font-size:9px;padding:1px 3px}.supply-controls{font-size:10px;margin:3px 5px 0;gap:4px}.supply-pager{margin-left:auto;gap:6px}.supply-pager button{width:30px;height:30px}.supply-pager>span{font-size:9px}.stage-bottomline{margin:9px 7px 0}.is-realistic #board-hint{max-width:215px;font-size:9px}.reference-toggle{font-size:9px;padding:7px}.reference-legend{grid-template-columns:repeat(2,minmax(0,1fr));font-size:10px}.source-panel .upload-area>strong{font-size:11px}.intro{margin-bottom:14px}.intro p{display:none}.workspace-bottom{flex-wrap:wrap;gap:4px}.drawing-tools{min-width:0}.tool-button{padding:8px 6px}.scene-host canvas:focus{outline-offset:-4px}}

/* The board shows the landing guide; this compact badge stays clear of it. */
.loose-reset{width:100%;min-height:32px;text-align:right;padding:5px 8px;font-size:11px;color:#7560b2;background:#faf7fd;border:1px solid #e4dbee;border-radius:6px}
.touch-assist-control{display:none;align-items:center;gap:8px;margin-top:10px;padding:9px 11px;background:#faf7fd;border:1px solid #e4dbee;border-radius:7px;color:#75618c;cursor:pointer;touch-action:manipulation}.touch-assist-control input{width:18px;height:18px;flex-shrink:0;accent-color:var(--grape);margin:0}.touch-assist-control>span{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:10px;line-height:1.7}.touch-assist-control strong{font-size:11px;font-weight:600}.touch-assist-control>span>span{color:#8b7b98}
.touch-aim-overlay{position:absolute;inset:0;z-index:4;pointer-events:none;--aim-color:#75618c}.touch-aim-overlay[data-state=ready],.touch-aim-overlay[data-state=seated]{--aim-color:#2e7652}.touch-aim-overlay[data-state=miss]{--aim-color:#9b5258}.touch-aim-badge{position:absolute;top:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 8px;max-width:calc(100% - 20px);padding:8px 11px;border:1px solid #d8cfdf;border-radius:7px;background:rgba(255,253,252,.97);color:var(--aim-color);font-size:11px;line-height:1.6;box-shadow:0 2px 5px rgba(63,38,86,.06)}.touch-aim-position{color:#685675;white-space:nowrap}.touch-aim-action{font-weight:600;white-space:nowrap}.scene-status[data-state=dropping]{color:#75618c}
@media(max-width:360px){.touch-aim-badge{gap:5px;padding:7px 8px;font-size:10px}}
@media(max-width:700px),(any-pointer:coarse){.touch-assist-control{display:flex}}
