/* Täglich-Bereich der Startseite (app/login-streak.js, app/quests.js, app/daily-fx.js):
   die Tagesgabe als Weg aus sieben Knoten und drei Tagesquests als Karten mit
   Fortschrittsring. Ersetzt die Grimoire-Kacheln aus main-09. Farbsprache: Gold =
   Weg und Abholen, Teal = erledigt (Siegel), Amethyst = Seelen, Rosé = EXP,
   Rubin = Relikt. Dauer-Animationen haengen an der Wanduhr (--mp-t). */

.loginStreakSection,
.dailyQuestSection {
  grid-column: 1 / -1;
  margin: 0 -64px;
  padding: 0 var(--home-gutter, 64px);
  background: rgba(7, 8, 11, .9);
}
.loginStreakSection { padding-top: 4px; padding-bottom: 16px; }
.dailyQuestSection { padding-bottom: 56px; }
.loginStreakPanel,
.dailyQuestPanel { position: relative; }

/* ── Rahmen wie die Spielwege: dunkle Tafel, goldene Haarlinie, zwei Eckwinkel ── */
.dailyGift,
.dq-card {
  position: relative;
  border: 1px solid rgba(216, 177, 90, .16);
  background: linear-gradient(180deg, rgba(20, 23, 31, .72), rgba(11, 13, 18, .9));
}
.dailyGift::before,
.dailyGift::after,
.dq-card::before,
.dq-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--mp-gold-3);
  transition: border-color .25s ease;
  pointer-events: none;
}
.dailyGift::before,
.dq-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.dailyGift::after,
.dq-card::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* ── Tagesgabe: Kopf ── */
.dailyGift { padding: 26px 32px 26px; }
.dg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.dg-title { display: grid; gap: 8px; }
.dg-kicker,
.dq-kicker {
  color: var(--mp-teal-2);
  font-family: var(--mp-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.dg-streak {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mp-bone);
  font-family: var(--mp-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.1;
}
.dg-best {
  padding: 5px 8px;
  border: 1px solid rgba(216, 177, 90, .16);
  color: var(--mp-ink-dim);
  font-family: var(--mp-sans);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* Level rechts: Zahl in Rosé (EXP-Farbe wie in der Seitenleiste), feine Linie,
   an ihrem Ende die Seelen, die der Aufstieg bringt. */
.dg-level {
  flex: none;
  display: grid;
  gap: 6px;
  justify-items: end;
  width: 236px;
  text-align: right;
}
.dg-lvl {
  color: var(--mp-aura-1);
  font-family: var(--mp-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.dg-xp {
  position: relative;
  width: calc(100% - 44px);
  height: 3px;
  margin: 9px 44px 4px 0;
  background: rgba(240, 166, 198, .12);
}
.dg-xpFill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--mp-aura-3), var(--mp-aura-1));
  box-shadow: 0 0 8px var(--mp-aura-glow);
}
.dg-xpGoal {
  position: absolute;
  left: 100%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  margin-left: 6px;
  border: 1px solid color-mix(in srgb, var(--mp-soul-1) 35%, transparent);
  background: #0b0d12;
  color: var(--mp-soul-1);
  font-family: var(--mp-mono);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%);
}
.dg-xpText {
  color: var(--mp-ink-dim);
  font-family: var(--mp-mono);
  font-size: 10.5px;
  letter-spacing: .5px;
}

/* ── Der Weg: sieben Knoten auf einer Linie, Gold bis hinter den letzten erledigten ── */
.dg-path {
  --node: 54px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
/* Die Linie liegt unter den Tagen (z-index 0 gegen 1): auch waehrend die Tage
   beim Einblenden animiert sind (eigener Stapelkontext), laeuft sie hinter den
   Siegeln durch, nicht darueber. */
.dg-path::before,
.dg-path::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: calc(var(--node) / 2 - 1px);
  left: calc(100% / 14);
  height: 2px;
  pointer-events: none;
}
.dg-path::before {
  right: calc(100% / 14);
  background: rgba(216, 177, 90, .14);
}
.dg-path::after {
  width: calc((100% - 100% / 7) * clamp(0, (var(--done, 0) - 1) / 6, 1));
  background: linear-gradient(90deg, rgba(216, 177, 90, .5), var(--mp-gold-1));
  box-shadow: 0 0 10px rgba(216, 177, 90, .35);
  transition: width .9s cubic-bezier(.2, .7, .2, 1);
}
.dg-day {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
}
.dg-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  margin: 0;
  padding: 0;
  border: 1px solid rgba(216, 177, 90, .3);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1c2029, #0b0d12 78%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 0 0 4px #0b0d12;
  color: inherit;
  font: inherit;
  cursor: var(--mp-cur-arrow);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, opacity .25s ease;
}
.dg-node .soul-gem { width: 15px; height: 15px; }
.dg-node .relic-gem { width: 18px; height: 18px; }
.dg-day.is-upcoming .dg-node { opacity: .55; }
.dg-day.is-upcoming .dg-node .soul-gem { background: rgba(190, 160, 220, .35); box-shadow: none; }
.dg-day.is-upcoming .dg-node .relic-gem { background: rgba(216, 59, 69, .4); box-shadow: none; }
.dg-day.is-done .dg-node { border-color: rgba(77, 208, 196, .5); }

