/* ==========================================================================
   Spring — „Nachtsprung"
   Beckenrand bei Nacht: tiefes Petrol-Wasser, warmes Elfenbein,
   ein einziger warmer Lichtpunkt — der Spring!-Button.
   Fraunces (Display/Aufgaben) · Karla (UI)
   ========================================================================== */

/* ---- Fonts (selbst gehostet, offline-fähig) ------------------------------ */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fraunces-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/karla-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Karla';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/karla-italic-latin.woff2') format('woff2');
}

/* ---- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Wasser */
  --deep: #07161a;
  --pool: #0b1e23;
  --pool-2: #0e262c;
  --surface: #102b31;
  --surface-2: #143139;
  --line: rgba(242, 233, 220, 0.13);
  --line-soft: rgba(242, 233, 220, 0.07);

  /* Licht */
  --ivory: #f2e9dc;
  --ivory-dim: #a8bcb7;
  --ivory-faint: #6f8783;

  /* Das einzige Warme */
  --amber: #ffb85c;
  --amber-hi: #ffd394;
  --amber-deep: #c47a2c;
  --amber-ink: #2b1a06;
  --glow: rgba(255, 184, 92, 0.32);

  /* Nebentöne */
  --teal: #7fcfc2;
  --rose: #d98a7e;
  --green: #86c08f; /* gedämpftes Grün: erledigt/confirmed */

  /* Schwierigkeit — Wassertemperaturen */
  --diff-leicht: #8fd0c3;
  --diff-mittel: #f2d492;
  --diff-hart: #f2a97e;
  --diff-krass: #e88a8a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-ui: 'Karla', system-ui, sans-serif;

  --r-card: 20px;
  --r-pill: 999px;
  --pad: clamp(1rem, 4vw, 1.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---- Grund ----------------------------------------------------------------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ivory);
  background: var(--pool);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Wasser-Atmosphäre: Mondlicht oben, Tiefe unten, feine Wasserlinien */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 60% at 70% -10%, rgba(127, 207, 194, 0.10), transparent 60%),
    radial-gradient(90% 50% at 15% 8%, rgba(255, 184, 92, 0.05), transparent 55%),
    linear-gradient(180deg, var(--pool-2) 0%, var(--pool) 45%, var(--deep) 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: -20% 0 0 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='170' viewBox='0 0 340 170'%3E%3Cg fill='none' stroke='%23f2e9dc' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M-20 30 Q 65 18 150 30 T 360 30'/%3E%3Cpath d='M-20 88 Q 65 76 150 88 T 360 88'/%3E%3Cpath d='M-20 146 Q 65 134 150 146 T 360 146'/%3E%3C/g%3E%3C/svg%3E");
  animation: drift 26s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 340px 0; }
}

#app {
  max-width: 27rem;
  margin-inline: auto;
  padding: max(env(safe-area-inset-top), 0.75rem) var(--pad)
    calc(env(safe-area-inset-bottom) + 3rem);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--amber); color: var(--amber-ink); }

/* ---- Typo ------------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 420; margin: 0; }

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-variation-settings: 'opsz' 100;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

.muted { color: var(--ivory-dim); }
.faint { color: var(--ivory-faint); }
small, .small { font-size: 0.85rem; }

/* ---- Header ---------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.5rem 1.1rem;
}
.topbar .wordmark { font-size: 1.35rem; margin-right: auto; }

.points-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255, 184, 92, 0.09);
  border: 1px solid rgba(255, 184, 92, 0.25);
  border-radius: var(--r-pill);
  padding: 0.22rem 0.7rem;
  font-size: 0.9rem;
}
.points-chip .unit { font-size: 0.7rem; font-weight: 700; color: var(--amber-deep); }

.iconbtn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-dim);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s,
    transform 0.15s var(--ease-spring);
}
.iconbtn:focus-visible { color: var(--ivory); border-color: var(--ivory-dim); }
.iconbtn:active { transform: scale(0.94); }
.iconbtn svg { width: 1.15rem; height: 1.15rem; }
@media (hover: hover) and (pointer: fine) {
  .iconbtn:hover { color: var(--ivory); border-color: var(--ivory-dim); }
}

.partner-note {
  font-size: 0.82rem;
  color: var(--ivory-faint);
  margin: -0.6rem 0 0.8rem;
}

/* ---- Die Bühne: aktive Aufgabe ---------------------------------------------- */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(30rem, 68svh);
  padding: clamp(1.4rem, 6vw, 2.2rem) clamp(1.2rem, 5vw, 1.8rem);
  margin-bottom: 1.4rem;
  border-radius: var(--r-card);
  background:
    radial-gradient(110% 90% at 50% 115%, rgba(127, 207, 194, 0.07), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
/* Wasseroberfläche unten in der Karte */
.stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130' viewBox='0 0 260 130'%3E%3Cg fill='none' stroke='%237fcfc2' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M-20 25 Q 50 15 115 25 T 280 25'/%3E%3Cpath d='M-20 70 Q 50 60 115 70 T 280 70'/%3E%3Cpath d='M-20 115 Q 50 105 115 115 T 280 115'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, transparent, black 55%);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 55%);
  animation: drift 18s linear infinite reverse;
}

