/* =============================================================
   CyberSamSU Home v2 Styles (prefix: hv2-)
   Uses design-system.css tokens across all 5 themes.
   ============================================================= */

/* ---------- Shared section rhythm & headings ---------- */
.hv2-page {
  position: relative;
  overflow-x: clip;
}

.hv2-section {
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.hv2-section--surface {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hv2-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  max-width: 720px;
}

.hv2-section-head--split {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hv2-section-head__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 680px;
}

.hv2-h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0;
}

.hv2-lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
}

.hv2-link-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-decoration: none;
  padding: 6px 2px;
  border-radius: var(--r-xs);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.hv2-link-action:hover {
  color: var(--accent-hover);
}

.hv2-link-action svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.hv2-link-action:hover svg {
  transform: translateX(3px);
}

.hv2-link-action:focus-visible,
.hv2-feature-card:focus-visible,
.hv2-champion-card:focus-visible,
.hv2-news-card:focus-visible,
.hv2-quick-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hv2-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 68px) 0 clamp(32px, 4vw, 52px);
}

.hv2-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 70% at 65% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 65% 30%, #000 10%, transparent 78%);
}

.hv2-hero__hex {
  mask-image: radial-gradient(ellipse at 75% 28%, #000 0%, transparent 66%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 28%, #000 0%, transparent 66%);
}

.hv2-hero__glow-a {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hv2-hero__glow-b {
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-2-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hv2-hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4.5vw, 60px);
  align-items: center;
}

.hv2-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hv2-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hv2-eyebrow-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: hv2-pulse 2s ease-in-out infinite;
}

@keyframes hv2-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hv2-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0;
}

.hv2-hero__gradient {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hv2-hero__lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 54ch;
  margin: 0;
}

