/* Short feedback shares the existing cream, sea-green and brass palette.
   Particles live above the UI but never receive input or affect layout. */
.polish-feedback-layer {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:60;
}
.polish-fx {
  position:absolute;
  display:block;
  margin:0;
  padding:0;
  pointer-events:none;
  transform-origin:center;
  opacity:0;
}
.polish-ring {
  border:2px solid var(--fx-color,#ebc96d);
  border-radius:13px;
  box-shadow:0 0 0 2px #fff7d934;
}
.polish-spark {
  background:var(--fx-color,#ffdc76);
  clip-path:polygon(50% 0,62% 35%,100% 50%,64% 64%,50% 100%,36% 64%,0 50%,36% 36%);
}
.polish-wake {
  border:1px solid var(--fx-color,#e0fff5);
  border-top-color:transparent;
  border-radius:50%;
  background:#f4fff420;
}
.polish-confetti { background:var(--fx-color,#e8bb4e); border-radius:1px; }
.polish-soot { background:var(--fx-color,#594334); border-radius:50%; }
.polish-ember { background:var(--fx-color,#e6a14c); border-radius:2px; }
.polish-reset-icon { display:grid; place-items:center; color:#285e6b; }
.polish-reset-icon>.icon { width:24px; height:24px; }
.polish-wallet-delta,.polish-moves-gain {
  min-width:43px;
  max-width:180px;
  padding:3px 8px;
  border:1px solid #d3bd84;
  border-radius:9px;
  background:var(--paper,#fff7e7) var(--paper-texture) center/420px auto;
  color:var(--fx-color,#267f70);
  font:400 13px/16px 'Bree Serif',Georgia,serif;
  font-variant-numeric:tabular-nums;
  text-align:center;
  white-space:nowrap;
  box-shadow:0 2px 3px #315b6926;
}
.polish-moves-gain { min-width:34px; height:26px; padding:3px 6px; font-size:16px; line-height:18px; }

/* Loading is the only continuous chrome motion here; its owner is the actual
   pending screen. Scene/tab content has no entry fade or global transition. */
.asset-screen .loading-compass {
  animation:polish-loading-turn 3.4s linear infinite;
  transform-origin:center;
}
@keyframes polish-loading-turn { to { transform:rotate(360deg); } }
.motion-paused .loading-compass { animation-play-state:paused!important; }

/* Audio controls extend the same dialog instead of a second settings system. */
.audio-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; margin:16px 0; }
.audio-toggle {
  appearance:none;
  min-height:48px;
  min-width:0;
  width:100%;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  color:var(--ink,#163d57);
  background:var(--paper,#fff7e7) var(--paper-texture) center/420px auto;
  border:1px solid #cbb989;
  border-radius:12px;
  font:inherit;
  font-size:15px;
  line-height:1.2;
}
.audio-toggle>span { display:flex; align-items:center; gap:8px; }
.audio-toggle .icon { width:20px; height:20px; flex:none; }
.audio-toggle strong,.audio-current-value {
  min-width:43px;
  padding:4px 7px;
  border-radius:8px;
  color:#6c7772;
  background:#e9e8db;
  font-size:12px;
  text-align:center;
}
.audio-toggle[aria-pressed="true"] strong,.audio-toggle[aria-pressed="true"] .audio-current-value { color:#fff6dd; background:#1b8490; }
.audio-toggle.tool {
  padding:4px 8px;
  border:solid transparent;
  border-width:9px 11px;
  border-image:var(--ui-secondary) 17 24 fill / 9px 11px / 0 stretch;
  background:transparent;
  color:var(--ink,#163d57);
  justify-content:space-between;
  font-size:15px;
}
.audio-toggle.tool.primary { border-image-source:var(--ui-primary); color:#fff8da; text-shadow:0 1px 1px #155a66; }
.audio-toggle.tool.primary strong { color:#1a6270; background:#fff2ca; text-shadow:none; }
.audio-toggle.tool>span { flex:1; text-align:left; white-space:normal; }
.audio-toggle.tool>strong { flex:none; }
.audio-settings-button { flex:none; }
.home-header .audio-settings-button { width:36px; height:36px; padding:7px; }
.audio-controls+.dialog-actions { margin-top:9px; }
.dialog-actions .audio-settings-button { grid-column:1/-1; font-size:13px; }
.audio-settings .dialog-actions>.tool,
.dialog-actions>.tool[data-action="settings"] { grid-column:1/-1; }
@media(prefers-reduced-motion:reduce) {
  .polish-feedback-layer { display:none; }
  .asset-screen .loading-compass { animation:none!important; }
}
