/* Home progress, moments, history explorer, and launch cards */

/* Home mini progress */
.home-progress-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 15px;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(96,212,244,0.16), transparent 34%), linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(96,212,244,0.14);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  transform-origin: center;
  transform-style: preserve-3d;
}
.home-progress-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(255,255,255,0.13) 42%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.home-progress-card.flipping {
  animation: homeProgressFlip .62s var(--spring) both;
}
.home-progress-card.flipping::after {
  animation: homeProgressSheen .62s ease both;
}
@keyframes homeProgressFlip {
  0% { opacity: .55; transform: perspective(900px) rotateY(-8deg) translateY(10px) scale(.975); }
  58% { opacity: 1; transform: perspective(900px) rotateY(3deg) translateY(-2px) scale(1.01); }
  100% { opacity: 1; transform: perspective(900px) rotateY(0deg) translateY(0) scale(1); }
}
@keyframes homeProgressSheen {
  0% { opacity: 0; transform: translateX(-120%); }
  28% { opacity: .8; }
  100% { opacity: 0; transform: translateX(120%); }
}
.home-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.home-progress-kicker {
  font-size: 8px;
  letter-spacing: 2.7px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 3px;
}
.home-progress-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: .95;
  letter-spacing: .8px;
}
.home-progress-periods {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-progress-period {
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: var(--muted2);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
}
.home-progress-period.active {
  color: #050607;
  border-color: rgba(232,244,77,0.42);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(232,244,77,0.18);
}
.home-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.home-progress-card.flipping .home-progress-grid,
.home-progress-card.flipping .home-progress-title {
  animation: homeProgressContentIn .52s var(--spring) both;
}
@keyframes homeProgressContentIn {
  from { opacity: .15; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-progress-metric {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.075);
}
.home-progress-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .6px;
  color: var(--text);
  white-space: nowrap;
}
.home-progress-label {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.home-progress-bar {
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.home-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--accent));
}
.home-progress-card.tick .home-progress-bar span {
  animation: homeProgressFill 10s linear forwards;
}
@keyframes homeProgressFill {
  from { width: 0; }
  to { width: 100%; }
}

.home-moments-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(232,244,77,0.13), transparent 34%),
    radial-gradient(circle at 96% 18%, rgba(96,212,244,0.12), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.024));
  border: 1px solid rgba(255,255,255,0.085);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.home-moments-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -42% 18%;
  height: 110px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(232,244,77,0.12), transparent 64%);
  filter: blur(18px);
  opacity: .7;
}
.home-moments-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.home-moments-kicker {
  font-size: 8px;
  letter-spacing: 2.7px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 950;
  margin-bottom: 4px;
}
.home-moments-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 29px;
  line-height: .95;
  letter-spacing: .8px;
}
.home-moments-sub {
  margin-top: 5px;
  color: var(--muted2);
  font-size: 11px;
  line-height: 1.35;
}
.home-moments-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(232,244,77,0.10);
  border: 1px solid rgba(232,244,77,0.20);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.home-moments-list {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 4px;
}
.home-moment-item {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.065);
  cursor: pointer;
  transition: transform .22s var(--spring), border-color .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.home-moment-item:first-child { border-top: 0; }