/* Siegel: liegt im heutigen Knoten verborgen bereit und stempelt beim Abholen. */
.dg-seal {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(158, 233, 224, .6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ef0e2, #2c8a82 72%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5), inset 0 -2px 4px rgba(0, 0, 0, .3);
  color: #07120f;
}
.dg-day:not(.is-done):not(.is-sealing) .dg-seal { display: none; }

/* Heute: groesser, goldener Rand, atmet ruhig; der Knoten ist der Knopf. */
.dg-day.is-today .dg-node {
  --node: 66px;
  margin-top: -6px;
  border-color: var(--mp-gold-1);
  box-shadow: 0 0 0 1px rgba(216, 177, 90, .2), 0 0 18px rgba(216, 177, 90, .22), 0 8px 22px rgba(0, 0, 0, .55), inset 0 0 0 4px #0b0d12;
  cursor: var(--mp-cur-pointer);
  animation: dgBreathe 3.4s ease-in-out infinite;
  animation-delay: var(--mp-t, 0ms);
}
@keyframes dgBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(216, 177, 90, .2), 0 0 14px rgba(216, 177, 90, .18), 0 8px 22px rgba(0, 0, 0, .55), inset 0 0 0 4px #0b0d12; }
  50%      { box-shadow: 0 0 0 1px rgba(216, 177, 90, .3), 0 0 28px rgba(216, 177, 90, .4), 0 8px 22px rgba(0, 0, 0, .55), inset 0 0 0 4px #0b0d12; }
}
.dg-day.is-today .dg-node:hover,
.dg-day.is-today .dg-node:focus-visible { transform: translateY(-2px); outline: none; }
.dg-day.is-today .dg-node .soul-gem { width: 20px; height: 20px; }

/* Tag 7: die Raute mit Relikt und Beschwoerung. */
.dg-day.is-milestone .dg-node { border-radius: 9px; transform: rotate(45deg); border-color: rgba(216, 59, 69, .62); box-shadow: inset 0 0 14px rgba(216, 59, 69, .16), 0 0 14px rgba(216, 59, 69, .1); }
.dg-day.is-milestone .dg-node > * { transform: rotate(-45deg); }
.dg-day.is-milestone .dg-node .relic-gem { transform: rotate(-45deg); }
.dg-day.is-milestone.is-today .dg-node:hover,
.dg-day.is-milestone.is-today .dg-node:focus-visible { transform: rotate(45deg) translate(-2px, -2px); }
.dg-day.is-milestone .dg-seal { border-radius: 7px; transform: rotate(0); }
.dg-day.is-milestone .dg-seal svg { transform: rotate(-45deg); }

.dg-amt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mp-bone);
  font-family: var(--mp-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.dg-day.is-upcoming .dg-amt { color: var(--mp-ink-dim); }
.dg-day.is-today .dg-amt { color: var(--mp-gold-1); }
.dg-k {
  color: var(--mp-ink-faint);
  font-family: var(--mp-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dg-day.is-today .dg-k { color: var(--mp-gold-2); }
.dg-extra {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: -2px;
  color: var(--mp-relic-2);
  font-family: var(--mp-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  white-space: nowrap;
}
.dg-extra .relic-gem { width: 9px; height: 9px; }
.dg-extra svg { width: 12px; height: 12px; }
.dg-extraRow { display: inline-flex; align-items: center; gap: 4px; }

/* ── Fuss: der eine goldene Knopf, danach eine stille Zeile ── */
.dg-foot {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
}
.dg-claim,
.dq-claim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #f0d27a;
  background: linear-gradient(180deg, #f3d88a 0%, #d8b15a 45%, #ad8230 100%);
  color: #0c0e13;
  font-family: var(--mp-sans);
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 24px rgba(216, 177, 90, .16);
  cursor: var(--mp-cur-pointer);
  transition: transform .18s ease, box-shadow .18s ease, opacity .3s ease;
}
.dg-claim { padding: 13px 28px; font-size: 11.5px; }
.dq-claim { padding: 9px 16px; font-size: 10.5px; letter-spacing: 2px; }
.dg-claim:hover,
.dq-claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(216, 177, 90, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.dg-claim svg { width: 16px; height: 16px; }
.dailyGift.is-busy .dg-claim,
.dailyGift.is-busy .dg-day.is-today .dg-node { pointer-events: none; }
.dailyGift.is-just-claimed .dg-claim { opacity: 0; transform: translateY(4px); }
.dg-claimed {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--mp-teal-1);
  font-family: var(--mp-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Abholen: das Siegel stempelt auf den Knoten, ein Goldring laeuft hinaus. */
.dg-day.is-sealing .dg-node { animation: none; border-color: rgba(77, 208, 196, .6); }
.dg-day.is-sealing .dg-seal,
.dq-card.is-sealing .dq-seal { display: grid; animation: dgStamp .55s cubic-bezier(.2, .9, .3, 1.25) .12s both; }
@keyframes dgStamp {
  from { opacity: 0; transform: scale(2.1); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); }
}
.dg-day.is-sealing .dg-node::after,
.dq-card.is-sealing .dq-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--mp-gold-1);
  border-radius: inherit;
  animation: dgRing .8s ease-out .1s both;
  pointer-events: none;
}
@keyframes dgRing {
  from { opacity: .9; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.9); }
}

/* ── Tagesquests ── */
.dailyQuests { margin-top: 18px; }
.dq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.dq-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mp-ink-dim);
  font-family: var(--mp-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.dq-reset svg { color: var(--mp-gold-2); }
.dq-reset b { font-weight: 500; color: var(--mp-ink); }
.dq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dq-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 16px;
  opacity: var(--card-o, 1);
  transition: border-color .25s ease, background-color .25s ease, transform .3s cubic-bezier(.22, .8, .24, 1), opacity .3s ease;
}
.dq-card.is-open { cursor: var(--mp-cur-pointer); }
.dq-card.is-open:hover,
.dq-card.is-open:focus-visible {
  border-color: rgba(216, 177, 90, .42);
  background-color: rgba(28, 24, 16, .5);
  transform: translateY(-2px);
  outline: none;
}
.dq-card.is-open:hover::before,
.dq-card.is-open:hover::after,
.dq-card.is-open:focus-visible::before,
.dq-card.is-open:focus-visible::after { border-color: var(--mp-gold-1); }

/* Figur im Ring: der Ring fuellt sich mit dem Fortschritt (Amethyst), erreicht in Gold. */
.dq-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.dq-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.dq-track { fill: none; stroke: rgba(216, 177, 90, .14); stroke-width: 2.5; }
.dq-fill {
  --c: 182.2;
  fill: none;
  stroke: var(--mp-soul-1);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: calc(var(--c) * (1 - var(--p, 0)));
  filter: drop-shadow(0 0 4px var(--mp-soul-glow));
  transition: stroke-dashoffset .9s cubic-bezier(.2, .7, .2, 1), stroke .3s ease;
}
.dq-art {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .6));
  transition: transform .4s cubic-bezier(.22, .8, .24, 1);
}
.dq-emoji { font-size: 22px; }
.dq-card.is-open:hover .dq-art,
.dq-card.is-open:focus-visible .dq-art { transform: translateY(-3px); }
.dq-text { display: grid; gap: 5px; min-width: 0; }
.dq-title {
  color: var(--mp-bone);
  font-family: var(--mp-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .4px;
  line-height: 1.15;
}
.dq-count {
  color: var(--mp-ink-dim);
  font-family: var(--mp-mono);
  font-size: 11px;
  letter-spacing: .5px;
}
.dq-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.dq-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-soul-1);
  font-family: var(--mp-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}
