/* ============================================================
   ideas.css — Ideenwerkstatt (js/screens/ideas.js)

   .iw-*  = Bildschirm: Karten, Abstimmung, Ergebnis, Kommentare
   .iwd-* = Vorführungen (js/lib/idea-demos.js)
   .d5-ideas = Einstiegskarte am Homescreen (dashboard2.js)
   ============================================================ */

/* ---------------- Einstiegskarte am Homescreen ---------------- */
.d5-ideas {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  /* .d5-spot bringt nur seinen eigenen Abstand nach oben mit –
     ohne eigene Marge klebte diese Karte direkt darunter. */
  margin-top: 12px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  text-align: left;
}
.d5-ideas .di-ic {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--fando);
  color: #fff;
}
.d5-ideas .di-new {
  flex: none;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: #fff;
  background: var(--fando);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* ---------------- Kopf des Bildschirms ---------------- */
.iw-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--fando);
  color: #fff;
  margin-bottom: var(--sp-5);
}
.iw-hero-ic {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.iw-hero .caption { color: rgba(255, 255, 255, 0.85); }
.iw-hero b { font-size: var(--fs-lg); }
.iw-hero .iw-track { margin-top: 7px; background: rgba(255, 255, 255, 0.25); }
.iw-hero .iw-track span { background: #fff; }

.iw-track {
  display: block;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--stone-200);
  overflow: hidden;
}
.iw-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fando);
  transition: width var(--dur-4) var(--ease-standard);
}

/* ---------------- Ideen-Karten ---------------- */
.iw-grid { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.iw-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  padding: var(--sp-3) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-1) ease, box-shadow var(--dur-2) ease;
}
.iw-card:active { transform: scale(0.985); }
.iw-card.voted { background: var(--surface-2); }

.iw-card-ic {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--fando);
  color: #fff;
}
.iw-card.voted .iw-card-ic { background: var(--stone-100); color: var(--text-muted); }

.iw-card-name { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.iw-card-name b { font-size: var(--fs-md); }
.iw-card p {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Punkt „hier fehlt noch deine Stimme“ */
.iw-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fando);
}

/* eigene Stimme als kleiner Chip auf der Karte */
.iw-myvote {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.iw-myvote .icon-sm { width: 12px; height: 12px; }
.iw-myvote.v-must { background: var(--fando); color: #fff; }
.iw-myvote.v-nice { background: var(--fando-700); color: #fff; }
.iw-myvote.v-meh { background: var(--stone-100); color: var(--text-muted); }
.iw-myvote.v-skip { background: var(--warning-tint); color: var(--warning); }
.iw-myvote.v-never { background: var(--danger-tint); color: var(--danger); }

/* ---------------- Detail-Sheet ---------------- */
.iw-sheet { padding-bottom: var(--sp-2); }
.iw-sheet-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.iw-sheet-head .iw-card-ic { width: 52px; height: 52px; }
.iw-sheet-head h2 { font-size: var(--fs-xl); line-height: var(--lh-tight); margin: 0; }

.iw-pitch {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--fando-700);
  margin: 0 0 var(--sp-3);
}
/* App-Vorschau: die Vorführung liegt wie ein Stück echter App-Bildschirm
   randlos auf dem App-Hintergrund – kein Kasten, kein Etikett. Die Ränder
   heben sie vom Sheet ab, die Breite läuft bis an die Sheet-Kante
   (das Sheet polstert mit --sp-5, siehe components.css). */
.iw-prev {
  margin: var(--sp-2) calc(-1 * var(--sp-5)) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-5);
}
.iw-prev-demo { display: flex; flex-direction: column; gap: var(--sp-3); }
.iw-prev-cap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: var(--sp-2) 0 var(--sp-5);
}
.iw-prev-cap .icon-sm { flex: none; margin-top: 1px; color: var(--fando-700); }

/* „So funktioniert’s“: kurze Punkte statt Absatz-Wand */
.iw-points { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.iw-point { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-sm); line-height: var(--lh-normal); }
.iw-point .ip-ic {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fando);
  color: #fff;
  margin-top: 2px;
}
.iw-point .ip-ic .icon-sm { width: 11px; height: 11px; }