.stage-eyebrow { margin-bottom: 1rem; }

.task-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 60;
  font-size: clamp(1.7rem, 7.5vw, 2.3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
}
.task-text::before { content: '„'; color: var(--teal); }
.task-text::after { content: '“'; color: var(--teal); }

.task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.4rem, 5vh, 2.4rem);
  font-size: 0.85rem;
  color: var(--ivory-dim);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.6rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.leicht { color: var(--diff-leicht); }
.chip.mittel { color: var(--diff-mittel); }
.chip.hart   { color: var(--diff-hart); }
.chip.krass  { color: var(--diff-krass); }

/* ---- Der Spring!-Button: das einzige Warme ---------------------------------- */
.btn-spring {
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.05rem 1.4rem;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--amber-ink);
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 55%, var(--amber-deep) 130%);
  box-shadow:
    0 0 0 1px rgba(255, 211, 148, 0.55) inset,
    0 10px 32px -6px var(--glow),
    0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring);
}
/* Atmender Glow als eigener Layer: nur opacity animiert (GPU, kein Repaint). */
.btn-spring::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 14px 48px -2px rgba(255, 184, 92, 0.5);
  opacity: 0.35;
  animation: breathe 3.4s ease-in-out infinite;
}
.btn-spring:active { transform: translateY(1px) scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .btn-spring:hover { transform: translateY(-1px); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* Nach dem Sprung: gleiche Bühne, ruhigerer Primärknopf */
.btn-done {
  appearance: none;
  width: 100%;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 184, 92, 0.45);
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--amber);
  background: rgba(255, 184, 92, 0.08);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.2s, border-color 0.2s;
}
.btn-done:active { transform: scale(0.985); }
.btn-done.busy {
  cursor: progress;
  opacity: 0.85;
  font-size: 0.98rem;
  animation: pulse 1.4s ease-in-out infinite;
}
.btn-done.busy::before {
  content: '';
  display: inline-block;
  width: 0.85em; height: 0.85em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .btn-done:hover { background: rgba(255, 184, 92, 0.14); border-color: var(--amber); }
}

/* Sprung-Übergang */
.stage.plunge { animation: plunge 0.55s var(--ease-out); }
@keyframes plunge {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(10px) scale(0.99); }
  100% { transform: translateY(0) scale(1); }
}
.stage-enter { animation: rise 0.38s var(--ease-out) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.waiting {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ivory-dim);
  font-size: 0.92rem;
}
.waiting .dots { display: inline-flex; gap: 4px; }
.waiting .dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  animation: bob 1.4s ease-in-out infinite;
}
.waiting .dots i:nth-child(2) { animation-delay: 0.18s; }
.waiting .dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Leerzustand der Bühne */
.stage.empty { justify-content: center; text-align: center; min-height: 16rem; }
.stage.empty .task-text::before, .stage.empty .task-text::after { content: ''; }

