/* Pulse screen — mock v3 (scoped) */
#view-pulse { padding-top: 0; }

#view-pulse .pulse-screen { padding-bottom: 8px; }

#view-pulse .pulse-fi { opacity: 0; transform: translateY(6px); animation: pulse-fi 0.45s ease forwards; }
@keyframes pulse-fi { to { opacity: 1; transform: none; } }
#view-pulse .pulse-d1 { animation-delay: 0.04s; }
#view-pulse .pulse-d2 { animation-delay: 0.10s; }
#view-pulse .pulse-d4 { animation-delay: 0.22s; }
#view-pulse .pulse-d6 { animation-delay: 0.34s; }
#view-pulse .pulse-d7 { animation-delay: 0.40s; }

#view-pulse .pulse-sig-bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
#view-pulse .pulse-sig-bar { width: 4px; border-radius: 2px; background: var(--bg4); }
#view-pulse .pulse-sig-bar.on { background: rgba(0, 230, 118, 0.45); }
#view-pulse .pulse-sig-bar:nth-child(1) { height: 35%; }
#view-pulse .pulse-sig-bar:nth-child(2) { height: 58%; }
#view-pulse .pulse-sig-bar:nth-child(3) { height: 78%; }
#view-pulse .pulse-sig-bar:nth-child(4) { height: 100%; }

#view-pulse .pulse-clarity-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; font-weight: 500; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap;
}
#view-pulse .pill-split { color: var(--red); background: rgba(255, 71, 87, 0.10); border: 1px solid rgba(255, 71, 87, 0.2); }
#view-pulse .pill-clear { color: var(--green); background: var(--green-dim); border: 1px solid rgba(0, 230, 118, 0.2); }
#view-pulse .pill-unclear { color: var(--txt2); background: rgba(90, 106, 138, 0.08); border: 1px solid rgba(90, 106, 138, 0.2); }
#view-pulse .pill-upcoming { color: #4fc3f7; background: rgba(79, 195, 247, 0.08); border: 1px solid rgba(79, 195, 247, 0.2); }

#view-pulse .pulse-clock-wrap { display: flex; align-items: center; gap: 5px; }
#view-pulse .pulse-clock-icon {
  width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--txt3); position: relative;
}
#view-pulse .pulse-clock-icon::before {
  content: ''; position: absolute; width: 1px; height: 3px; background: var(--txt3); top: 1.5px; left: 4px;
}
#view-pulse .pulse-clock-icon::after {
  content: ''; position: absolute; width: 2.5px; height: 1px; background: var(--txt3); top: 4px; left: 4px;
}
#view-pulse .pulse-clock-h { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; color: var(--txt2); }

#view-pulse .pulse-sec { padding: 20px 16px 10px; display: flex; align-items: center; gap: 12px; }
#view-pulse .pulse-sec-text {
  font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: 0.28em;
  color: var(--txt3); text-transform: uppercase; white-space: nowrap;
}
#view-pulse .pulse-sec-rule { flex: 1; height: 1px; background: var(--border); }

#view-pulse .pulse-header {
  padding: 52px 20px 0; border-bottom: 1px solid var(--border);
  background: transparent; position: relative; overflow: hidden;
}
#view-pulse .pulse-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 76px; line-height: 0.88;
  color: var(--txt); letter-spacing: 0.02em; position: relative; margin-bottom: 6px;
}
#view-pulse .pulse-wave-pip {
  position: absolute; top: 14px; right: 0; display: flex; align-items: flex-end; gap: 2px; height: 18px;
}
#view-pulse .pulse-wave-pip-bar {
  width: 2px; border-radius: 1px; background: var(--green);
  animation: pulse-wavebar 1.4s ease-in-out infinite;
  box-shadow: 0 0 3px rgba(0, 230, 118, 0.25);
}
#view-pulse .pulse-wave-pip-bar:nth-child(1) { animation-delay: 0s; }
#view-pulse .pulse-wave-pip-bar:nth-child(2) { animation-delay: 0.1s; }
#view-pulse .pulse-wave-pip-bar:nth-child(3) { animation-delay: 0.2s; }
#view-pulse .pulse-wave-pip-bar:nth-child(4) { animation-delay: 0.3s; }
#view-pulse .pulse-wave-pip-bar:nth-child(5) { animation-delay: 0.4s; }
#view-pulse .pulse-wave-pip-bar:nth-child(6) { animation-delay: 0.3s; }
#view-pulse .pulse-wave-pip-bar:nth-child(7) { animation-delay: 0.2s; }
#view-pulse .pulse-wave-pip-bar:nth-child(8) { animation-delay: 0.1s; }
#view-pulse .pulse-wave-pip-bar:nth-child(9) { animation-delay: 0s; }
#view-pulse .pulse-wave-pip-bar:nth-child(10) { animation-delay: 0.15s; }
@keyframes pulse-wavebar {
  0%, 100% { height: 2px; opacity: 0.2; }
  50% { height: 16px; opacity: 1; }
}