/* ---------------- Abstimmung ---------------- */
.iw-vote-grid { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.iw-vote {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  text-align: left;
  padding: 11px var(--sp-3);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
  transition: transform var(--dur-1) ease, border-color var(--dur-2) ease, background var(--dur-2) ease;
}
.iw-vote:active { transform: scale(0.98); }
.iw-vote .iv-ic {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--stone-100);
  color: var(--text-muted);
}
.iw-vote .iv-count { margin-left: auto; font-size: var(--fs-xs); color: var(--text-subtle); }

.iw-vote.v-must .iv-ic { background: var(--fando); color: #fff; }
.iw-vote.v-never .iv-ic { background: var(--danger-tint); color: var(--danger); }

/* Gewählt = satte Fläche, weißer Inhalt (kein Hellgrün). */
.iw-vote.on { border-color: var(--fando); background: var(--fando); color: #fff; }
.iw-vote.on .iv-ic { background: rgba(255, 255, 255, 0.2); color: #fff; }
.iw-vote.on .iv-count { color: rgba(255, 255, 255, 0.9); }
.iw-vote.on.v-meh { border-color: var(--stone-500); background: var(--stone-500); }
.iw-vote.on.v-skip { border-color: var(--warning); background: var(--warning); }
.iw-vote.on.v-never { border-color: var(--danger); background: var(--danger); }

/* ---------------- Ergebnis ---------------- */
.iw-results { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.iw-res { display: grid; grid-template-columns: 92px 1fr 26px; align-items: center; gap: var(--sp-2); }
.iw-res .r-label { font-size: var(--fs-2xs); font-weight: var(--fw-semibold); color: var(--text-muted); text-align: right; }
.iw-res.mine .r-label { color: var(--fando-700); }
.iw-res .r-bar { height: 14px; border-radius: var(--r-pill); background: var(--stone-100); overflow: hidden; }
.iw-res .r-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  background: var(--stone-400);
  transition: width var(--dur-4) var(--ease-standard);
}
.iw-res.v-must .r-bar span { background: var(--fando); }
.iw-res.v-nice .r-bar span { background: var(--fando-700); }
.iw-res.v-meh .r-bar span { background: var(--stone-400); }
.iw-res.v-skip .r-bar span { background: var(--warning); }
.iw-res.v-never .r-bar span { background: var(--danger); }
.iw-res .r-n { font-size: var(--fs-xs); color: var(--text-muted); text-align: right; }

.iw-res-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--stone-100);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin-bottom: var(--sp-4);
}

/* ---------------- Kommentare ---------------- */
.iw-comments { display: flex; flex-direction: column; gap: var(--sp-3); }
.iw-com { display: flex; gap: var(--sp-2); align-items: flex-start; }
.iw-com .avatar { width: 30px; height: 30px; font-size: var(--fs-2xs); flex: none; }
.iw-com-body {
  flex: 1;
  min-width: 0;
  background: var(--stone-100);
  border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
  padding: 7px 10px;
}
.iw-com-body .head { display: flex; align-items: baseline; gap: var(--sp-2); }
.iw-com-body .head b { font-size: var(--fs-xs); }
.iw-com-body p { margin: 2px 0 0; font-size: var(--fs-sm); line-height: var(--lh-snug); overflow-wrap: anywhere; }
.iw-com-del { flex: none; align-self: center; color: var(--text-subtle); padding: 6px; border-radius: var(--r-sm); }
.iw-com-del:active { background: var(--stone-100); }

.iw-com-form { display: flex; gap: var(--sp-2); align-items: flex-end; margin-top: var(--sp-1); }
.iw-com-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  resize: none;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-sm);
  background: var(--surface);
  color: var(--text);
}
.iw-com-form textarea:focus { outline: none; border-color: var(--fando); }
.iw-com-send {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--fando);
  color: #fff;
}
.iw-com-send:disabled { background: var(--stone-200); color: var(--stone-500); }
.iw-com-count { font-size: var(--fs-2xs); color: var(--text-subtle); text-align: right; margin-top: 4px; }
.iw-com-count.over { color: var(--danger); font-weight: var(--fw-semibold); }