/* ---- Foto: klar optional ----------------------------------------------------- */
.photo-opt {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--ivory-faint);
}
.photo-opt input[type='file'] { display: none; }
.photo-opt .photo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--ivory-dim);
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.photo-opt .photo-label svg { width: 0.95rem; height: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .photo-opt .photo-label:hover { color: var(--ivory); border-color: var(--ivory-dim); }
}
.photo-opt.picked .photo-label { color: var(--teal); border-color: rgba(127, 207, 194, 0.4); border-style: solid; }

.photo-view img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 0.6rem;
}

/* ---- Buttons allgemein -------------------------------------------------------- */
.btn {
  appearance: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease-spring);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.38; cursor: default; }

.btn.solid {
  background: var(--ivory);
  color: var(--pool);
  border-color: var(--ivory);
}

.btn.danger {
  color: var(--rose);
  border-color: rgba(217, 138, 126, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--ivory-dim); background: var(--line-soft); }
  .btn:disabled:hover { border-color: var(--line); background: transparent; }
  .btn.solid:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
  .btn.danger:hover { border-color: var(--rose); background: rgba(217, 138, 126, 0.08); }
}

/* ---- Karten & Abschnitte -------------------------------------------------------- */
.section { margin-bottom: 1.6rem; }
.section > .eyebrow { display: block; margin-bottom: 0.65rem; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.1rem 1.15rem;
}
.card + .card { margin-top: 0.7rem; }

.confirm-card .task-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.confirm-card .row-actions { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }

/* ---- Listen: meine Aufgaben, Einlösungen ------------------------------------------ */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row .pts { color: var(--ivory-faint); font-size: 0.82rem; white-space: nowrap; margin-top: 0.15em; }
.row .btn, .row .status-tag { align-self: center; }

.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 0.5em; }
.dot.open { background: transparent; border: 1.5px solid var(--ivory-faint); }
.dot.done_pending { background: var(--teal); box-shadow: 0 0 8px rgba(127, 207, 194, 0.5); }
.dot.confirmed { background: var(--green); box-shadow: 0 0 8px rgba(134, 192, 143, 0.45); }

.row.confirmed { color: var(--ivory-faint); }
.row.confirmed .grow { text-decoration: none; }

/* ---- Formulare ---------------------------------------------------------------------- */
input[type='text'], input[type='datetime-local'], input:not([type]), select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--ivory);
  background: rgba(7, 22, 26, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus-visible, select:focus-visible {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 184, 92, 0.18);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a8bcb7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
label { font-size: 0.85rem; color: var(--ivory-dim); }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.8rem; }

.radio-row { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.8rem; }
.radio-row label {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.95rem; color: var(--ivory); cursor: pointer;
}
input[type='radio'] { accent-color: var(--amber); width: 1.05rem; height: 1.05rem; }

/* ---- Belohnungen ----------------------------------------------------------------------- */
.reward-card { display: flex; align-items: center; gap: 0.9rem; }
.reward-card .grow { flex: 1; }
.reward-title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.reward-cost { color: var(--amber); font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
/* Nicht leistbar ≠ unlesbar: Titel bleibt klar, nur Preis/Aktion treten zurück. */
.reward-card.locked .reward-title { color: var(--ivory-dim); }
.reward-card.locked .reward-cost { color: var(--ivory-faint); }
.reward-hint { font-size: 0.78rem; color: var(--ivory-faint); }

.balance {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--amber);
  margin-bottom: 1.2rem;
}
.balance .unit { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ivory-dim); font-weight: 700; }

.status-tag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.status-tag.requested { color: var(--teal); }
.status-tag.fulfilled { color: var(--ivory-faint); }