#view-pulse .pulse-s-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.22em;
  color: var(--txt3); text-transform: uppercase; margin-bottom: 6px;
  display: flex; align-items: center; gap: 7px; position: relative;
}
#view-pulse .pulse-s-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 5px rgba(0, 230, 118, 0.5); animation: pulse-dp 2s ease-in-out infinite;
}
@keyframes pulse-dp { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
#view-pulse .pulse-s-line1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 26px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--txt); line-height: 1.05; position: relative;
}
#view-pulse .pulse-s-line2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 26px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); line-height: 1.05; position: relative;
}

#view-pulse .pulse-slash-leagues { padding: 10px 0 12px; border-top: 1px solid var(--border); margin-top: 12px; }
#view-pulse .pulse-leagues-outer { overflow-x: auto; scrollbar-width: none; }
#view-pulse .pulse-leagues-outer::-webkit-scrollbar { display: none; }
#view-pulse .pulse-leagues-scroll { padding: 0; }
#view-pulse .pulse-leagues-layout {
  display: flex; align-items: stretch; gap: 10px;
}
#view-pulse .pulse-top-card {
  flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; min-width: 68px; padding: 10px 11px 8px;
  background: #0d1119cc; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font: inherit; color: inherit; text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
#view-pulse .pulse-top-card-line {
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; line-height: 0.92;
  letter-spacing: 0.04em; color: var(--txt3); transition: color 0.15s;
}
#view-pulse .pulse-top-card.on {
  border-color: rgba(0, 230, 118, 0.42);
  background: rgba(0, 230, 118, 0.07);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.1), inset 0 0 24px rgba(0, 230, 118, 0.04);
}
#view-pulse .pulse-top-card.on .pulse-top-card-line { color: var(--green); }
#view-pulse .pulse-leagues-layout.is-pick .pulse-top-card { opacity: 0.5; }
#view-pulse .pulse-leagues-layout.is-pick .pulse-top-card:hover { opacity: 0.85; }
#view-pulse .pulse-leagues-pick {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  overflow: hidden; transition: opacity 0.2s;
}
#view-pulse .pulse-leagues-rows-track {
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#view-pulse .pulse-leagues-rows-track::-webkit-scrollbar { display: none; }
#view-pulse .pulse-leagues-rows-inner {
  display: flex; flex-direction: column; gap: 5px; width: max-content;
}
#view-pulse .pulse-leagues-row {
  display: flex; align-items: baseline; flex-wrap: nowrap; width: max-content; line-height: 1;
}
#view-pulse .pulse-pick-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 6px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--txt3); line-height: 1;
  transition: color 0.15s, opacity 0.15s;
}
#view-pulse .pulse-pick-tag.on { color: var(--green); opacity: 0.85; }
#view-pulse .pulse-leagues-layout.is-top .pulse-leagues-pick { opacity: 0.32; }
#view-pulse .pulse-leagues-layout.is-top .pulse-leagues-pick .pulse-sl.on .pulse-sl-name { color: var(--txt3); }
#view-pulse .pulse-sl { cursor: pointer; flex-shrink: 0; position: relative; }
#view-pulse .pulse-sl-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 0.03em;
  color: var(--txt3); transition: color 0.15s; white-space: nowrap; display: block;
}
#view-pulse .pulse-sl.on .pulse-sl-name { color: var(--green); }
#view-pulse .pulse-sl-slash {
  font-family: 'IBM Plex Mono', monospace; font-weight: 300; font-size: 12px;
  color: var(--txt3); padding: 0 5px; flex-shrink: 0;
}
#view-pulse .pulse-top3 { padding: 0 16px; display: flex; flex-direction: column; gap: 5px; }
#view-pulse .pulse-sp-card {
  background: #0d1119cc; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; cursor: pointer; transition: border-color 0.2s; position: relative;
}
#view-pulse .pulse-sp-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--green); opacity: 0.25;
}
#view-pulse .pulse-sp-inner { padding: 14px 16px; }
#view-pulse .pulse-sp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
#view-pulse .pulse-sp-league {
  font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.18em;
  color: var(--txt3); text-transform: uppercase; margin-bottom: 6px;
}
#view-pulse .pulse-sp-teams-big {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 0.02em;
  color: var(--txt); line-height: 1; margin-bottom: 12px;
}
#view-pulse .pulse-sp-teams-big .sep { color: var(--txt3); font-size: 20px; margin: 0 4px; }
#view-pulse .pulse-sp-teams-mid {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 0.02em;
  color: var(--txt); line-height: 1.05; margin-bottom: 10px;
}
#view-pulse .pulse-sp-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#view-pulse .pulse-sp-left { display: flex; align-items: center; gap: 8px; }

