/* ============================================================
   STRIKER App — components on top of tokens.css
   Mobile-first app shell, stadium-at-night
   ============================================================ */

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; transform: translateZ(0);
}

html, body { height: 100%; overflow-x: hidden; overflow-x: clip; }
body { background: var(--mw-night-deep); }

.app {
  max-width: 480px; margin-inline: auto; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--mw-night);
  position: relative;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

/* --- top bar --- */
.app-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(180, 198, 185, 0.15);
}
.app-brand { display: flex; align-items: center; gap: 0.7rem; }
.app-logo { width: 40px; }
.app-wordmark {
  font-family: var(--font-display); font-weight: var(--display-weight-heavy);
  font-size: 1.05rem; letter-spacing: 0.06em; color: var(--mw-white);
}
.kw-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mw-night); background: var(--mw-lime); border-radius: 999px; padding: 0.35rem 0.8rem;
}

/* --- main view --- */
.view { flex: 1; padding: 1.5rem 1.25rem 7rem; }
.view h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.view .sub { color: var(--mw-sage-1); font-size: 0.95rem; margin-bottom: 1.5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--text-eyebrow); font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--mw-lime); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: var(--mw-lime); }

/* --- cards --- */
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(180, 198, 185, 0.18);
  border-radius: 20px; padding: 1.4rem;
  margin-bottom: 1rem;
  position: relative; overflow: hidden;
}
.card--pitch { background: linear-gradient(150deg, rgba(36, 102, 63, 0.35), rgba(11, 36, 23, 0.6)); }
.card .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mw-sage-3); margin-bottom: 0.5rem; }

.strike-habit { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; line-height: 1.2; color: var(--mw-white); margin-bottom: 0.75rem; }
.strike-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  font-size: 0.78rem; font-weight: 600; color: var(--mw-sage-1);
  border: 1px solid rgba(180, 198, 185, 0.3); border-radius: 999px; padding: 0.3rem 0.75rem;
}
.sig-thumb {
  height: 64px; border-radius: 10px; background: var(--mw-night-deep);
  border: 1px solid rgba(216, 255, 107, 0.25); padding: 4px; object-fit: contain;
}

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 1rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--lime { background: var(--mw-lime); color: var(--mw-night); }
.btn--lime:hover { box-shadow: 0 8px 28px rgba(216, 255, 107, 0.3); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--mw-white); border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: var(--mw-lime); color: var(--mw-lime); }
.btn--quiet { background: transparent; color: var(--mw-sage-3); border-color: rgba(180,198,185,0.25); }
.btn--quiet:hover { color: var(--mw-white); border-color: rgba(255,255,255,0.45); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* --- big check button (Heute) --- */
.check-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  width: 100%; padding: 1.4rem; border-radius: 22px; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: var(--display-weight-heavy);
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.02em;
  background: var(--mw-lime); color: var(--mw-night);
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s, background 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.check-btn:active { transform: scale(0.97); }
.check-btn.is-done { background: var(--mw-pitch-mid); color: var(--mw-white); box-shadow: inset 0 0 0 2px var(--mw-lime); }
.check-btn .tick { font-size: 1.4rem; }

/* --- week dots --- */
.week-dots { display: flex; gap: 0.6rem; justify-content: space-between; margin: 1rem 0 0.4rem; }
.wd { display: grid; place-items: center; gap: 0.3rem; flex: 1; }
.wd .dot {
  width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(180, 198, 185, 0.3);
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 700; color: var(--mw-sage-3);
  transition: background 0.25s, border-color 0.25s;
}
.wd.done .dot { background: var(--mw-lime); border-color: var(--mw-lime); color: var(--mw-night); }
.wd.today .dot { border-color: var(--mw-white); color: var(--mw-white); }
.wd.future .dot { opacity: 0.4; }
.wd .dl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mw-sage-4); }

/* --- forms --- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mw-sage-3); margin-bottom: 0.45rem; }
.field input[type="text"], .field input[type="time"] {
  width: 100%; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(180, 198, 185, 0.3);
  border-radius: 12px; padding: 0.9rem 1rem; color: var(--mw-white);
  font-family: var(--font-body); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--mw-lime); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-btn {
  padding: 0.65rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); color: var(--mw-sage-1);
  border: 1.5px solid rgba(180, 198, 185, 0.25);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip-btn.on { background: var(--mw-lime); color: var(--mw-night); border-color: var(--mw-lime); }

/* --- signature pad --- */
.sig-pad {
  width: 100%; height: 150px; border-radius: 16px;
  background: var(--mw-night-deep); border: 1.5px dashed rgba(216, 255, 107, 0.4);
  touch-action: none; cursor: crosshair;
  display: block;
}
.sig-hint { font-size: 0.78rem; color: var(--mw-sage-4); margin-top: 0.4rem; }