.home-moment-item:active {
  transform: scale(.99);
  background: rgba(255,255,255,0.035);
}
.home-moment-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 14px rgba(0,0,0,0.18);
  font-size: 15px;
  filter: saturate(.92) contrast(1.03);
}
.home-moment-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-moment-icon.pr-icon,
.home-moment-icon.volume-icon {
  color: var(--accent);
}
.home-moment-icon.time-icon,
.home-moment-icon.set-icon {
  color: var(--blue);
}
.home-moment-main { min-width: 0; }
.home-moment-label {
  font-size: 7px;
  letter-spacing: 1.45px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 2px;
}
.home-moment-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-moment-sub {
  margin-top: 1px;
  color: var(--muted2);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-moment-value {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(96,212,244,0.09);
  border: 1px solid rgba(96,212,244,0.18);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}
.home-moment-item.pr .home-moment-value,
.home-moment-item.pr .home-moment-icon {
  color: var(--accent);
  background: rgba(232,244,77,0.10);
  border-color: rgba(232,244,77,0.20);
}
.home-moments-empty {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.home-history-card,
.history-explorer,
.history-detail-card,
.history-day-card,
.history-legacy-shell {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.home-history-card,
.history-explorer,
.history-detail-card,
.history-legacy-shell {
  border-radius: 22px;
}
.home-history-card {
  padding: 18px;
  margin-bottom: 24px;
}
.home-history-head,
.history-toolbar,
.history-group-head,
.history-rich-head,
.history-ex-row-head,
.history-detail-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-history-head { margin-bottom: 14px; }
.home-history-title,
.history-toolbar-title,
.history-group-title {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}
.home-history-title { font-size: 24px; }
.history-toolbar-title { font-size: 28px; }
.history-group-title { font-size: 22px; }
.home-history-sub,
.history-toolbar-sub,
.history-group-meta,
.history-rich-date,
.history-ex-date,
.history-empty-subtle {
  font-size: 11px;
  color: var(--muted2);
}
.home-history-link {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.home-history-link:active,
.history-filter-btn:active,
.history-rich-card:active {
  transform: scale(0.97);
}
.home-history-list,
.history-group-list,
.history-legacy-list,
.history-day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.home-history-item:first-child { border-top: none; padding-top: 0; }
.home-history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.home-history-item-main { flex: 1; min-width: 0; }
.home-history-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-history-item-meta {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted2);
}
.home-history-item-badge,
.history-rich-badge,
.history-set-chip,
.history-record-tag,
.history-filter-btn {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.home-history-item-badge {
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.history-explorer,
.history-legacy-shell {
  padding: 18px;
  margin-bottom: 24px;
}
.history-toolbar {
  align-items: flex-start;
  margin-bottom: 16px;
}
.history-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.history-filter-btn {
  padding: 8px 12px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.history-filter-btn.active {
  background: rgba(232,244,77,0.12);
  border-color: rgba(232,244,77,0.28);
  color: var(--accent);
}
.history-group { margin-bottom: 20px; }
.history-group:last-child { margin-bottom: 0; }
.history-group-head { margin-bottom: 10px; }
.history-rich-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}
.history-rich-card + .history-rich-card { margin-top: 10px; }
.history-rich-title-wrap { flex: 1; min-width: 0; }
.history-rich-date {
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.history-rich-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-rich-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.history-rich-badge {
  padding: 5px 8px;
  font-size: 10px;
  color: var(--muted2);
  white-space: nowrap;
}
.history-rich-badge.accent {
  color: var(--accent);
  border-color: rgba(232,244,77,0.22);
  background: rgba(232,244,77,0.08);
}
.history-rich-badge.blue {
  color: var(--blue);
  border-color: rgba(96,212,244,0.22);
  background: rgba(96,212,244,0.08);
}
.history-rich-badge.green {
  color: var(--green);
  border-color: rgba(77,255,160,0.22);
  background: rgba(77,255,160,0.08);
}
.history-rich-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}
.history-metric-chip {
  padding: 10px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}
.history-metric-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--text);
}
.history-metric-label {
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.history-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-ex-row {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.05);
}
.history-ex-row-head { margin-bottom: 8px; }
.history-ex-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.history-ex-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.history-set-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.history-set-chip {
  padding: 5px 9px;
  font-size: 10px;
  color: var(--text2);
}
.history-records-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.history-record-tag {
  padding: 5px 8px;
  font-size: 10px;
  color: var(--accent);
  border-color: rgba(232,244,77,0.22);
  background: rgba(232,244,77,0.08);
}
.history-empty {
  padding: 18px 10px;
  text-align: center;
}
.history-empty-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.weight-hero-shell .history-toolbar-title {
  font-size: 42px;
  line-height: 0.95;
}
.weight-hero-shell .history-toolbar-sub {
  max-width: 420px;
}
.weight-hero-shell .weight-input-form {
  margin-bottom: 18px;
}
.hero-launch-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-launch-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,26,32,0.58), rgba(255,255,255,0.025));
  border: 1px solid rgba(96,212,244,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
  cursor: pointer;
  transition: all 0.22s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.hero-launch-card.is-today {
  border-color: rgba(232,244,77,0.28);
  background: linear-gradient(135deg, rgba(232,244,77,0.085), rgba(14,26,32,0.56));
}
.hero-launch-card:active { transform: scale(0.98); border-color: rgba(232,244,77,0.26); }
.hero-launch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.hero-launch-info { flex: 1; min-width: 0; }
.hero-launch-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-launch-meta {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted2);
}
.hero-launch-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  font-size: 10px;
  color: var(--text2);
  white-space: nowrap;
}
.hero-launch-card.is-today .hero-launch-badge {
  color: #050607;
  background: var(--accent);
  border-color: rgba(232,244,77,0.42);
  font-weight: 900;
}
