/* components.css – Banner, Starter/Maskottchen, Rangliste, Topbar, Toast, Dialog */

/* Goal Card */
.goal-card {}
.goal-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px }
.goal-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px }
.goal-title { font-size: 22px; font-weight: 600 }
.goal-icon { font-size: 22px }
.goal-progress-row { display: flex; align-items: center; gap: 12px }
.goal-bar { flex: 1; height: 8px; background: rgba(255,255,255,.1); border-radius: 4px; overflow: hidden }
.goal-fill { height: 100%; background: #5CD0FF; border-radius: 4px; transition: width .4s; box-shadow: 0 0 10px #5CD0FFaa }
.goal-days { font-size: 13px; color: var(--muted); white-space: nowrap }

/* Starter / Maskottchen-Auswahl */
.starters { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap }
.starter {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  width: 150px;
  cursor: pointer;
  text-align: center;
  transition: transform .12s, border-color .15s;
}
.starter:hover { transform: translateY(-3px) }
.starter.sel { border-color: #7ec8f4; box-shadow: 0 0 0 1px #7ec8f4 inset }
.starter.taken { opacity: .4; filter: grayscale(1); cursor: not-allowed }
.starter.taken:hover { transform: none }
.starter .nm { font-weight: 500; margin-top: 8px; font-size: 14px }
.starter .ty { font-size: 12px; color: var(--muted) }

/* Maskottchen-Sprites */
.sprite { width: 88px; height: 88px; display: inline-block }
.sprite.sm { width: 46px; height: 46px }
.sprite.xs { width: 26px; height: 26px; vertical-align: middle }
@keyframes hop {
  0% { transform: translateY(0) }
  22% { transform: translateY(-13px) }
  42% { transform: translateY(0) }
  60% { transform: translateY(-7px) }
  80% { transform: translateY(0) }
  100% { transform: translateY(0) }
}
.sprite.hop { animation: hop .9s ease }

/* Rangliste – Duell */
.lead { font-size: 17px; font-weight: 500; margin-bottom: 16px }
.twinwrap { position: relative }
.twin { display: flex; gap: 56px }
.twin .c { flex: 1; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center }
.twin .c.lose { opacity: .45; filter: grayscale(.7) }
.twin .sprite { width: 48px; height: 48px; margin: 0 auto }
.twin .name { font-size: 14px; font-weight: 600 }
.twin .s { font-size: 26px; font-weight: 700; line-height: 1; margin: 5px 0 6px }
.vsmid {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #0a1624;
  border: 2px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.leadbar { height: 8px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 16px }
.leadbar-fill { height: 100%; border-radius: 10px; transition: width .4s }
.leadrow { position: relative; margin-top: 10px; min-height: 18px }
.lead-text { display: block; text-align: center; font-size: 13px; color: var(--gold) }
.lead-text.tie { color: var(--muted) }
.days-left {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

/* Topbar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px }
.me { display: flex; align-items: center; gap: 12px }
.me .sprite {
  box-sizing: content-box;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #15243c;
  padding: 9px;
}
.me .nm { font-size: 18px; font-weight: 500 }
.me .role { font-size: 12px; color: var(--muted) }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(10px);
  z-index: 1000;
  background: #0d1930;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 30px;
  border: 1px solid #1e3050;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  opacity: 0;
  transition: all .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }

/* Heller Dialog (Glas) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 13, 24, .65);
  backdrop-filter: blur(4px);
}
.modal-overlay.hidden { display: none }
.modal-box {
  background: #0d1930;
  border: 1px solid #2a5080;
  border-radius: 20px;
  padding: 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.modal-ico { font-size: 38px }
.modal-box h3 { font-size: 18px; font-weight: 500; margin: 8px 0 6px }
.modal-box p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.5 }
