/* ION.ADS Demos · gemeinsames Aussehen (Deep-Signal-Akzent #8447f0). Mobil zuerst. */
:root {
  --accent: #8447f0;
  --text: #f0eaf8;
  --bg1: #1a1530;
  --bg2: #06080d;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 90% at 50% 30%, var(--bg1) 0%, var(--bg2) 70%);
  touch-action: none;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.demo-top {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  max-width: min(440px, calc(100% - 32px));
  pointer-events: none;
}
.demo-brand { letter-spacing: 0.3em; font-size: 0.7rem; opacity: 0.6; }
.demo-top h1 { margin: 6px 0 6px; font-weight: 300; font-size: clamp(1.4rem, 3vw, 2rem); }
.demo-top p { margin: 0; line-height: 1.55; opacity: 0.8; font-size: 0.92rem; }

.demo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}
.demo-btn, .demo-chip, .demo-input {
  font: inherit;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 10, 18, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.demo-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-input { cursor: text; min-width: 0; width: min(260px, 60vw); }
.demo-input:focus, .demo-btn:focus-visible, .demo-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.demo-note { font-size: 0.78rem; opacity: 0.75; padding: 6px 10px; }
.demo-swatches { display: inline-flex; gap: 6px; align-items: center; }
.demo-swatches button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5); cursor: pointer; padding: 0;
}
.demo-swatches button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }

.demo-hint {
  position: fixed;
  right: 16px;
  top: max(16px, env(safe-area-inset-top));
  font-size: 0.75rem;
  opacity: 0.55;
  max-width: 220px;
  text-align: right;
}
.demo-status {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(8, 10, 18, 0.72);
  font-size: 0.9rem;
}
.demo-status[hidden] { display: none; }
.demo-drop {
  position: fixed;
  inset: 12px;
  border: 2px dashed var(--accent);
  border-radius: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(132, 71, 240, 0.12);
  pointer-events: none;
}
.demo-drop.on { display: flex; }
@media (max-width: 640px) {
  .demo-hint { display: none; }
  .demo-top p { display: none; }
}