.hv2-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hv2-hero__trust {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.hv2-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hv2-hero__trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Hero Right Stage (Non-overlapping Terminal + Companion Cards) ---------- */
.hv2-hero__stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hv2-terminal {
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: var(--shadow-lg), 0 0 42px -18px var(--accent-soft);
}

.hv2-terminal__bar {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hv2-terminal__bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hv2-terminal__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hv2-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hv2-terminal__dot--r { background: #ff5f56; }
.hv2-terminal__dot--y { background: #ffbd2e; }
.hv2-terminal__dot--g { background: #27c93f; }

.hv2-terminal__label {
  font-size: 11px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv2-terminal__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.hv2-terminal__body {
  padding: 16px 18px;
  color: var(--fg);
  overflow-x: auto;
}

.hv2-terminal__line {
  white-space: nowrap;
}

.hv2-terminal__line--gap {
  margin-top: 8px;
}

.hv2-terminal__ok {
  margin-top: 6px;
  padding: 4px 10px;
  border-left: 2px solid var(--success);
  background: var(--success-soft);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hv2-terminal .prompt { color: var(--accent); font-weight: var(--fw-semibold); }
.hv2-terminal .muted  { color: var(--fg-muted); }
.hv2-terminal .hi     { color: var(--accent-2); }
.hv2-terminal .warn   { color: var(--warning); }

.hv2-cursor {
  display: inline-block;
  background: var(--accent);
  color: var(--fg-on-accent);
  padding: 0 4px;
  border-radius: 2px;
  animation: hv2-blink 1.2s steps(2, start) infinite;
}

@keyframes hv2-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

.hv2-hero__dock {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 14px;
}

.hv2-flag-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.hv2-flag-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hv2-flag-card__pts {
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  font-size: 13px;
  color: var(--accent);
}

.hv2-flag-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  line-height: 1.3;
  color: var(--fg);
}

.hv2-flag-card__box {
  padding: 8px 10px;
  background: var(--surface-sunken);
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hv2-flag-card__box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hv2-flag-card__box-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.hv2-rank-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.hv2-rank-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hv2-rank-card__num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 30px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.hv2-rank-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* ---------- Hero Social Proof Strip ---------- */
.hv2-proof-strip {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hv2-proof-item {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.hv2-proof-item:last-child {
  border-right: none;
}

.hv2-proof-item__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hv2-proof-item__num {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.hv2-proof-item__label {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Live Pulse & Daily Challenge Band ---------- */
.hv2-pulse {
  padding: 0 0 clamp(32px, 4vw, 48px);
}

.hv2-pulse__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv2-live-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 28px -12px rgba(248, 81, 73, 0.2);
}

.hv2-live-banner__info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hv2-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--danger-soft);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.hv2-live-banner__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 18px;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.hv2-live-banner__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.hv2-live-wrap .live-stats {
  justify-content: flex-start !important;
  gap: 10px !important;
}

.hv2-live-wrap .live-stats > .ds-card {
  border-radius: var(--r-pill);
  background: var(--surface);
  border-color: var(--border);
  padding: 8px 14px !important;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.hv2-live-wrap .live-stats > a.ds-card:hover {
  border-color: var(--accent-border);
}

.hv2-daily-wrap [data-testid="daily-challenge"] {
  border-radius: var(--r-lg) !important;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-raised) 100%) !important;
  border-left: 3px solid var(--accent) !important;
  padding: 20px 24px !important;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hv2-daily-wrap [data-testid="daily-challenge"]:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

/* ---------- Features Grid ---------- */
.hv2-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hv2-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hv2-feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-border), var(--shadow-md);
  color: inherit;
}

.hv2-feature-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hv2-feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hv2-feature-card__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
}

.hv2-feature-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 18px;
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hv2-feature-card__desc {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--fg-muted);
}

.hv2-feature-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
}

.hv2-feature-card__foot svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.hv2-feature-card:hover .hv2-feature-card__foot svg {
  transform: translateX(3px);
}

/* ---------- CTF Intro + Rank Progression ---------- */
.hv2-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.hv2-intro__prose {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hv2-intro__prose p {
  font-size: clamp(14.5px, 1.05vw, 16px);
  line-height: 1.75;
  color: var(--fg-muted);
  margin: 0;
}

.hv2-intro__prose strong {
  color: var(--fg);
  font-weight: var(--fw-semibold);
}

.hv2-intro__prose em {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.hv2-intro__prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-xs);
  white-space: nowrap;
}

.hv2-intro__callout {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.hv2-intro__panel {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

.hv2-intro__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.hv2-intro__panel-title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 16px;
  color: var(--fg);
}

.hv2-ranks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hv2-rank-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  min-width: 0;
}

.hv2-rank-step--apex {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.hv2-rank-step__img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.hv2-rank-step__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

.hv2-rank-step__name {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv2-intro__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.hv2-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  color: var(--fg-muted);
  text-decoration: none;
  text-align: center;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.hv2-quick-link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* ---------- Red & Blue Team Sections ---------- */
.hv2-team {
  padding: clamp(52px, 6vw, 80px) 24px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hv2-team--red {
  --hv2-team-color: #f85149;
  --hv2-team-soft: rgba(248, 81, 73, 0.12);
  --hv2-team-border: rgba(248, 81, 73, 0.32);
  --hv2-team-chip-fg: #ff7b72;
  background: radial-gradient(ellipse 65% 80% at 15% 50%, rgba(248, 81, 73, 0.08), transparent 70%);
}

.hv2-team--blue {
  --hv2-team-color: #58a6ff;
  --hv2-team-soft: rgba(88, 166, 255, 0.12);
  --hv2-team-border: rgba(88, 166, 255, 0.32);
  --hv2-team-chip-fg: #79c0ff;
  background: radial-gradient(ellipse 65% 80% at 85% 50%, rgba(88, 166, 255, 0.08), transparent 70%);
}

[data-theme="paper"] .hv2-team--red {
  --hv2-team-color: #cf222e;
  --hv2-team-soft: rgba(207, 34, 46, 0.09);
  --hv2-team-border: rgba(207, 34, 46, 0.28);
  --hv2-team-chip-fg: #a40e26;
}

[data-theme="paper"] .hv2-team--blue {
  --hv2-team-color: #0969da;
  --hv2-team-soft: rgba(9, 105, 218, 0.09);
  --hv2-team-border: rgba(9, 105, 218, 0.28);
  --hv2-team-chip-fg: #0550ae;
}

.hv2-team__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "video text";
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.hv2-team__inner--reverse {
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "text video";
}

.hv2-team__visual {
  grid-area: video;
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 300px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-sunken);
  border: 1px solid var(--hv2-team-border);
  box-shadow: var(--shadow-lg), 0 20px 56px -24px var(--hv2-team-soft);
  isolation: isolate;
}

.hv2-team__text {
  grid-area: text;
  min-width: 0;
}

.hv2-team .team-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.hv2-team .team-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.58) 100%);
}

.hv2-team .team-video__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f0f6fc;
}

.hv2-team .team-video__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hv2-team-color);
  box-shadow: 0 0 10px var(--hv2-team-color);
  animation: hv2-pulse 1.8s ease-in-out infinite;
}

.hv2-team__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--hv2-team-soft);
  border: 1px solid var(--hv2-team-border);
  color: var(--hv2-team-chip-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hv2-team__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hv2-team-color);
  box-shadow: 0 0 10px var(--hv2-team-color);
}

.hv2-team__h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 14px;
}

