/* v26.8.16 · 稳定生成、旋律星湾与露米飞行视觉 */

/* 首页增加柔和的舞台光和玻璃边缘，不影响正文与按钮对比度。 */
#home.cosmic-home:after{
 content:"";position:absolute;z-index:1;inset:7% 3% 5%;pointer-events:none;border-radius:54px;
 background:radial-gradient(circle at 18% 62%,rgba(241,157,211,.13),transparent 23%),radial-gradient(circle at 76% 25%,rgba(94,222,255,.12),transparent 30%);
 border:1px solid rgba(177,226,255,.08);box-shadow:inset 0 0 90px rgba(77,126,218,.06)
}
.sky-copy.cosmic-copy{filter:drop-shadow(0 14px 32px rgba(0,9,39,.2))}
.planet-place:focus-visible,.lumi-task-center button:focus-visible{
 outline:3px solid #ffe58d!important;outline-offset:3px!important
}

/* 骑扫把素材使用独立固定层飞行，避免原按钮尺寸把角色压缩成小图。 */
.lumi-home.flight-origin-hidden{opacity:0!important}
.lumi-flight-sprite{
 position:fixed;z-index:205;width:clamp(260px,31vw,440px);height:auto;pointer-events:none;
 transform-origin:50% 55%;object-fit:contain;
 filter:drop-shadow(0 20px 26px rgba(30,7,65,.5)) drop-shadow(0 0 20px rgba(255,211,105,.26))
}

/* 任务中心移离露米本体；失败占位图不再制造永久任务。 */
.lumi-task-center{
 position:absolute!important;left:auto!important;right:clamp(22px,4vw,62px)!important;bottom:26px!important;
 width:min(390px,calc(100vw - 44px))!important;grid-template-columns:34px minmax(0,1fr) auto!important;
 padding:12px 13px!important;border-color:rgba(121,224,246,.36)!important;
 background:linear-gradient(135deg,rgba(7,31,67,.94),rgba(38,26,76,.92))!important;
 box-shadow:0 18px 48px rgba(0,4,27,.38),inset 0 1px rgba(255,255,255,.08)!important
}
.lumi-task-center .task-copy{min-width:0}.lumi-task-center .task-copy b,.lumi-task-center .task-copy p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lumi-task-center .task-actions{display:grid;grid-template-columns:repeat(2,auto);gap:5px}
.lumi-task-center .task-actions .task-open{grid-row:1/3;min-width:48px;background:linear-gradient(145deg,#1f6790,#554595)!important;color:#fff!important}
.lumi-task-center .task-actions button{min-height:27px!important;padding:4px 7px!important;color:#eefaff!important;background:rgba(29,63,106,.82)!important}
.lumi-task-center .task-actions .task-close{color:#ffdfe9!important}
.lumi-task-center.collapsed{width:auto!important;grid-template-columns:28px minmax(120px,220px) auto!important}
.lumi-task-center.collapsed .task-copy small,.lumi-task-center.collapsed .task-copy p,.lumi-task-center.collapsed .task-open,.lumi-task-center.collapsed .task-close{display:none!important}
.lumi-task-center.collapsed .task-actions{display:block}.lumi-task-center.collapsed .task-collapse{min-height:34px!important}

/* 未完成的单张候选明确不可点击，同时保留文字方向供教师理解。 */
.image-unavailable{cursor:not-allowed!important;opacity:.74!important}
.image-unavailable .branch-placeholder{display:grid;place-items:center;min-height:170px;padding:20px;text-align:center;color:#e8f7ff;background:linear-gradient(145deg,rgba(65,93,139,.55),rgba(80,54,119,.62));font-weight:800}

/* 旋律星湾右侧在生成前也使用星湾配色，避免大面积纯黑。 */
.world-music .music-choice-panel{
 position:relative!important;
 background:
  radial-gradient(circle at 82% 10%,rgba(255,214,121,.18),transparent 28%),
  radial-gradient(circle at 12% 82%,rgba(91,224,211,.15),transparent 31%),
  linear-gradient(145deg,rgba(31,46,91,.94),rgba(71,45,103,.91) 52%,rgba(35,83,111,.91))!important;
 border-color:rgba(180,224,255,.28)!important;color:#f8fbff!important;
 box-shadow:0 26px 65px rgba(5,8,35,.32),inset 0 1px rgba(255,255,255,.11)!important
}
.world-music .music-choice-panel:before{content:"♫";position:absolute;right:30px;bottom:24px;color:rgba(255,228,151,.09);font:900 180px/1 Arial;pointer-events:none}
.world-music .music-choice-panel .idea-gallery-head,.world-music .music-choice-panel .music-selected-strip,.world-music .music-choice-panel .primary-action{position:relative;z-index:1}
.world-music .music-choice-panel .idea-gallery-head b{color:#fff6d8!important}
.world-music .music-choice-panel .idea-gallery-head small{color:#c9d8f2!important}
.world-music .music-choice-panel .music-empty,.world-music .music-choice-panel .music-card-loading{
 position:relative;z-index:1;border-color:rgba(175,226,255,.28)!important;
 background:linear-gradient(120deg,rgba(90,132,181,.2),rgba(230,148,203,.14),rgba(98,202,197,.18))!important;
 color:#e6f4ff!important
}
.world-music .music-choice-panel .music-selected-strip{background:rgba(245,228,255,.1)!important;border:1px solid rgba(213,192,255,.17)!important}
.world-music .music-choice-panel .music-selected-strip>b{color:#f8e9ff!important}
.world-music .music-choice-panel .music-selected-strip span{background:rgba(255,255,255,.12)!important;color:#eef7ff!important}

@media(max-width:780px){
 .lumi-task-center{position:fixed!important;left:14px!important;right:14px!important;bottom:14px!important;width:auto!important}
 .lumi-flight-sprite{width:min(72vw,360px)}
}
@media(prefers-reduced-motion:reduce){
 .lumi-flight-sprite{filter:drop-shadow(0 10px 16px rgba(30,7,65,.35))}
}
