@import url('/obs.css');

:root{
  --bg: rgba(10,14,26,0.15);
  --glow1: rgba(34,197,94,0.35);
  --glow2: rgba(56,189,248,0.35);
}

body.obs2{
  background: transparent;
}

html, body.obs2{
  background: transparent;
}

@keyframes float{
  0%,100%{ transform: translateY(0px) }
  50%{ transform: translateY(-4px) }
}

@keyframes pulseGlow{
  0%,100%{ filter: brightness(1) drop-shadow(0 0 8px rgba(34,197,94,0.3)) }
  50%{ filter: brightness(1.2) drop-shadow(0 0 24px rgba(34,197,94,0.6)) }
}

@keyframes fadeSlideUp{
  from{ opacity: 0; transform: translateY(12px) }
  to{ opacity: 1; transform: translateY(0) }
}

@keyframes borderGlow{
  0%,100%{ border-color: rgba(255,255,255,0.06) }
  50%{ border-color: rgba(255,255,255,0.18) }
}

@keyframes shimmer{
  0%{ background-position: -200% center }
  100%{ background-position: 200% center }
}

@keyframes progressPulse{
  0%,100%{ box-shadow: 0 0 6px rgba(34,197,94,0.3), 0 0 20px rgba(34,197,94,0.1) }
  50%{ box-shadow: 0 0 14px rgba(34,197,94,0.6), 0 0 40px rgba(56,189,248,0.25) }
}

@keyframes gradientShift{
  0%{ background-position: 0% 50% }
  100%{ background-position: 200% 50% }
}

.overlay2{
  width: 1920px;
  height: 1080px;
  box-sizing: border-box;
  padding: 0 0 10px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 6px;

  align-content: start;
  justify-content: stretch;
  justify-items: stretch;
  align-items: start;
}

@media (max-width: 1920px), (max-height: 1080px){
  .overlay2{
    width: 100vw;
    height: 100vh;
  }
}

.panel{
  animation: float 6s ease-in-out infinite, borderGlow 4s ease-in-out infinite;
}

.headerPanel{
  width: 100%;
  box-sizing: border-box;
  padding: 4px 28px;
  align-self: start;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(135deg, rgba(8,12,36,0.92), rgba(12,18,48,0.88));
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border: none;
}

.starfieldVideo{
  mix-blend-mode: screen;
}

.headerPanel .panelBg{
  inset: -80px -200px -40px -200px;
}

.headerPanel .panelBg::after{
  background: rgba(8,12,36,0.30);
}

.headerInner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
}

.headerSide{
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.headerLeft{
  justify-self: start;
}

.headerRight{
  justify-self: end;
  gap: 60px;
}

.secTotal{
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.overlay2 .brand{
  font-size: 48px;
  margin-bottom: 5px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow: none;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s linear infinite;
}

.brandOnly{line-height: 1}

.campaignLine{
  font-size: 14px;
  color: rgba(200,210,240,0.92);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.lifetimeLine{white-space: nowrap}

.streamStack{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.secCampaign{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.causeStack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.causeName{
  font-weight: 800;
  color: rgba(215,224,250,0.95);
}

.causeLabel{
  font-weight: 500;
  color: rgba(170,185,220,0.8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

.causeAmount{
  font-weight: 900;
  color: rgba(215,224,250,0.95);
}

.streamLabel{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(180,196,240,0.8);
  margin-bottom: 2px;
}

.streamValue{
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.streamCount{
  font-size: 13px;
  font-weight: 600;
  color: rgba(190,210,245,0.85);
}

.todayStack{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.updatedAtLine{opacity: 0.75}

.totalBlock{display:block}

.totalTopRow{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap: 5px;
}

.totalTopRow .value{
  font-size: 68px;
  color: var(--accent1);
}

.barGoalRow{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  margin-top: 0;
}

.barGoalRow .progress{
  grid-column: 2;
  margin-top: 0;
  width: 320px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.overlay2 .progressBar{
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent1));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

.barGoalRow .goalInline{
  grid-column: 3;
  justify-self: start;
  white-space: nowrap;
  line-height: 1.2;
}

.overlay2 .value{
  font-size: 25px;
}

.overlay2 .progress{
  display: block;
  margin-top: 0;
  height: 16px;
}

.overlay2 .subrow{margin-top: 0; font-size: 14px}
.overlay2 .subrow.subtle{font-size: 16px; color: rgba(220,228,255,0.95)}

.metaLine{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  align-items:baseline;
  justify-content: center;
}

.overlay2 .todayRow{
  margin-top: 0;
  justify-content: flex-end;
}

.overlay2 .todayChip{
  font-size: 15px;
  padding: 5px 5px;
  border-radius: 8px;
  border: none;
  background: rgba(10,14,36,0.45);
}

.overlay2 .todayChip.primary{
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  border: none;
}

.donationsPanel{
  width: 420px;
  max-width: 100%;
  padding: 8px 10px;
  align-self: start;
  justify-self: start;
  height: auto;
  background: linear-gradient(135deg, rgba(8,12,36,0.75), rgba(12,18,48,0.70));
  border: none;
}

.donationsHeaderRow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 5px;
}

.donationsPanel .label{
  color: rgba(215,224,250,0.95);
}

.overlay2 .donations{
  margin-top: 6px;
  gap: 8px;
}

.overlay2 .donation{
  padding: 8px 12px;
  border-radius: 10px;
  animation: fadeSlideUp 0.5s ease-out both;
  background: rgba(20,28,60,0.70);
  border: 1px solid rgba(255,255,255,0.06);
}

.overlay2 .donation.fading{
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.overlay2 .donation:nth-child(1){ animation-delay: 0s }
.overlay2 .donation:nth-child(2){ animation-delay: 0.1s }
.overlay2 .donation:nth-child(3){ animation-delay: 0.2s }

.overlay2 .name{
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.overlay2 .left{
  max-width: 220px;
  overflow: hidden;
}

.overlay2 .comment{
  font-size: 12px;
  color: rgba(200,212,245,0.85);
  margin-top: 3px;
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.overlay2 .rewardList{
  padding: 0 0 0 16px;
  margin: 3px 0 0;
  list-style: disc;
}

.overlay2 .rewardItem{
  font-size: 12px;
  color: rgba(134,239,172,0.9);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay2 .amount{
  font-size: 16px;
  font-weight: 800;
}

.overlay2 .time{
  font-size: 11px;
  color: rgba(190,199,230,0.85);
  margin-top: 2px;
}