/* ---------------- Eure Ideen (aus dem Verein) ---------------- */
.iw-usubmit {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3);
  background: var(--surface);
  border: 1.5px dashed var(--fando);
  border-radius: var(--r-lg);
  color: inherit;
  font: inherit;
}
.iw-usubmit-ic {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--fando);
  color: #fff;
}
.iw-usubmit > .icon-sm { color: var(--text-subtle); flex: none; }

.iw-ucard .avatar { flex: none; }

/* Idee löschen (Einreicher oder Admin) – wie beim Kommentar */
.iw-udel {
  flex: none;
  align-self: flex-start;
  color: var(--text-subtle);
  padding: 8px;
  border-radius: var(--r-sm);
}
.iw-udel:active { background: var(--stone-100); color: var(--danger); }

.iw-utext { margin: 0 0 var(--sp-4); font-size: var(--fs-sm); line-height: var(--lh-normal); overflow-wrap: anywhere; }

.iw-uform { display: flex; flex-direction: column; gap: var(--sp-3); }
.iw-uform textarea { resize: none; }
.iw-uform .iw-com-count { margin-top: -6px; }

/* ============================================================
   Vorführungen (.iwd-*) — nur noch Kleber.
   Die Vorschauen bestehen aus ECHTEN App-Klassen (d4-live, d4-act,
   d5-spot, request-card, st-card, ach-tile, chip, badge …); hier
   steht nur, was die App noch nicht hat: der Mini-Scorer, der
   Turnierbaum, die Wochenleiste – plus Kleinkram wie Palmen-Chip.
   ============================================================ */

/* Die Vorschau liegt auf App-Hintergrund; die Startbildschirm-Karten
   bringen teils eigene Abstände mit, die hier nicht gelten sollen. */