.dq-reward .soul-gem { width: 12px; height: 12px; }
.dq-go {
  color: var(--mp-gold-1);
  font-family: var(--mp-sans);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  translate: -6px 0;
  transition: opacity .25s ease, translate .3s cubic-bezier(.22, .8, .24, 1);
}
.dq-card.is-open:hover .dq-go,
.dq-card.is-open:focus-visible .dq-go { opacity: 1; translate: 0 0; }

/* Erreicht: die Karte leuchtet gold und atmet, der Knopf wartet. */
.dq-card.is-claimable {
  border-color: rgba(216, 177, 90, .45);
  background: linear-gradient(180deg, rgba(28, 24, 14, .72), rgba(13, 12, 9, .92));
  animation: dqReady 3.4s ease-in-out infinite;
  animation-delay: var(--mp-t, 0ms);
}
@keyframes dqReady {
  0%, 100% { box-shadow: 0 0 0 rgba(216, 177, 90, 0); }
  50%      { box-shadow: 0 0 26px rgba(216, 177, 90, .16); }
}
.dq-card.is-claimable::before,
.dq-card.is-claimable::after { border-color: var(--mp-gold-1); }
.dq-card.is-claimable .dq-fill { stroke: var(--mp-gold-1); filter: drop-shadow(0 0 4px var(--mp-gold-glow)); }
.dq-card.is-claimable .dq-reward,
.dq-card.is-claimable .dq-count { color: var(--mp-gold-1); }

