/* ============================================================
   place（入罩）— 落盘动画屏，移植自 LUMEN scan-particle-arrival-v08
   全屏铺满，作用域 .place-cocoon
   ============================================================ */

.screen.place-cocoon {
  display: block;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 47%, #15241f 0, #08100e 58%, #040908 100%);
}
.place-cocoon canvas {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  touch-action: none; outline: none;
}
.place-cocoon #place-light { display: none }
.place-cocoon #place-forest { opacity: .30; pointer-events: none }
.place-cocoon #place-scene { z-index: 1 }

/* 覆盖层（标题 / 底部按钮） */
.place-cocoon .place-overlay {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
/* 标题区：place 屏与 capture 屏共用同一份声明，保证位置/字体/字距/颜色完全一致 */
.place-cocoon .place-head,
[data-screen="capture"] .capture-head,
[data-screen="release"] .release-head,
[data-screen="scanning"] .scan-head,
[data-screen="model"] .model-head { position: absolute; top: 7.3%; left: 8%; max-width: 60% }
.place-cocoon .eyebrow,
[data-screen="capture"] .capture-head .eyebrow,
[data-screen="release"] .release-head .eyebrow,
[data-screen="scanning"] .scan-head .eyebrow,
[data-screen="model"] .model-head .eyebrow {
  font: 11px Menlo, monospace; letter-spacing: 2.6px; color: #a9beb0;
}
.place-cocoon .place-title,
[data-screen="capture"] .capture-title,
[data-screen="release"] .release-title,
[data-screen="scanning"] .scan-title,
[data-screen="model"] .model-title {
  font-weight: 400; font-size: clamp(20px, 3.2vw, 30px);
  letter-spacing: .12em; margin: 14px 0 8px; color: #eef3ed;
}
.place-cocoon .place-sub {
  font-size: clamp(11px, 1.1vw, 13px); color: #8a9e92; margin: 0;
}

.place-cocoon .place-foot {
  position: absolute; left: 8%; right: 8%; bottom: 7%;
  pointer-events: auto;
}
.place-cocoon .place-phase-row {
  display: flex; align-items: center; gap: 8px;
  font: 12px Menlo, "PingFang SC", monospace; color: #aac3b3;
  margin-bottom: 18px;
}
.place-cocoon .signal {
  width: 6px; height: 6px; border-radius: 50%;
  background: #a9d5bc; box-shadow: 0 0 7px #a9d5bc80;
  animation: placePulse 1.8s ease-in-out infinite;
}
@keyframes placePulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

.place-cocoon #place-done {
  display: flex; align-items: center; justify-content: center;
  /* 与 01 开始屏、03 采集屏同一档主操作键：白实心 + 胶囊圆角 + 黑字 */
  width: 100%; max-width: 440px; margin: 0 auto;
  border: 1px solid transparent; border-radius: 999px;
  background: #ffffff; color: #0b0f0d;
  height: var(--btn-h); padding: 0 32px; line-height: 1;
  font-family: inherit; font-weight: 600;
  font-size: calc(var(--btn-fs) * 1.3); letter-spacing: .14em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background .28s, color .28s, opacity .28s, border-color .28s, box-shadow .28s,
              transform .28s cubic-bezier(.2, .7, .3, 1);
}
.place-cocoon #place-done:hover,
.place-cocoon #place-done:focus-visible {
  outline: none; background: #eef2ef;
  box-shadow: 0 6px 26px #ffffff2e; transform: translateY(-1px);
}
/* 按下态：跟未选中/禁用时同一个观感 —— 整体压到 30% 不透明度 */
.place-cocoon #place-done:active,
.place-cocoon #place-done.is-pressed {
  transform: scale(.93) translateY(2px);
  opacity: .3;
}

/* 入罩屏隐藏全局 HUD，保持画面纯净 */
#app[data-screen="place"] .hud {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s;
}

/* 桌面横屏：观察罩三层画布整体转 90°（文字与按钮保持正向） */
@media (orientation: landscape) and (min-width: 900px) {
  .place-cocoon canvas {
    top: 0; left: 0; right: auto; bottom: auto;
    width: 100vh;
    height: 100vw;
    transform-origin: 0 0;
    transform: translateX(100vw) rotate(90deg);
  }
}
