/* ============================================================
   Startseite „Tagesmission“ (Redesign Phase 3) – #vbDash im #startHub,
   nur für angemeldete Spieler. Farben/Schrift aus css/tokens.css.
   Mission-Karte ist in Tag und Nacht dunkelblau; die 4 Karten folgen
   den Flächenfarben (body.night überschreibt die Variablen).
   ============================================================ */
#vbDash[hidden] { display: none; }
#startHub.vb-dash-on > #playNowBtn,
#startHub.vb-dash-on > #playNowLangBtn { display: none !important; }

.vbd { display: flex; flex-direction: column; gap: 16px; margin: 0 0 18px; width: 100%; max-width: 100%; min-width: 0; align-self: stretch; text-align: start;
  font-family: var(--vb-font-body); color: var(--vb-ink);
  --vbd-blue: #1E6FE8; --vbd-teal: #0E8C80; --vbd-green: #1A8A4C; --vbd-gold: #A86A12; --vbd-red: #C2333A; }
body.night .vbd { --vbd-blue: #7DB2FF; --vbd-teal: #5FE0D2; --vbd-green: #5FD38E; --vbd-gold: #FFC25C; --vbd-red: #FF8A8E; color: var(--vb-ink); }
.vbd *, .vbd *::before, .vbd *::after { box-sizing: border-box; }
.vbd button { font-family: inherit; }
.vbd-hi { margin: 0; font-family: var(--vb-font-head); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--vb-ink); }

/* Tagesmission */
.vbd-mission { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 24px 28px; border-radius: 24px;
  background: linear-gradient(135deg, var(--vb-navy) 0%, var(--vb-navy-2) 62%, var(--vb-blue) 100%); color: #fff;
  box-shadow: 0 10px 30px rgba(11,30,63,.18); }
.vbd-ring { position: relative; width: 140px; height: 140px; flex: none; }
.vbd-ring svg { width: 100%; height: 100%; display: block; }
.vbd-ring-bg { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 12; }
.vbd-ring-fg { fill: none; stroke: var(--vb-teal-light); stroke-width: 12; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.vbd-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vbd-ring-txt b { font-family: var(--vb-font-head); font-size: 34px; line-height: 1; color: #fff; }
.vbd-ring-txt span { font-size: 13px; color: #C7D4EE; }
.vbd-mtext { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.vbd-mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vbd-eyebrow { color: var(--vb-teal-text); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.vbd-streak { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(245,166,35,.2); color: #FFD18A; font-weight: 700; font-size: 13px; }
.vbd-mh { margin: 0; font-family: var(--vb-font-head); font-weight: 700; font-size: 26px; line-height: 1.18; color: #fff; text-wrap: balance; }
.vbd-go { display: flex; align-items: center; gap: 14px; padding: 10px 30px 10px 10px; border: none; border-radius: 22px; cursor: pointer;
  background: linear-gradient(180deg, var(--vb-teal-light), var(--vb-teal)); color: var(--vb-on-teal);
  animation: vbdGlow 2.4s ease-in-out infinite; transition: transform .15s ease; }
[dir="rtl"] .vbd-go { padding: 10px 10px 10px 30px; }
.vbd-go:hover { transform: translateY(-2px); }
.vbd-go:focus-visible, .vbd-setting:focus-visible, .vbd-link:focus-visible { outline: 3px solid var(--vb-teal-light); outline-offset: 2px; }
.vbd-go-ico { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--vb-navy); flex: none; }
.vbd-go-txt { font-family: var(--vb-font-head); font-weight: 700; font-size: 26px; line-height: 1.1; }
.vbd-setting { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #DCE6F7; font-size: 14px; font-weight: 600; cursor: pointer; text-align: start; }
.vbd-setting:hover { background: rgba(255,255,255,.08); }
.vbd-setting > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@keyframes vbdGlow { 0%,100% { box-shadow: 0 8px 26px rgba(23,195,178,.4), 0 0 0 0 rgba(46,224,204,.4); }
  50% { box-shadow: 0 8px 34px rgba(23,195,178,.6), 0 0 0 12px rgba(46,224,204,0); } }
@media (prefers-reduced-motion: reduce) { .vbd-go { animation: none; } }

/* 4 Karten */
.vbd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.vbd-card { background: var(--vb-surface); color: var(--vb-ink); border: 1px solid var(--vb-line); border-radius: 20px;
  box-shadow: var(--vb-shadow-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vbd-card .vbd-h { margin: 0; font-size: 17px; font-weight: 700; color: var(--vb-ink); }
.vbd-label { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.vbd-c-learn .vbd-label { color: var(--vbd-blue); }
.vbd-c-prog .vbd-label { color: var(--vbd-teal); }
.vbd-c-rew .vbd-label { color: var(--vbd-gold); }
.vbd-c-battle .vbd-label { color: var(--vbd-red); }
.vbd-mut { margin: 0; font-size: 14px; line-height: 1.45; color: var(--vb-ink-muted); }
.vbd-weak { display: flex; align-items: center; gap: 10px; font-size: 15px; min-width: 0; }
.vbd-weak i { width: 10px; height: 10px; border-radius: 50%; background: var(--vb-red); flex: none; }
.vbd-weak span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--vb-ink); }
.vbd-btn { margin-top: auto; width: 100%; }
.vbd-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.vbd-big b { font-family: var(--vb-font-head); font-size: 40px; line-height: 1; color: var(--vbd-green); }
.vbd-big span { color: var(--vb-ink-muted); font-weight: 600; }
.vbd-link { margin-top: auto; align-self: flex-start; padding: 6px 0; border: 0; background: none; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--vbd-blue); }
.vbd-c-rew .vbd-link { color: var(--vbd-gold); }
.vbd-link:hover { text-decoration: underline; }
.vbd-cards { display: flex; gap: 4px; }
.vbd-cards img { width: 44px; height: auto; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.vbd-cardsN { font-size: 15px; color: var(--vb-ink); }
.vbd-bar { display: block; height: 10px; border-radius: 5px; background: var(--vb-surface-soft); overflow: hidden; }
.vbd-bar span { display: block; height: 100%; background: var(--vb-gold); border-radius: 5px; }
.vbd-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.vbd-b1, .vbd-b2 { flex: 1 1 110px; min-height: 44px; font-size: 14px; }
.vbd-b1 { background: #D63B40; color: #fff; }
.vbd-b2 { background: transparent; color: var(--vbd-red); border-color: #D63B40; }
.vbd-b1:hover { background: #B92F34; }

@media (max-width: 820px) {
  .vbd-hi { font-size: 22px; }
  .vbd-mission { padding: 18px; gap: 14px; justify-content: center; }
  .vbd-ring { width: 104px; height: 104px; }
  .vbd-ring-txt b { font-size: 28px; }
  .vbd-mtext { align-items: center; text-align: center; }
  .vbd-mhead { justify-content: center; }
  .vbd-mh { font-size: 20px; }
  .vbd-go { width: 100%; justify-content: center; }
  .vbd-go-txt { font-size: 24px; }
}

/* Handy: Ring neben dem Text, Knopf darunter über die volle Breite → „Weiterlernen“ ohne Scrollen */
@media (max-width: 520px) {
  .vbd { gap: 12px; }
  .vbd-hi { font-size: 20px; }
  .vbd-mission { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; padding: 16px; }
  .vbd-mtext { display: contents; }
  .vbd-ring { width: 84px; height: 84px; grid-column: 1; grid-row: 1 / span 2; }
  .vbd-ring-txt b { font-size: 24px; }
  .vbd-ring-txt span { font-size: 11px; }
  .vbd-mhead { grid-column: 2; grid-row: 1; justify-content: flex-start; }
  .vbd-mh { grid-column: 2; grid-row: 2; font-size: 17px; text-align: start; }
  .vbd-go { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .vbd-setting { grid-column: 1 / -1; grid-row: 4; justify-self: center; }
}

/* 🆕 29.11.2026 Einstellungen als Chips über die ganze Breite (auch unter dem Ring) + deutlicher ✎-Knopf */
.vbd-sets { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; margin-top: -6px;
  border-top: 1px solid rgba(255,255,255,.18); min-width: 0; }
.vbd-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.vbd-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 34px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: #EAF1FC; font-size: 14px; font-weight: 600; text-align: start; }
.vbd-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vbd-chip-list, .vbd-chip-mode { max-width: 230px; }
.vbd-chip:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.55); }
.vbd-edit { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 18px 6px 8px; border-radius: 999px; cursor: pointer; flex: none;
  border: 2px solid var(--vb-teal-light); background: rgba(46,224,204,.14); color: #fff; font-size: 15px; font-weight: 800; margin-inline-start: auto; }
[dir="rtl"] .vbd-edit { padding: 6px 8px 6px 18px; }
.vbd-edit-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--vb-teal-light); color: var(--vb-navy); font-size: 17px; line-height: 1; }
.vbd-edit:hover { background: rgba(46,224,204,.28); }
.vbd-chip:focus-visible, .vbd-edit:focus-visible { outline: 3px solid var(--vb-teal-light); outline-offset: 2px; }
/* Sprung aus dem Dashboard: Schritt kurz hervorheben */
.vb-step.vbd-hl { animation: vbdHl 1.6s ease; }
@keyframes vbdHl { 0%, 60% { box-shadow: 0 0 0 4px var(--vb-teal-light); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .vb-step.vbd-hl { animation: none; outline: 3px solid var(--vb-teal-light); } }
@media (max-width: 820px) {
  .vbd-sets { justify-content: center; margin-top: 0; }
  .vbd-chips { justify-content: center; }
  .vbd-edit { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .vbd-sets { grid-column: 1 / -1; grid-row: 4; padding-top: 10px; gap: 8px; }
  .vbd-chip { font-size: 13px; min-height: 32px; padding: 3px 10px; }
  .vbd-chip-list, .vbd-chip-mode { max-width: 150px; }
  .vbd-edit { width: 100%; justify-content: center; }
}