/* Abgeholt: Siegel an der Figur, die Karte tritt zurueck. */
.dq-seal {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(158, 233, 224, .6);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8ef0e2, #2c8a82 72%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5), inset 0 -2px 4px rgba(0, 0, 0, .3);
  color: #07120f;
}
.dq-card:not(.is-claimed):not(.is-sealing) .dq-seal { display: none; }
.dq-card.is-claimed { --card-o: .55; }
.dq-card.is-claimed .dq-fill { stroke: var(--mp-teal-1); filter: none; }
.dq-card.is-claimed .dq-count { color: var(--mp-teal-1); }

/* Abholen: Ring schliesst sich (--p = 1), Siegel stempelt, die Karte blitzt gold. */
.dq-card.is-sealing { animation: dqFlash .9s ease-out both; }
@keyframes dqFlash {
  0%   { box-shadow: 0 0 0 rgba(216, 177, 90, 0); }
  30%  { box-shadow: 0 0 32px rgba(216, 177, 90, .35), inset 0 0 0 1px rgba(216, 177, 90, .45); }
  100% { box-shadow: 0 0 0 rgba(216, 177, 90, 0); }
}
.dq-card.is-sealing .dq-claim { opacity: 0; pointer-events: none; }
.dq-card.is-vanish {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: -16px;
  border-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: height .42s cubic-bezier(.4, 0, .2, 1), padding .42s cubic-bezier(.4, 0, .2, 1), margin .42s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, border-width .42s ease;
}

