/* 20261115-quiet1 · 庭院动态字幕：浅色庭院上改为深字 + 极淡雾面，收窄到左下角，降低喧闹感 */
.scene-ticker{
  position:absolute;left:14px;bottom:146px;width:min(208px,calc(100% - 200px));
  height:104px;overflow:hidden;pointer-events:none;z-index:3;
  mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 8px),transparent);
  -webkit-mask-image:linear-gradient(transparent,#000 18px,#000 calc(100% - 8px),transparent);
}
.garden.is-immersive .scene-ticker{bottom:176px}
.ticker-track{width:100%;will-change:transform;animation:tickerFloat 20s linear infinite}
.ticker-group{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:6px;padding:0 0 12px;box-sizing:border-box}
.ticker-message{
  flex:none;max-width:100%;box-sizing:border-box;padding:2px 7px;border-radius:5px;
  background:rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  color:#1E2C22;
  font:500 12.5px/1.45 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  text-shadow:0 0 4px rgba(255,255,255,.85);overflow-wrap:anywhere;
}
.ticker-name{font-weight:600;color:#82492A}
body:has(dialog[open]) .scene-ticker{opacity:.3}
@keyframes tickerFloat{from{transform:translateY(0)}to{transform:translateY(calc(-1 * var(--ticker-distance,192px)))}}

@media(min-width:701px){
  .scene-ticker{left:24px;bottom:170px;width:min(286px,40vw);height:120px}
  .garden.is-immersive .scene-ticker{bottom:196px}
  .ticker-message{font-size:13px;padding:3px 8px}
}

@media(max-width:700px){
  .scene-ticker{left:12px;width:min(206px,calc(100% - 198px));height:104px}
  .garden.is-immersive .scene-ticker{bottom:calc(146px + env(safe-area-inset-bottom));height:108px;max-height:16dvh;width:min(208px,calc(100% - 200px))}
  .garden:has(.camera-controls.wall-controls) .scene-ticker{height:88px;max-height:13dvh;opacity:.8}
  .ticker-message{font-size:12.5px;line-height:1.45}
}

@media(max-height:500px){.scene-ticker{height:86px}.garden.is-immersive .scene-ticker{bottom:150px}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}}

/* Dark ink-green bubbles remain readable over the daylight courtyard. */
.ticker-track .ticker-message{background:rgba(25,51,43,.82);color:#fff;text-shadow:0 1px 2px #10271e55}
.ticker-track .ticker-name{color:#d7eddf}

@media (min-width: 701px) {
  body:has(dialog[open]) .scene-ticker { opacity: 1; }
  .ticker-track .ticker-message {
    background: #19332bee;
    color: white;
    font-size: 15px;
    font-weight: 600;
  }
  #wish-dialog #save-wish {
    background: #315745;
    color: white;
    border: 1px solid #315745;
    font-weight: 700;
    margin-top: 14px;
  }
  #wish-dialog #save-wish:hover { background: #284b3c; }

}