/* Countdown-Pillen dürfen im engen Sheet nie gequetscht werden oder umbrechen. */
.iw-prev .countdown-pill { flex: none; white-space: nowrap; }
/* Icon-Plättchen in der Vorschau satt in Fando statt im hellen Ton. */
.iw-prev .d5-spot .sic.green { background: var(--fando); color: #fff; }
.iw-prev .activity-dot.green { background: var(--fando); color: #fff; }
.iw-prev-demo .d4-act { padding: 9px 2px; }
.iw-prev-demo .presence-faces { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; }
.iw-prev-demo .presence-faces .avatar + .avatar { margin-left: -9px; }
.iw-prev-demo .st-card { box-shadow: var(--shadow-xs); }
.iw-prev-demo .st-bar-row + .st-bar-row { margin-top: 8px; }
.iwd-feed { display: flex; flex-direction: column; }
.iwd-feed .d4-act { cursor: default; }

/* Quoten-Balken-Zeilen sind hier antippbar */
.iwd-strow { width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; border-radius: var(--r-sm); }
.iwd-strow.open .st-bar-k { color: var(--text); font-weight: var(--fw-bold); }
.iwd-table-detail { margin-top: 10px; display: flex; align-items: center; gap: 5px; }
.iwd-table-detail .icon-sm { color: var(--fando-700); flex: none; }

.iwd-head { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text); }
.iwd-head .icon-sm { color: var(--fando-700); flex: none; }

/* Empfänger wählen (Palmen verschenken) */
.iwd-facerow { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.iwd-pickface {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
}
.iwd-pickface.on { border-color: var(--fando); background: var(--fando); }
.iwd-pickface.on .caption { color: #fff; }
.iwd-pickface.on .avatar { box-shadow: 0 0 0 2px #fff; }

/* Palmen-Plakette „+N“ */
.iwd-palms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  background: var(--fando);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.iwd-palm-ic { width: 12px; height: 14px; }

.iwd-track { display: block; height: 6px; border-radius: var(--r-pill); background: var(--stone-200); overflow: hidden; margin-top: 5px; }
.iwd-track span { display: block; height: 100%; background: var(--fando); border-radius: inherit; transition: width var(--dur-3) var(--ease-standard); }

.iwd-btnrow { display: flex; gap: var(--sp-2); align-items: center; }
.iwd-btnrow.center { justify-content: center; }

.iwd-done, .iwd-lost {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  background: var(--fando);
  color: #fff;
  flex-wrap: wrap;
}
.iwd-done .iwd-palms { background: #fff; color: var(--fando-700); }
.iwd-lost { background: var(--stone-100); color: var(--text-muted); }

/* kurzes Aufblitzen bei Änderungen */
.pop { animation: iwd-pop var(--dur-3) var(--ease-spring); }
@keyframes iwd-pop {
  0% { transform: scale(0.92); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Ausgeloste Paarungen erscheinen nacheinander */
.iwd-deal { animation: iwd-pop var(--dur-3) var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* König des Tisches */
.iwd-queue { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

/* Turnierbaum (gibt es in der App noch nicht) */
.iwd-bracket { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr; gap: var(--sp-2); align-items: center; }
.iwd-round { display: flex; flex-direction: column; gap: var(--sp-2); }
.iwd-tie {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.iwd-tie span { font-size: var(--fs-2xs); color: var(--text-muted); line-height: 1.4; }
.iwd-tie span.won { color: var(--fando-700); font-weight: var(--fw-bold); }
.iwd-champ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  text-align: center;
}
.iwd-champ.crowned { background: var(--fando); color: #fff; border-color: var(--fando); animation: iwd-pop var(--dur-4) var(--ease-spring); }
.iwd-champ-note { font-style: normal; font-size: 9px; font-weight: var(--fw-semibold); color: rgba(255, 255, 255, 0.88); }

/* Wochen-Aufgaben */
.iwd-quest {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
}
.iwd-quest.done { border-color: var(--fando); background: var(--fando); color: #fff; }
.iwd-quest.done .caption, .iwd-quest.done .small { color: #fff; }
.iwd-quest.done .iwd-track { background: rgba(255, 255, 255, 0.3); }
.iwd-quest.done .iwd-track span { background: #fff; }
.iwd-quest.done .iwd-palms { background: #fff; color: var(--fando-700); }
.iwd-quest.done .activity-dot { background: rgba(255, 255, 255, 0.2); color: #fff; }
.iwd-plus {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1.5px dashed var(--stone-300);
  color: var(--text-muted);
}
.iwd-plus:active { background: var(--stone-100); }

/* ---------------- Mini-Scorer (echte Scorer-Optik) ----------------
   Dunkles Brett wie im Vollbild-Scorer: ink-Flächen, riesige Zahlen,
   Race-Punkte, Break-Chip – nur eben klein und im Sheet. */
.iwd-board {
  background: var(--ink-900);
  color: var(--offwhite, #f4f4f2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: opacity var(--dur-2) ease;
}
.iwd-btop {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px 12px 7px;
  font-size: var(--fs-2xs);
}
.iwd-bmode { font-weight: var(--fw-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.iwd-btimer, .iwd-bwatch { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, 0.8); }
.iwd-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.iwd-bside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px 14px;
  background: var(--ink-800);
}
.iwd-bplayer { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.iwd-bplayer .avatar { --sz: 24px; font-size: 9px; }
.iwd-bbreak {
  font-size: 9px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.iwd-bscore {
  font-size: 46px;
  font-weight: var(--fw-black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.iwd-bdots { display: flex; gap: 5px; }
.iwd-bdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.iwd-bdots i.on { background: var(--fando); }
.iwd-bnote {
  padding: 8px 12px;
  font-size: var(--fs-xs);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.iwd-board.paused .iwd-bgrid { opacity: 0.45; }
.iwd-board.paused .iwd-bnote { color: var(--gold, #c8a24a); }

/* Einsatz / Schenken */
.iwd-stake { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.iwd-stake.slim { gap: var(--sp-3); }
.iwd-stake-mid { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.iwd-stake-mid b { font-size: var(--fs-2xl); }
.iwd-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
}
.iwd-step:disabled { opacity: 0.35; }
.iwd-step:not(:disabled):active { background: var(--stone-100); }
.iwd-pot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-sm); background: var(--stone-100); border-radius: var(--r-md); padding: var(--sp-2); margin-top: 10px; }

.iwd-giftcard { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: linear-gradient(150deg, var(--fando) 0%, var(--fando-700) 100%); border-radius: var(--r-md); padding: var(--sp-4); color: #fff; }
.iwd-giftcard .caption { color: rgba(255, 255, 255, 0.85); }
.iwd-gift-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Tippspiel */
.iwd-mytip { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); background: var(--fando); border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); color: #fff; flex-wrap: wrap; }
.iwd-mytip .caption { color: rgba(255, 255, 255, 0.85); }
.iwd-tipbar { height: 10px; border-radius: var(--r-pill); background: var(--stone-200); overflow: hidden; }
.iwd-tipbar span { display: block; height: 100%; background: var(--fando); border-radius: inherit; transition: width var(--dur-3) var(--ease-standard); }

/* Rückblick: Story-Karte im Hero-Look der App (Shop/Spielende) */
.iwd-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  text-align: center;
  background: linear-gradient(150deg, var(--fando) 0%, var(--fando-700) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
}
.iwd-wm { position: absolute; right: -18px; top: -20px; width: 120px; height: 138px; opacity: 0.14; pointer-events: none; }
.iwd-story .caption { color: rgba(255, 255, 255, 0.8); }
.iwd-story-dots { display: flex; gap: 4px; width: 100%; margin-bottom: var(--sp-2); }
.iwd-story-dots i { flex: 1; height: 3px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.3); }
.iwd-story-dots i.on { background: #fff; }
.iwd-story-ic { color: #fff; position: relative; }
.iwd-story-big { font-size: var(--fs-3xl); line-height: 1.05; position: relative; }
.iwd-story-big.word { font-size: var(--fs-2xl); }
.iwd-story-txt { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.9); max-width: 30ch; position: relative; }

/* Saison-Abzeichen: laufende Aufgabe + Sammel-Kacheln */
.iwd-season { display: flex; gap: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.iwd-season-medal { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--fando) 0%, var(--fando-700) 100%); color: #fff; }
.iwd-pastrow { display: flex; gap: var(--sp-2); }
.iwd-pastrow .ach-tile { flex: 1; }

/* Feed-Reaktionen: Daumen am Zeilenende */
.iwd-thumb {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  transition: transform var(--dur-1) ease, background var(--dur-2) ease;
}
.iwd-thumb:active { transform: scale(0.92); }
.iwd-thumb.on { background: var(--fando); border-color: var(--fando); color: #fff; }

/* Steckbrief */
.iwd-form { display: flex; flex-direction: column; gap: var(--sp-2); }
.iwd-field { display: flex; flex-direction: column; gap: 3px; }
.iwd-field input, .iwd-field select, .iwd-field textarea {
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--fs-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.iwd-field input:focus, .iwd-field select:focus, .iwd-field textarea:focus { outline: none; border-color: var(--fando); }
.iwd-profilecard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.iwd-profile-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.iwd-tag { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); background: var(--stone-100); color: var(--text-muted); border-radius: var(--r-pill); padding: 4px 10px; }
.iwd-tag.quote { background: var(--fando); color: #fff; font-style: italic; }

/* Wochen-Planung */
.iwd-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.iwd-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) 2px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  min-height: 62px;
}
.iwd-day.on { border-color: var(--fando); background: var(--fando); }
.iwd-day.on .caption, .iwd-day.on b { color: #fff; }
.iwd-day b { font-size: var(--fs-2xs); color: var(--text-muted); min-height: 12px; }
.iwd-day-dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; min-height: 10px; }
.iwd-day-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--fando); }
.iwd-day.on .iwd-day-dots i { background: rgba(255, 255, 255, 0.6); }
.iwd-day.on .iwd-day-dots i:last-child { background: #fff; }

/* reduzierte Bewegung: Vorführungen bleiben ruhig */
@media (prefers-reduced-motion: reduce) {
  .pop, .iwd-deal, .iwd-champ.crowned { animation: none; }
  .d4-pulse::after { animation: none; }
}