/* --- match cards (Mappe) --- */
.matchcard {
  border-radius: 18px; overflow: hidden; margin-bottom: 1rem;
  border: 1px solid rgba(180, 198, 185, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.matchcard .mc-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.2rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mw-sage-3);
  border-bottom: 1px solid rgba(180, 198, 185, 0.12);
}
.matchcard .mc-body { padding: 1.2rem; }
.matchcard .mc-habit { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--mw-white); margin-bottom: 0.5rem; }
.matchcard .mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.badge-out { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.35rem 0.85rem; border-radius: 999px; }
.badge-out--getroffen { background: var(--mw-lime); color: var(--mw-night); }
.badge-out--angepasst { background: rgba(255, 255, 255, 0.12); color: var(--mw-white); }
.badge-out--pause { background: transparent; border: 1.5px solid rgba(180, 198, 185, 0.4); color: var(--mw-sage-1); }

/* --- tabbar --- */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; margin-inline: auto; max-width: 480px;
  display: flex; z-index: 50;
  background: rgba(5, 18, 11, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(180, 198, 185, 0.15);
  padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.7rem 0.2rem 0.5rem; background: none; border: none; cursor: pointer;
  color: var(--mw-sage-3); font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color 0.2s;
}
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--mw-lime); }

/* --- onboarding --- */
.onboarding {
  position: fixed; inset: 0; z-index: 200;
  background: var(--mw-night-deep);
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}
.onboarding[hidden] { display: none; }
.ob-inner { max-width: 480px; margin-inline: auto; width: 100%; padding: 2rem 1.5rem; }
.ob-steps { display: flex; gap: 0.45rem; margin-bottom: 2rem; }
.ob-step-dot { width: 28px; height: 4px; border-radius: 4px; background: rgba(180, 198, 185, 0.2); }
.ob-step-dot.on { background: var(--mw-lime); }
.ob-title { font-size: 1.7rem; margin-bottom: 0.75rem; }
.ob-sub { color: var(--mw-sage-1); margin-bottom: 1.8rem; line-height: 1.6; }
.ob-actions { display: flex; gap: 0.8rem; margin-top: 2rem; }
.ob-actions .btn { flex: 1; }
.ob-logo { width: 72px; margin-bottom: 1.5rem; }

/* --- rolodex (animated idea wheel) --- */
.rolodex {
  position: relative; height: 189px; overflow: hidden; border-radius: 16px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(180, 198, 185, 0.2);
}
.rolodex::before, .rolodex::after {
  content: ""; position: absolute; left: 0; right: 0; height: 80px; z-index: 2; pointer-events: none;
}
.rolodex::before { top: 0; background: linear-gradient(180deg, var(--mw-night) 10%, rgba(11, 36, 23, 0)); }
.rolodex::after { bottom: 0; background: linear-gradient(0deg, var(--mw-night) 10%, rgba(11, 36, 23, 0)); }
.rolodex-band {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 54px;
  border-block: 1.5px solid rgba(216, 255, 107, 0.35); z-index: 1; pointer-events: none;
  background: rgba(216, 255, 107, 0.05);
}
.rolodex-list {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  padding: 68px 0; scrollbar-width: none; -ms-overflow-style: none;
}
.rolodex-list::-webkit-scrollbar { display: none; }
.rolodex-item {
  height: 54px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; text-align: center; padding: 0 1.2rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  color: var(--mw-sage-3); cursor: pointer;
  transition: color 0.2s, transform 0.25s var(--ease-out), opacity 0.2s;
  opacity: 0.55;
}
.rolodex-item.on {
  color: var(--mw-lime); opacity: 1; transform: scale(1.04);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
}
.rolodex-item--other.on { text-transform: none; }
.custom-strike { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease-out), opacity 0.3s; opacity: 0; }
.custom-strike.open { max-height: 120px; opacity: 1; }

/* --- misc --- */
.empty {
  text-align: center; padding: 3rem 1rem; color: var(--mw-sage-3);
}
.empty .big { font-family: var(--font-display); font-size: 1.3rem; color: var(--mw-white); margin-bottom: 0.6rem; text-transform: uppercase; }
.notice {
  font-size: 0.82rem; color: var(--mw-sage-3); border: 1px dashed rgba(180, 198, 185, 0.3);
  border-radius: 12px; padding: 0.8rem 1rem; margin-top: 1rem;
}
.summary-box {
  background: var(--mw-night-deep); border: 1px solid rgba(216, 255, 107, 0.2);
  border-radius: 14px; padding: 1.1rem 1.2rem; font-size: 0.95rem; line-height: 1.6;
  color: var(--mw-sage-1); white-space: pre-line;
}
.audio-placeholder {
  display: flex; align-items: center; gap: 1rem; opacity: 0.6;
}
.audio-placeholder .ap-ic {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(216,255,107,0.15);
  display: grid; place-items: center; color: var(--mw-lime); font-size: 1rem;
}
@media (min-width: 481px) {
  .app { border-inline: 1px solid rgba(180, 198, 185, 0.12); }
}