/* ---- Landing / Join ------------------------------------------------------------------------ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-block: 3rem;
}
.hero .wordmark {
  font-size: clamp(3.4rem, 18vw, 4.8rem);
  font-variation-settings: 'opsz' 144;
  line-height: 1;
  margin-bottom: 0.7rem;
}
.hero .tagline {
  color: var(--ivory-dim);
  font-size: 1.02rem;
  margin: 0 auto 2.6rem;
  max-width: 17rem;
  text-wrap: balance;
}
.hero .ring {
  margin: 0 auto 2.2rem;
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.hero .ring::before, .hero .ring::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(127, 207, 194, 0.35);
  animation: ripple 3.2s var(--ease-out) infinite;
}
.hero .ring::after { animation-delay: 1.6s; }
@keyframes ripple {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(1.9); opacity: 0; }
}
.hero .ring svg { width: 34px; height: 34px; color: var(--amber); }
.hero .btn-spring { max-width: 18rem; margin-inline: auto; }
.hero form { max-width: 18rem; margin-inline: auto; width: 100%; }

/* ---- Settings ---------------------------------------------------------------------------------- */
.link-box { display: flex; gap: 0.5rem; align-items: stretch; }
.link-box input { flex: 1; font-size: 0.82rem; color: var(--ivory-dim); }

.divider { border: none; border-top: 1px solid var(--line-soft); margin: 1.4rem 0; }

/* ---- Einblendungen -------------------------------------------------------------------------------- */
.reveal > * { animation: rise 0.38s var(--ease-out) both; }
.reveal > *:nth-child(2) { animation-delay: 0.06s; }
.reveal > *:nth-child(3) { animation-delay: 0.12s; }
.reveal > *:nth-child(4) { animation-delay: 0.18s; }
.reveal > *:nth-child(5) { animation-delay: 0.24s; }
.reveal > *:nth-child(6) { animation-delay: 0.3s; }

.loading {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--ivory-faint);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ---- Set: Gruppe der drei ---------------------------------------------------------------------------- */
.set-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.set-head .eyebrow { margin: 0; }
.set-remaining {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.set-remaining.over { color: var(--ivory-faint); } /* abgelaufen: ruhig, nie rot */

.set-strip {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.9rem;
}
.set-cell {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 22, 26, 0.4);
  color: var(--ivory-dim);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s var(--ease-spring);
}
.set-cell .dot { margin-top: 0; }
.set-cell-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-cell:active { transform: scale(0.99); }
.set-cell.focus { border-color: rgba(255, 184, 92, 0.5); color: var(--ivory); background: rgba(255, 184, 92, 0.06); }
.set-cell.confirmed { color: var(--ivory-faint); cursor: default; }
.set-cell.done_pending { color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .set-cell:not(:disabled):hover { border-color: var(--ivory-dim); }
}

/* ---- Set zusammenstellen: Auswahl-Liste ------------------------------------------------------------- */
.picklist { display: flex; flex-direction: column; gap: 0.5rem; }
.pick {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--ivory);
  font-family: var(--font-ui);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s, transform 0.15s var(--ease-spring);
}
.pick:active { transform: scale(0.99); }
.pick .grow { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.pick-text { font-size: 0.98rem; line-height: 1.3; }
.pick-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ivory-dim); }
.pick-check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.pick.on { border-color: rgba(255, 184, 92, 0.55); background: rgba(255, 184, 92, 0.07); }
.pick.on .pick-check { border-color: var(--amber); background: var(--amber); }
.pick.on .pick-check::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid var(--amber-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pick[data-locked] { opacity: 0.4; }
@media (hover: hover) and (pointer: fine) {
  .pick:not([data-locked]):hover { border-color: var(--ivory-dim); }
}

.pick-count { text-align: center; margin: 0.9rem 0 0; }
.pick-count.ready { color: var(--amber); font-weight: 700; }

/* ---- Verlauf / Archiv -------------------------------------------------------------------------------- */
.archive-card { margin-bottom: 0.7rem; }
.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.archive-who {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ivory-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.archive-who::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); /* erledigt = grün */
  box-shadow: 0 0 6px rgba(134, 192, 143, 0.45);
}
.archive-who.me { color: var(--ivory); }
.archive-date { font-size: 0.78rem; color: var(--ivory-faint); white-space: nowrap; }
.archive-quote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.32;
  margin: 0 0 0.7rem;
}
.archive-foot { display: flex; align-items: center; gap: 0.6rem; }
.archive-points { color: var(--green); font-weight: 700; font-size: 0.82rem; }
.archive-mediaslot { margin-top: 0.85rem; }
.archive-media {
  width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  background: var(--deep);
}

/* ---- Reduzierte Bewegung ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