/* ── Einblenden, wenn der Abschnitt ins Bild kommt (daily-fx.js) ──
   Der Weg zeichnet sich: die Knoten treten nacheinander an, dann waechst die
   Goldlinie Knoten fuer Knoten bis zum letzten erledigten Tag (--step je Knoten,
   ab --line-at); jedes Siegel stempelt auf, sobald die Linie es erreicht, zuletzt
   leuchtet der heutige Knoten mit einem Goldring auf und der Fuss tritt an.
   --done steht am Abschnitt (.dailyGift) und am Weg. Spaetere Neuaufbauten
   starten nichts neu (is-settled bleibt). */
.loginStreakSection.js-reveal:not(.is-seen) .dg-path::after { width: 0; transition: none; }
.loginStreakSection.js-reveal:not(.is-seen) .dg-day,
.loginStreakSection.js-reveal:not(.is-seen) .dg-foot { opacity: 0; }
.loginStreakSection.js-reveal:not(.is-seen) .dg-day.is-done .dg-seal { opacity: 0; }
.loginStreakSection.js-reveal:not(.is-seen) .dg-day.is-done .dg-node { border-color: rgba(216, 177, 90, .3); }
.loginStreakSection.is-seen:not(.is-settled) .dailyGift { --step: 240ms; --line-at: .8s; }
/* --reach = Moment, in dem die Linie diesen Knoten erreicht (am Tag, weil --i dort steht). */
.loginStreakSection.is-seen:not(.is-settled) .dg-day {
  --reach: calc(var(--line-at) + var(--i, 0) * var(--step));
  animation: dgDayIn .55s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i, 0) * 85ms) both;
}
.loginStreakSection.is-seen:not(.is-settled) .dg-path::after { transition: width calc(var(--step) * max(0, var(--done, 1) - 1)) linear var(--line-at); }
.loginStreakSection.is-seen:not(.is-settled) .dg-day.is-done .dg-node { transition: border-color .3s ease var(--reach); }
.loginStreakSection.is-seen:not(.is-settled) .dg-day.is-done .dg-seal { animation: dgStamp .5s cubic-bezier(.2, .9, .3, 1.25) var(--reach) both; }
.loginStreakSection.is-seen:not(.is-settled) .dg-day.is-done .dg-node::after,
.loginStreakSection.is-seen:not(.is-settled) .dg-day.is-today:not(.is-sealing) .dg-node::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--mp-gold-1);
  border-radius: inherit;
  animation: dgRing .75s ease-out calc(var(--reach) + 60ms) both;
  pointer-events: none;
}
.loginStreakSection.is-seen:not(.is-settled) .dg-day.is-today:not(.is-sealing) .dg-node::after { animation-duration: .95s; }
.loginStreakSection.is-seen:not(.is-settled) .dg-foot { animation: dgDayIn .55s cubic-bezier(.2, .8, .2, 1) calc(var(--line-at) + var(--done, 0) * var(--step) + .3s) both; }
@keyframes dgDayIn {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.dailyQuestSection.js-reveal:not(.is-seen) .dq-card { opacity: 0; }
.dailyQuestSection.js-reveal:not(.is-seen) .dq-fill { stroke-dashoffset: var(--c); transition: none; }
.dailyQuestSection.is-seen:not(.is-settled) .dq-card { animation: dqCardIn .55s cubic-bezier(.2, .8, .2, 1) calc(.2s + var(--i, 0) * 110ms) both; }
.dailyQuestSection.is-seen:not(.is-settled) .dq-fill { transition-delay: calc(.55s + var(--i, 0) * 110ms); }
@keyframes dqCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: var(--card-o, 1); transform: none; }
}