.hv2-team__accent {
  color: var(--hv2-team-chip-fg);
}

.hv2-team__lead {
  font-size: clamp(14.5px, 1.25vw, 16px);
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 24px;
  max-width: 64ch;
}

.hv2-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hv2-team__col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.hv2-team__col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-subtle);
  margin-bottom: 12px;
}

.hv2-team__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hv2-team__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.45;
}

.hv2-team__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--hv2-team-color);
  box-shadow: 0 0 6px var(--hv2-team-color);
}

.hv2-team__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hv2-tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--hv2-team-soft);
  border: 1px solid var(--hv2-team-border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: var(--fw-medium);
  color: var(--hv2-team-chip-fg);
}

.hv2-team__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Platform Stats ---------- */
.hv2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hv2-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hv2-stat-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}

.hv2-stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.hv2-stat-card__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.hv2-stat-card__num {
  font-variant-numeric: tabular-nums;
}

/* ---------- Champions Podium ---------- */
.hv2-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.hv2-champion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hv2-champion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  color: inherit;
}

.hv2-champion-card--1 {
  border-color: rgba(242, 201, 76, 0.38);
  background: linear-gradient(180deg, rgba(242, 201, 76, 0.06) 0%, var(--surface) 60%);
}

.hv2-champion-card--2 {
  border-color: rgba(198, 209, 219, 0.3);
}

.hv2-champion-card--3 {
  border-color: rgba(217, 138, 76, 0.32);
}

.hv2-champion-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hv2-champion-card__place {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.hv2-champion-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--fw-bold);
  color: var(--fg);
}

.hv2-champion-card__avatar { overflow: hidden; }
.hv2-champion-card__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hv2-champion-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--fw-semibold);
  color: var(--fg);
  overflow-wrap: anywhere;
}

.hv2-champion-card__team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* ---------- News Grid ---------- */
.hv2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.hv2-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hv2-news-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.hv2-news-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hv2-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.hv2-news-card:hover .hv2-news-card__img {
  transform: scale(1.03);
}

.hv2-news-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--fg-subtle);
  background: radial-gradient(circle at center, var(--accent-soft), transparent 72%);
}

.hv2-news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hv2-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hv2-news-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hv2-news-card__more {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--accent);
}

.hv2-news-card__more svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.hv2-news-card:hover .hv2-news-card__more svg {
  transform: translateX(3px);
}

/* ---------- Final CTA ---------- */
.hv2-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-raised) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hv2-cta__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hv2-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hv2-cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 720px;
  margin: 0;
  line-height: 1.1;
}

.hv2-cta__accent {
  color: var(--accent);
}

.hv2-cta__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

