.koko-camara {
  max-width: 530px;
  margin: 20px auto;
  padding: 18px;
  background: #171219;
  border: 1px solid #986d87;
  color: #fff;
  border-radius: 20px;
  font-family: Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.koko-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.koko-intro strong {
  font-family: Georgia, serif;
  color: #e7c486;
  font-size: 24px;
}

.koko-intro span {
  color: #e5bbc8;
  font-size: 13px;
}

.koko-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #281b27;
  border: 2px solid #d4aa68;
  border-radius: 8px;
}

.koko-video,
.koko-overlay,
.koko-result {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.koko-video {
  object-fit: contain;
  transform: scaleX(-1);
}

.koko-overlay {
  pointer-events: none;
  object-fit: fill;
}

.koko-result {
  object-fit: fill;
}

.koko-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px 24px;
  background: linear-gradient(
    145deg,
    #2e1324,
    #6d194c 60%,
    #231421
  );
  color: #e8cb92;
  letter-spacing: 1px;
}

.koko-fallback span {
  color: #fff;
}

.koko-fallback small {
  font-size: 11px;
}

.koko-status {
  font-size: 13px;
  line-height: 1.4;
  color: #f0dfdf;
  margin: 10px auto;
  max-width: 420px;
}

.koko-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.koko-controls button,
.koko-controls a {
  border: 1px solid #e7bb80;
  border-radius: 22px;
  padding: 10px 14px;
  background: #e7bb80;
  color: #24121e;
  text-decoration: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.3;
}

.koko-controls .koko-flip,
.koko-controls .koko-retry {
  background: transparent;
  color: #fff;
}

.koko-footnote {
  font-size: 11px;
  color: #dbbbbc;
  margin-top: 12px;
}

.koko-camara [hidden] {
  display: none !important;
}