#view-pulse .pulse-more-matches { padding: 0 16px; display: flex; flex-direction: column; gap: 4px; }
#view-pulse .pulse-mm-card {
  display: flex; align-items: center; padding: 10px 12px; background: #0d1119cc;
  border: 1px solid var(--border); border-radius: 6px; gap: 8px; cursor: pointer;
  transition: border-color 0.15s; overflow: hidden;
}
#view-pulse .pulse-mm-left {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
}
#view-pulse .pulse-mm-flag-slot {
  width: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
#view-pulse .pulse-mm-teams {
  flex: 1; min-width: 0;
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.02em; line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#view-pulse .pulse-mm-flag { font-size: 11px; line-height: 1; opacity: 0.9; }
#view-pulse .pulse-mm-flag-img { width: 11px; height: 11px; object-fit: contain; display: block; }
#view-pulse .pulse-mm-flag-txt {
  font-family: 'IBM Plex Mono', monospace; font-size: 6px; letter-spacing: 0.08em;
  color: var(--txt3); line-height: 1;
}
#view-pulse .pulse-mm-card.act-3 .pulse-mm-teams { font-size: 20px; color: var(--txt); }
#view-pulse .pulse-mm-card.act-2 .pulse-mm-teams { font-size: 17px; color: var(--txt2); }
#view-pulse .pulse-mm-card.act-1 .pulse-mm-teams { font-size: 14px; color: var(--txt3); }
#view-pulse .pulse-mm-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
#view-pulse .pulse-mm-meta-pill {
  width: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
#view-pulse .pulse-mm-meta-sig {
  width: 20px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: center;
}
#view-pulse .pulse-mm-meta-time {
  width: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end;
}
#view-pulse .pulse-mm-card .pulse-clarity-pill {
  font-size: 7px; font-weight: 500; letter-spacing: 0.05em;
  padding: 2px 5px; border-radius: 3px; line-height: 1.2;
}
#view-pulse .pulse-mm-card .pulse-sig-bars { height: 12px; gap: 2px; }
#view-pulse .pulse-mm-card .pulse-sig-bar { width: 3px; }
#view-pulse .pulse-mm-card .pulse-clock-wrap { gap: 3px; }
#view-pulse .pulse-mm-card .pulse-clock-icon { width: 9px; height: 9px; border-width: 1px; }
#view-pulse .pulse-mm-card .pulse-clock-h { font-size: 9px; }