/* ── Schmale Fenster und Handy ── */
@media (max-width: 1180px) {
  .dq-list { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .dg-head { flex-direction: column; gap: 14px; }
  .dg-level {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 2px 10px;
    width: 100%;
    justify-items: start;
    text-align: left;
  }
  .dg-lvl { grid-area: 1 / 1; }
  .dg-xpText { grid-area: 1 / 2; justify-self: end; }
  .dg-xp { grid-area: 2 / 1 / 3 / 3; width: calc(100% - 60px); margin: 7px 60px 2px 0; }
  /* Die Tag-7-Beschriftung endet an der rechten Kante statt ueberzustehen
     (Flex-Ende: was nicht passt, haengt nach links ueber). */
  .dg-day.is-milestone:last-child .dg-extra { display: flex; flex-direction: column; align-items: flex-end; justify-self: stretch; min-width: 0; }
}
body.mp-phone .dailyGift { padding: 18px 14px 18px; }
body.mp-phone .dg-streak { font-size: 19px; }
body.mp-phone .dg-path { --node: 40px; margin-top: 22px; }
body.mp-phone .dg-day { gap: 6px; }
body.mp-phone .dg-day.is-today .dg-node { --node: 48px; margin-top: -4px; }
body.mp-phone .dg-node .soul-gem { width: 12px; height: 12px; }
body.mp-phone .dg-day.is-today .dg-node .soul-gem { width: 15px; height: 15px; }
body.mp-phone .dg-node .relic-gem { width: 14px; height: 14px; }
body.mp-phone .dg-seal { inset: 5px; }
body.mp-phone .dg-amt { font-size: 13px; gap: 3px; }
body.mp-phone .dg-amt .soul-gem { width: 9px; height: 9px; }
body.mp-phone .dg-k { font-size: 7.5px; letter-spacing: 1.2px; }
body.mp-phone .dg-extra { font-size: 8.5px; gap: 3px; }
body.mp-phone .dg-extra svg { width: 10px; height: 10px; }
body.mp-phone .dg-foot { margin-top: 18px; }
body.mp-phone .dg-claim { width: 100%; padding: 13px 16px; }
body.mp-phone .dailyQuests { margin-top: 14px; }
body.mp-phone .dq-list { gap: 10px; }
body.mp-phone .dq-card { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px 12px 12px; }
body.mp-phone .dq-ring { width: 52px; height: 52px; }
body.mp-phone .dq-art { width: 34px; height: 34px; }
body.mp-phone .dq-title { font-size: 16px; }
body.mp-phone .dq-reward { font-size: 15px; }
body.mp-phone .dq-card.is-vanish { margin-bottom: -10px; }
/* Abgeholte Quests machen auf dem Handy Platz (nach dem Zuklappen, daily-fx.js). */
body.mp-phone .dq-card.is-claimed { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dg-day.is-today .dg-node,
  .dq-card.is-claimable,
  .dg-day.is-sealing .dg-seal,
  .dq-card.is-sealing .dq-seal,
  .dg-day.is-sealing .dg-node::after,
  .dq-card.is-sealing .dq-ring::after,
  .dq-card.is-sealing,
  .loginStreakSection.is-seen:not(.is-settled) .dg-day,
  .loginStreakSection.is-seen:not(.is-settled) .dg-foot,
  .loginStreakSection.is-seen:not(.is-settled) .dg-seal,
  .loginStreakSection.is-seen:not(.is-settled) .dg-node::after,
  .dailyQuestSection.is-seen:not(.is-settled) .dq-card { animation: none !important; }
  .dg-path::after,
  .dq-fill,
  .dq-card,
  .dq-art,
  .dg-node,
  .dq-go { transition: none !important; }
}
