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

html,
body {
  width: 100%;
  height: 100%;
  min-width: 1080px;
  min-height: 1920px;
  overflow: hidden;
  /* OBS özel CSS şeffaf body verirse bile arka plan görünsün */
  background: #0a0612 !important;
}

.ca-body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #fff;
  background: #0a0612 !important;
}

/* OBS kaynağı tam 1080×1920 — ölçek dönüşümü yok (CEF siyah ekran önlemi) */
html.ca-obs-native,
html.ca-obs-native body {
  width: 1080px;
  height: 1920px;
  min-width: 1080px;
  min-height: 1920px;
}

html.ca-obs-native .ca-stage {
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
}

.ca-error {
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  padding: 1rem 1.25rem;
  background: rgba(180, 40, 60, 0.95);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.ca-error.hidden {
  display: none;
}

/* 1080 × 1920 tasarım alanı — OBS tarayıcı kaynağı */
.ca-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  max-height: 1920px;
  transform: translate(-50%, -50%) scale(var(--ca-view-scale, 1));
  transform-origin: center center;
  overflow: hidden;
  display: grid;
  /* Sabit satırlar — içerik büyüyünce grid yukarı kaymasın */
  grid-template-rows: 248px 92px minmax(0, 1fr) 368px 52px;
  align-content: start;
  background: #0a0612;
}

.ca-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 159, 67, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 100%, rgba(124, 92, 255, 0.25), transparent 50%),
    linear-gradient(180deg, #120a1e 0%, #0a0612 45%, #1a0f28 100%);
  z-index: 0;
}

.ca-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff, transparent),
    radial-gradient(2px 2px at 80% 15%, #ffd54a, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent);
  background-size: 1080px 1920px;
  pointer-events: none;
}

.ca-header,
.ca-promo,
.ca-main,
.ca-scorers,
.ca-footer {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}

.ca-header {
  padding: 40px 36px 16px;
  text-align: center;
  max-height: 248px;
}

.ca-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.9);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 24px rgba(255, 45, 85, 0.45);
}

.ca-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: ca-pulse 1.2s ease-in-out infinite;
}

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