.hv2-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hv2-hero__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hv2-intro__grid {
    grid-template-columns: 1fr;
  }

  .hv2-intro__panel {
    position: static;
  }

  .hv2-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hv2-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hv2-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hv2-team__inner,
  .hv2-team__inner--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "video" "text";
    gap: 28px;
    justify-items: center;
  }

  .hv2-team__visual {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .hv2-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hv2-proof-item:nth-child(2n) {
    border-right: none;
  }

  .hv2-proof-item:nth-child(1),
  .hv2-proof-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .hv2-live-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hv2-live-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hv2-hero__dock {
    grid-template-columns: 1fr;
  }

  .hv2-features-grid,
  .hv2-stats-grid,
  .hv2-news-grid,
  .hv2-team__grid {
    grid-template-columns: 1fr;
  }

  .hv2-ranks-grid {
    grid-template-columns: 1fr;
  }

  .hv2-intro__quick {
    grid-template-columns: 1fr;
  }

  .hv2-team__visual {
    max-width: 220px;
    border-radius: var(--r-lg);
  }

  .hv2-team__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hv2-hero__actions .btn,
  .hv2-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hv2-daily-wrap [data-testid="daily-challenge"] {
    padding: 16px !important;
  }

  .hv2-daily-wrap [data-testid="daily-challenge"] .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hv2-proof-strip {
    grid-template-columns: 1fr;
  }

  .hv2-proof-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hv2-proof-item:last-child {
    border-bottom: none;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hv2-eyebrow-pill__dot,
  .hv2-team .team-video__badge-dot,
  .hv2-cursor,
  .live-dot {
    animation: none !important;
  }

  .hv2-feature-card,
  .hv2-champion-card,
  .hv2-news-card,
  .hv2-news-card__img,
  .hv2-link-action svg,
  .hv2-feature-card__foot svg,
  .hv2-news-card__more svg {
    transition: none !important;
    transform: none !important;
  }
}

/* Mobil: bezak yorug'lik elementlari gorizontal aylantirishni keltirib chiqarmasin */
.hv2-hero,.hv2-cta,.hv2-footer,.hv2-hero__stage{overflow-x:clip}
.hv2-terminal{max-width:100%;overflow:hidden}
.hv2-terminal pre,.hv2-terminal code{white-space:pre-wrap;overflow-wrap:anywhere}

/* =====================================================================
   Interaktiv `samsu@ctf` terminali (partials/home-terminal.blade.php + assets/js/home-terminal.js)
   ===================================================================== */
.hv2-term { position: relative; transition: border-color .3s, box-shadow .3s; }
.hv2-term:focus-within { border-color: var(--accent-border); box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent-border), 0 0 60px -16px var(--accent-soft); }
.hv2-term .hv2-terminal__bar { position: relative; }
/* Sarlavha ostida sekin yuguruvchi "skaner" chizig'i */
.hv2-term .hv2-terminal__bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: hv2-term-scan 5.5s linear infinite; opacity: .7;
}
@keyframes hv2-term-scan { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.hv2-term__sep { color: var(--fg-subtle); margin: 0 2px; }
.hv2-term__meta { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 11px; color: var(--fg-muted); }
.hv2-term__online { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent); font-weight: var(--fw-semibold); }
.hv2-term__beacon { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: hv2-term-beacon 1.8s ease-out infinite; }
@keyframes hv2-term-beacon { 0% { box-shadow: 0 0 0 0 var(--accent-border); } 100% { box-shadow: 0 0 0 7px transparent; } }
.hv2-term__clock { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.hv2-term__screen {
  position: relative; height: 292px; overflow-y: auto; overflow-x: hidden; padding: 14px 18px 10px;
  color: var(--fg); cursor: text;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.hv2-term__screen::-webkit-scrollbar { width: 6px; }
.hv2-term__screen::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
/* CRT: juda yengil skan chiziqlari + chetlarda soya (matn o'qilishiga xalaqit bermaydi) */
.hv2-term::after {
  content: ""; position: absolute; inset: 41px 0 0 0; pointer-events: none; border-radius: 0 0 var(--r-lg) var(--r-lg);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,.28) 100%);
}
[data-theme="paper"] .hv2-term::after { background: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px); }