#view-pulse .pulse-reveals-list { padding: 0 16px; display: flex; flex-direction: column; gap: 5px; }
#view-pulse .pulse-reveal-card {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 12px;
  border: 1px solid var(--border); border-left: 2px solid var(--txt3); border-radius: 6px;
  background: #0d1119cc; gap: 12px; opacity: 0.55;
}
#view-pulse .pulse-rev-teams {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 0.02em; color: var(--txt); line-height: 1;
}
#view-pulse .pulse-rev-league {
  font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.15em;
  color: var(--txt3); text-transform: uppercase; margin-top: 3px;
}
#view-pulse .pulse-rev-right { text-align: right; flex-shrink: 0; }
#view-pulse .pulse-rev-timer-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; color: var(--txt2); letter-spacing: 0.04em; line-height: 1;
}
#view-pulse .pulse-rev-timer-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.16em;
  color: var(--txt3); text-transform: uppercase; margin-top: 2px;
}

#view-pulse .pulse-empty {
  padding: 24px 20px; text-align: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--txt2); letter-spacing: 0.06em;
}
#view-pulse .pulse-empty-btn {
  margin-top: 12px; display: inline-block; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 0.08em; color: var(--green);
}

/* Modal (app-level) */
.pulse-mdl-overlay {
  position: fixed; inset: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: rgba(6, 8, 14, 0.88); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.pulse-mdl-overlay.open { opacity: 1; pointer-events: all; }
.pulse-mdl-card {
  width: 100%; max-height: 80vh; background: var(--bg2);
  border: 1px solid rgba(0, 230, 118, 0.15); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pulse-mdl-overlay.open .pulse-mdl-card { transform: scale(1); }
.pulse-mdl-top {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.pulse-mdl-league-label { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.08em; color: var(--txt2); }
.pulse-mdl-league-label.pulse-mdl-league-link {
  cursor: pointer; transition: color 0.15s;
}
.pulse-mdl-league-label.pulse-mdl-league-link:hover { color: var(--green); }
.pulse-mdl-x {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--txt3); cursor: pointer;
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px;
}
.pulse-mdl-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; }
.pulse-mdl-scroll::-webkit-scrollbar { display: none; }
.pulse-mdl-teams-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--border);
}
.pulse-mdl-team-col { display: flex; flex-direction: column; gap: 6px; }
.pulse-mdl-team-col.away { align-items: flex-end; }
.pulse-mdl-team-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 0.02em; color: var(--txt); line-height: 1;
}
.pulse-mdl-team-name.pulse-mdl-team-link {
  cursor: pointer;
  transition: color 0.15s;
}
.pulse-mdl-team-name.pulse-mdl-team-link:hover { color: var(--green); }
.pulse-mdl-scorers { display: flex; flex-direction: column; gap: 2px; }
.pulse-mdl-scorer {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 13px;
  color: var(--txt3); display: flex; align-items: center; gap: 5px; cursor: pointer;
}
.pulse-mdl-scorer--link { cursor: pointer; }
.pulse-mdl-scorer--link:hover .pulse-mdl-scorer-name { color: var(--green); }
.pulse-mdl-scorer:not(.pulse-mdl-scorer--link) { cursor: default; opacity: 0.85; }
.pulse-mdl-scorer.away { flex-direction: row-reverse; }
.pulse-mdl-scorer-min { color: var(--txt3); font-size: 10px; font-weight: 300; }
.pulse-mdl-scorer-name { color: var(--txt2); }
.pulse-mdl-score-center { display: flex; align-items: center; justify-content: center; padding: 4px 10px 0; }
.pulse-mdl-score-nums {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--txt); line-height: 1; letter-spacing: 0.04em;
}
.pulse-mdl-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; padding: 10px 16px; }
.pulse-mdl-stat {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 10px 6px; display: flex; align-items: baseline; gap: 6px;
}
.pulse-mdl-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 16px; line-height: 1; color: var(--txt); }
.pulse-mdl-stat-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: 0.12em;
  color: var(--txt3); text-transform: uppercase;
}
.pulse-mdl-bottom { padding: 12px 16px 14px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--bg2); }
.pulse-mdl-cta {
  width: 100%; padding: 14px; background: var(--green); border: none; border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.1em;
  color: var(--bg0); cursor: pointer;
}
.pulse-mdl-cta:disabled { opacity: 0.35; cursor: not-allowed; }
.pulse-mdl-hint {
  font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: 0.1em;
  color: var(--txt3); text-align: center; margin-top: 8px; text-transform: uppercase;
}
