body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

.dyk-center {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dyk-stage {
  width: min(420px, 100%);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  background:
    radial-gradient(900px 700px at 20% 0%, rgba(159, 232, 112, .26), transparent 55%),
    radial-gradient(900px 700px at 90% 10%, rgba(96, 165, 250, .18), transparent 55%),
    radial-gradient(1100px 900px at 50% 120%, rgba(34, 197, 94, .14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  box-shadow:
    0 30px 70px rgba(2, 6, 23, .18),
    0 14px 24px rgba(2, 6, 23, .10),
    inset 0 1px 0 rgba(255,255,255,.80);
  border: 1px solid rgba(2, 6, 23, .08);
  overflow: hidden;
}

.dyk-inner {
  height: 100%;
  padding: 14px;
  position: relative;
}

.dyk-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  transform: translate(-50%, -50%);
  background:#fff;
  border-radius: 20px;
}

.dyk-card {
  height: 100%;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(2, 6, 23, .08);
  box-shadow:
    0 18px 40px rgba(2, 6, 23, .16),
    inset 0 1px 0 rgba(255,255,255,.70);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  position: relative;
  background-image: url("../img/question-bg.png");
  background-size: cover;
  background-position: center;
}

.dyk-top {
  padding: 30px 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dyk-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 26px rgba(2,6,23,.18), inset 0 1px 0 rgba(255,255,255,.10);
}

.dyk-logo img { height: 22px; width: auto; display: block; }

.dyk-timer {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: rgba(2,6,23,.92);
  background: radial-gradient(80px 40px at 30% 30%, #FFC107, #FF9800);
  border: 1px solid rgba(2, 6, 23, .10);
  box-shadow: 0 18px 30px rgba(2, 6, 23, .12), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.dyk-timer.is-danger {
  color: rgba(127, 29, 29, .98);
  background: radial-gradient(80px 40px at 30% 30%, rgba(255,255,255,.95), rgba(254, 226, 226, .95));
  border-color: rgba(239,68,68,.40);
  box-shadow: 0 18px 30px rgba(239,68,68,.12), 0 0 0 4px rgba(239,68,68,.08), inset 0 1px 0 rgba(255,255,255,.85);
}

.dyk-bubble {
  border-radius: 18px;
  position: relative;
  padding: 26px 14px 20px;
  border: 1px solid rgba(2, 6, 23, .08);
  box-shadow: 0 18px 30px rgba(2, 6, 23, .12), inset 0 1px 0 rgba(255,255,255,.85);
  background: linear-gradient(180deg, rgba(159,232,112,.22), rgba(255,255,255,.78));
}

.dyk-prog {
  position: absolute;
  top: -10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  color: rgba(2,6,23,.92);
  background: linear-gradient(135deg, rgba(159,232,112,1), rgba(34,197,94,1));
  box-shadow: 0 14px 22px rgba(2, 6, 23, .12), 0 0 0 4px rgba(159, 232, 112, .10), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.dyk-headline {
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 10px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.70));
  border: 1px solid rgba(2, 6, 23, .10);
  box-shadow:
    0 22px 40px rgba(2, 6, 23, .14),
    0 8px 14px rgba(2, 6, 23, .10),
    inset 0 1px 0 rgba(255,255,255,.90);
  position: relative;
}

.dyk-headline::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 45%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  opacity: .9;
  pointer-events: none;
}
.dyk-fact { 
  font-weight: 800;
    font-size: 16px;
    line-height: 1.25;
    padding: 20px;
    text-align: center;
    margin: 0;
 }

.dyk-barwrap {
  height: 8px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(2, 6, 23, .06);
  border: 1px solid rgba(2, 6, 23, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.dyk-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #9fe870, #22c55e);
  box-shadow: 0 10px 22px rgba(159,232,112,.12);
}

.dyk-bar.is-danger {
  background: linear-gradient(135deg, #ef4444, #fb7185);
  box-shadow: 0 10px 22px rgba(239,68,68,.16);
}

.dyk-end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(2, 6, 23, .06);
  backdrop-filter: blur(10px);
  background:
    radial-gradient(800px 600px at 50% 25%, rgba(159,232,112,.22), transparent 55%),
    radial-gradient(700px 500px at 20% 0%, rgba(96,165,250,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,247,255,.96));

  opacity: 0;
  transform: translateY(14px) scale(.98);
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(.2, .9, .2, 1), filter 320ms ease;
}

.dyk-end.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.dyk-end::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%);
  transform: translateX(-40%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
}

.dyk-end.is-visible::after {
  opacity: .55;
  animation: endSweep 900ms ease-out 120ms both;
}

@keyframes endSweep {
  from { transform: translateX(-55%) rotate(8deg); opacity: 0; }
  30% { opacity: .55; }
  to { transform: translateX(55%) rotate(8deg); opacity: 0; }
}

.dyk-end img { height: 34px; width: auto; }
.dyk-end-tag { font-weight: 900; font-size: 18px; color: rgba(2,6,23,.92); }
.dyk-end-prompt {
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: rgba(2, 6, 23, .90);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc107, rgba(255,255,255,.70));
  border: 1px solid rgba(2, 6, 23, .10);
  box-shadow:
    0 22px 40px rgba(2, 6, 23, .14),
    0 8px 14px rgba(2, 6, 23, .10),
    inset 0 1px 0 rgba(255,255,255,.90);
  position: relative;
}

.dyk-end-prompt::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 45%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0));
  opacity: .9;
  pointer-events: none;
}

.dyk-end-prompt::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(159,232,112,.45), rgba(96,165,250,.35));
  filter: blur(10px);
  opacity: .35;
  z-index: -1;
  pointer-events: none;
}
.dyk-end-sub { font-size: 13px; color: rgba(2,6,23,.60); }

.dyk-anim-enter { animation: dykEnter 180ms ease-out both; }
.dyk-anim-exit { animation: dykExit 180ms ease-in both; }

@keyframes dykEnter { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes dykExit { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-10px) scale(.995); } }