.hv2-term__out { display: flex; flex-direction: column; }
.hv2-term .t-line { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.7em; }
.hv2-term .t-gap { height: 8px; }
.hv2-term .t-prompt { color: var(--accent); font-weight: var(--fw-semibold); text-shadow: 0 0 10px var(--accent-soft); margin-right: 8px; white-space: nowrap; }
.hv2-term .t-typed { color: var(--fg); }
.hv2-term .t-caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: hv2-blink 1s steps(2, start) infinite; }
.hv2-term .t-muted { color: var(--fg-muted); }
.hv2-term .t-strong { color: var(--fg); font-weight: var(--fw-semibold); }
.hv2-term .t-accent { color: var(--accent); }
.hv2-term .t-ok { color: var(--success); }
.hv2-term .t-err { color: var(--danger); }
.hv2-term .t-tag { font-weight: var(--fw-bold); }
.hv2-term .t-tag--ok { color: var(--success); }
.hv2-term .t-tag--err { color: var(--danger); }
.hv2-term .t-tag--warn { color: var(--warning); }
.hv2-term .t-tag--info { color: var(--accent-2); }
.hv2-term .t-link { color: var(--accent); text-decoration: underline dotted; text-underline-offset: 3px; }
.hv2-term .t-link:hover { text-decoration-style: solid; text-shadow: 0 0 12px var(--accent-soft); }
.hv2-term .t-row { display: flex; align-items: baseline; gap: 8px; max-width: 420px; }
.hv2-term .t-row .t-key { color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-term .t-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--border-strong); transform: translateY(-4px); }
.hv2-term .t-val { color: var(--fg); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hv2-term .t-spark { color: var(--accent); letter-spacing: 1px; text-shadow: 0 0 10px var(--accent-soft); }
.hv2-term .t-help { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.hv2-term .t-help__cmd { all: unset; color: var(--accent-2); font-weight: var(--fw-semibold); cursor: pointer; justify-self: start; }
.hv2-term .t-help__cmd:hover, .hv2-term .t-help__cmd:focus-visible { color: var(--accent); text-decoration: underline; }
.hv2-term .t-top { max-width: 460px; }
.hv2-term .t-place { width: 28px; flex-shrink: 0; font-weight: var(--fw-bold); color: var(--fg-subtle); }
.hv2-term .t-top--1 .t-place { color: #f5c542; text-shadow: 0 0 10px rgba(245,197,66,.45); }
.hv2-term .t-top--2 .t-place { color: #c9d1d9; }
.hv2-term .t-top--3 .t-place { color: #e08a4c; }
.hv2-term .t-top .t-key { color: var(--fg); }
.hv2-term .t-top__solved { font-size: 11px; white-space: nowrap; }
.hv2-term .t-ls { display: grid; grid-template-columns: minmax(80px, 150px) auto auto; gap: 10px; align-items: baseline; justify-content: start; }
.hv2-term .t-ls .t-key { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-term .t-bar { letter-spacing: -1px; }
.hv2-term .t-bar__fill { color: var(--accent); }
.hv2-term .t-bar__rest { color: var(--border-strong); }
.hv2-term .t-dir { color: var(--accent-2); font-weight: var(--fw-semibold); }
.hv2-term .t-hidden { color: var(--warning); }
.hv2-term .t-banner { color: var(--accent); font-weight: var(--fw-bold); text-shadow: 0 0 14px var(--accent); }

.hv2-term__input { display: flex; align-items: center; margin-top: 2px; }
.hv2-term__input[hidden] { display: none; }
.hv2-term__input input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0;
  font: inherit; color: var(--fg); caret-color: var(--accent);
}
.hv2-term__input input::placeholder { color: var(--fg-subtle); opacity: .7; transition: opacity .3s; }

.hv2-term__chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 12px; border-top: 1px solid var(--border); background: var(--surface); position: relative; z-index: 1; }
.hv2-term__chips[hidden] { display: none; }
.hv2-term__chip {
  font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-sunken); border: 1px solid var(--border); color: var(--fg-muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.hv2-term__chip span { color: var(--accent); }
.hv2-term__chip:hover, .hv2-term__chip:focus-visible { color: var(--fg); border-color: var(--accent-border); background: var(--accent-soft); transform: translateY(-1px); outline: none; }
.hv2-term__chip:active { transform: translateY(0); }

/* Mini-CTF bayrog'i olinganda — terminal bir lahza porlaydi */
.hv2-term.is-captured { animation: hv2-term-captured 1.6s ease-out; }
@keyframes hv2-term-captured {
  0% { box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent), 0 0 90px 4px var(--accent-border); }
  100% { box-shadow: var(--shadow-lg), 0 0 42px -18px var(--accent-soft); }
}

/* ---------- Faollik kartasi (terminal ostida) ---------- */
.hv2-pulse-card {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: 14px 16px 12px;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.hv2-pulse-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hv2-pulse-card__label { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.hv2-pulse-card__readout { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: var(--fw-semibold); text-align: right; font-variant-numeric: tabular-nums; }
.hv2-pulse-card__chart { width: 100%; height: 56px; display: block; overflow: visible; cursor: crosshair; }
.hv2-pulse-card__line { filter: drop-shadow(0 0 4px var(--accent-soft)); stroke-dasharray: 600; stroke-dashoffset: 600; animation: hv2-spark-draw 1.6s .3s ease-out forwards; }
@keyframes hv2-spark-draw { to { stroke-dashoffset: 0; } }
.hv2-pulse-card__dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; opacity: 0; transition: opacity .15s, r .15s; }
.hv2-pulse-card__dot.is-last { opacity: 1; fill: var(--accent); }
.hv2-pulse-card__dot.is-active { opacity: 1; r: 4; fill: var(--accent); }
.hv2-pulse-card__guide { stroke: var(--accent-border); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.hv2-pulse-card__guide.is-on { opacity: 1; }
.hv2-pulse-card__foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted); }
.hv2-pulse-card__foot strong { color: var(--fg); }
.hv2-pulse-card__delta { display: inline-flex; align-items: center; gap: 4px; }
.hv2-pulse-card__delta.is-up { color: var(--success); }
.hv2-pulse-card__delta.is-down { color: var(--danger); }
.hv2-rank-card--link { text-decoration: none; transition: border-color .2s, transform .2s; }
.hv2-rank-card--link:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.hv2-rank-card__name { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 20px; line-height: 1.15; color: var(--fg); overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .hv2-term__screen { height: 250px; padding: 12px 14px 8px; font-size: 12px; }
  .hv2-term .t-help { grid-template-columns: 64px 1fr; }
  .hv2-term__meta .hv2-term__clock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv2-term .hv2-terminal__bar::after, .hv2-term__beacon, .hv2-term .t-caret, .hv2-pulse-card__line, .hv2-term.is-captured { animation: none !important; }
  .hv2-pulse-card__line { stroke-dashoffset: 0; }
  .hv2-term__screen { scroll-behavior: auto; }
}
