* { margin: 0; padding: 0; box-sizing: border-box; }

body { overflow: hidden; background: transparent; }

#panel-container {
  width: 100vw; height: 100vh;
  position: relative; overflow: hidden;
}

/* ── ウィジェット共通 ── */
.widget {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s;
}

/* ── 目標バー ── */
.widget-goal {
  padding: 12px 20px;
  border-radius: 10px;
}
.goal-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.goal-bar-wrap {
  width: 100%;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.goal-bar-bg {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}
.goal-bar-fill {
  position: absolute; top: 0; left: 0;
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
}
.goal-numbers {
  display: flex; justify-content: space-between;
  font-size: 12px; margin-top: 4px; opacity: 0.8;
}
.goal-value {
  font-size: 24px; font-weight: 900;
  text-align: center; margin-top: 2px;
}

/* ── 配信時間 ── */
.widget-clock {
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
}
.clock-label { font-size: 12px; opacity: 0.7; }
.clock-time {
  font-size: 36px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

/* ── テキスト ── */
.widget-text {
  padding: 10px 16px;
  border-radius: 8px;
}
.text-content {
  line-height: 1.5;
}

/* ── スクロールテキスト（ティッカー） ── */
.widget-ticker {
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  animation: ticker-scroll linear infinite;
  padding-left: 100%;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ── 最新イベント ── */
.widget-event {
  padding: 12px 16px;
  border-radius: 10px;
}
.event-label { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.1em; }
.event-name { font-size: 20px; font-weight: 700; }
.event-detail { font-size: 13px; opacity: 0.7; }

/* ── SNSリンク ── */
.widget-social {
  padding: 10px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.social-icon { font-size: 20px; }
.social-text { font-size: 14px; font-weight: 500; }

/* ── カウントダウン/カウントアップ ── */
.widget-counter {
  padding: 10px 20px;
  border-radius: 10px;
  text-align: center;
}
.counter-label { font-size: 12px; opacity: 0.7; }
.counter-value {
  font-size: 48px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ── アニメーション ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.anim-fade { animation: fadeIn 0.6s ease-out; }
.anim-slide-left { animation: slideInLeft 0.6s ease-out; }
.anim-slide-right { animation: slideInRight 0.6s ease-out; }