.ca-title {
  margin: 14px 0 6px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 0 40px rgba(255, 159, 67, 0.35);
  background: linear-gradient(180deg, #fff 30%, #ffd54a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ca-progress {
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
}

.ca-prize-ribbon {
  margin-top: 14px;
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1208;
  background: linear-gradient(90deg, #ffd54a, #ffb347, #ff9f43);
  box-shadow:
    0 4px 20px rgba(255, 213, 74, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ca-scorers-prize {
  margin: 0 0 8px;
  font-size: 17px;
  flex-shrink: 0;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 213, 74, 0.95);
  letter-spacing: 0.04em;
}

.ca-ended-prize {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 800;
  color: #ffd54a;
  text-shadow: 0 2px 16px rgba(255, 213, 74, 0.35);
}

.ca-feed-leader {
  border-color: rgba(255, 213, 74, 0.55) !important;
  background: rgba(255, 213, 74, 0.08) !important;
}

.ca-feed-leader .ca-feed-rank {
  background: linear-gradient(135deg, #ffd54a, #ff9f43);
  color: #1a1208;
}

/* Duyuru / reklam şeridi */
.ca-promo {
  margin: 0 28px 0;
  padding: 16px 22px;
  max-height: 92px;
  box-sizing: border-box;
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  background: linear-gradient(105deg, rgba(255, 213, 74, 0.18), rgba(124, 92, 255, 0.22));
  border: 2px solid rgba(255, 213, 74, 0.45);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ca-promo.hidden {
  display: none;
}

.ca-promo-badge {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 45, 85, 0.85);
  color: #fff;
}

.ca-promo-text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.ca-promo[data-kind="wrong"],
.ca-promo[data-kind="far"] {
  border-color: rgba(255, 120, 100, 0.55);
  background: linear-gradient(90deg, rgba(80, 20, 20, 0.92), rgba(40, 18, 48, 0.92));
}

.ca-promo[data-kind="wrong"] .ca-promo-badge,
.ca-promo[data-kind="far"] .ca-promo-badge {
  background: #c62828;
}

.ca-promo[data-kind="close"],
.ca-promo[data-kind="warm"] {
  border-color: rgba(255, 159, 67, 0.75);
  background: linear-gradient(105deg, rgba(255, 159, 67, 0.28), rgba(255, 45, 85, 0.2));
}

.ca-promo[data-kind="correct"] {
  border-color: rgba(100, 255, 180, 0.7);
  background: linear-gradient(105deg, rgba(80, 220, 140, 0.25), rgba(124, 92, 255, 0.18));
}

.ca-promo[data-kind="prize"],
.ca-promo[data-kind="engage"] {
  border-color: rgba(255, 213, 74, 0.85);
  background: linear-gradient(105deg, rgba(255, 213, 74, 0.32), rgba(255, 159, 67, 0.22));
}

.ca-promo[data-kind="prize"] .ca-promo-badge,
.ca-promo[data-kind="engage"] .ca-promo-badge {
  background: linear-gradient(135deg, #ffd54a, #ff9f43);
  color: #1a1208;
}

.ca-promo[data-kind="correct"] {
  border-color: rgba(100, 255, 180, 0.75);
  background: linear-gradient(105deg, rgba(80, 220, 140, 0.28), rgba(124, 92, 255, 0.18));
}

.ca-promo[data-kind="correct"] .ca-promo-badge {
  background: rgba(80, 220, 140, 0.95);
  color: #0a1a12;
}

.ca-promo--pulse .ca-promo-text {
  animation: ca-promo-pop 0.55s ease-out;
}

@keyframes ca-promo-pop {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ca-hold-winner {
  margin-top: 14px;
  padding: 14px 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: rgba(80, 220, 140, 0.12);
  border: 2px solid rgba(100, 255, 180, 0.35);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.ca-hold-winner.hidden {
  display: none;
}

.ca-hold-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #7c5cff, #ff9f43);
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.ca-hold-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ca-hold-kicker {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(100, 255, 180, 0.95);
}

.ca-hold-name {
  font-size: 30px;
  font-weight: 800;
}

.ca-hold-meta {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.ca-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4px 28px 0;
  min-height: 0;
  overflow: hidden;
}

.ca-stage[data-state="active"] .ca-main {
  padding-top: 48px;
  align-items: center;
  animation: ca-in 0.45s ease-out;
}

.ca-panel {
  width: 100%;
  max-height: 100%;
  text-align: center;
  overflow: hidden;
}

.ca-panel--active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
}

.ca-panel.hidden {
  display: none !important;
}

/* Bekleme ekranı */
.ca-panel--idle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  padding: 8px 0 16px;
}

.ca-idle-hero {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(124, 92, 255, 0.22), rgba(20, 12, 36, 0.85));
  border: 2px solid rgba(124, 92, 255, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.ca-idle-rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ca-idle-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 213, 74, 0.35);
  animation: ca-idle-ring 2.4s ease-out infinite;
}

.ca-idle-ring--2 {
  animation-delay: 1.2s;
}

@keyframes ca-idle-ring {
  0% {
    transform: scale(0.55);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.ca-idle-kicker {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(255, 213, 74, 0.95);
  margin-bottom: 12px;
}

.ca-idle-title {
  position: relative;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  background: linear-gradient(180deg, #fff 20%, #7adfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.ca-idle-tagline {
  position: relative;
  margin-top: 14px;
  font-size: 26px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.ca-idle-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.ca-idle-step {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ca-idle-step-n {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #1a1208;
  background: linear-gradient(135deg, #ffd54a, #ff9f43);
}

.ca-idle-step-text {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.ca-idle-example {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.ca-idle-age {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 20px;
  border-radius: 12px;
  font-size: 32px;
  font-weight: 800;
  color: #1a1208;
  background: linear-gradient(135deg, #ffd54a, #ffb347);
  box-shadow: 0 4px 16px rgba(255, 213, 74, 0.35);
}

.ca-idle-sub {
  margin-top: 12px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

.ca-stage[data-state="idle"] .ca-promo {
  display: grid;
}

.ca-photo-frame {
  position: relative;
  width: min(86%, 580px);
  margin: 0 auto 10px;
  flex-shrink: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid rgba(255, 213, 74, 0.65);
  box-shadow:
    0 0 0 6px rgba(124, 92, 255, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.ca-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  background: #1a1228;
}

.ca-photo-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 213, 74, 0.2), transparent 60%);
  pointer-events: none;
}

.ca-name {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.ca-prompt {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 600;
  color: #ff9f43;
  letter-spacing: 0.02em;
}

.ca-points {
  margin-top: 4px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.65);
}

.ca-panel--winner {
  position: relative;
}

.ca-winner-burst {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 213, 74, 0.5), transparent 70%);
  animation: ca-burst 0.8s ease-out;
}

@keyframes ca-burst {
  from {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.ca-winner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #ffd54a;
  background: #2a2240;
  font-size: 48px;
  font-weight: 800;
  overflow: hidden;
  margin-bottom: 16px;
}

.ca-winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ca-winner-kicker {
  font-size: 32px;
  font-weight: 800;
  color: #3dd68c;
  letter-spacing: 0.08em;
}

.ca-winner-name {
  font-size: 44px;
  font-weight: 800;
  margin-top: 8px;
}

.ca-winner-meta {
  margin-top: 8px;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.75);
}

.ca-scorers {
  margin: 0 28px 10px;
  padding: 12px 20px 10px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  height: 368px;
  max-height: 368px;
  min-height: 368px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ca-scorers-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffd54a;
  margin-bottom: 4px;
  text-align: center;
  flex-shrink: 0;
}

.ca-feed {
  list-style: none;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ca-feed li {
  display: grid;
  grid-template-columns: 32px 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 19px;
  min-height: 52px;
  max-height: 52px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ca-feed-rank {
  font-weight: 800;
  color: #ffd54a;
  text-align: center;
}

.ca-feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ca-feed-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-feed-pts {
  font-weight: 800;
  color: #3dd68c;
  font-variant-numeric: tabular-nums;
}

.ca-feed.hidden {
  display: none !important;
}

.ca-feed li.ca-feed-empty {
  display: block;
  grid-template-columns: unset;
  padding: 1.25rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1.4;
  border-bottom: none;
}

.ca-feed-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: 0;
  max-height: 180px;
  text-align: center;
}

.ca-feed-idle.hidden {
  display: none !important;
}

.ca-feed-idle-icon {
  font-size: 48px;
  opacity: 0.85;
  animation: ca-idle-trophy 2s ease-in-out infinite;
}

@keyframes ca-idle-trophy {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.ca-feed-idle-title {
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.ca-feed-idle-hint {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  max-width: 28em;
  line-height: 1.35;
}

.ca-footer {
  padding: 10px 28px 14px;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.ca-stage[data-state="active"] .ca-promo {
  margin-bottom: 10px;
}

@keyframes ca-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
