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

body {
  font-family: 'Courier New', Courier, monospace;
  background: #000;
  color: #c8a84b;
  min-height: 100vh;
}

/* Consent */
.ep-consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, #1a0808 0%, #000 70%);
}

.ep-consent[hidden] { display: none !important; }

.ep-consent-box {
  max-width: 480px;
  width: 100%;
  padding: 28px 24px;
  border: 1px solid rgba(200, 168, 75, 0.4);
  background: rgba(8, 4, 2, 0.95);
}

.ep-credit {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  opacity: 0.6;
  margin-bottom: 8px;
}

.ep-consent-box h1 {
  font-family: 'Creepster', cursive;
  font-size: 2rem;
  color: #c8a84b;
  margin-bottom: 12px;
}

.ep-lead {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 14px;
}

.ep-consent-list {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #888;
  margin: 0 0 16px 18px;
}

.ep-consent-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ep-back {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
}
.ep-back:hover { color: #c8a84b; }

.ep-start {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  background: #8b0000;
  color: #f0d880;
  border: 1px solid #c8a84b;
  cursor: pointer;
}
.ep-start:hover { background: #a00; }

.ep-err {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #f66;
}
.ep-err[hidden] { display: none !important; }

/* Quiz app */
.ep-app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.ep-app[hidden] { display: none !important; }

.ep-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
}

.ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(200, 168, 75, 0.25);
  z-index: 6;
  position: relative;
}

.ep-hub-link {
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
}
.ep-hub-link:hover { color: #c8a84b; }

.ep-title {
  font-family: 'Creepster', cursive;
  font-size: 1.1rem;
  color: #8b0000;
  letter-spacing: 0.06em;
}

.ep-progress {
  font-size: 0.72rem;
  color: #666;
}

#ep-cam {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 150px;
  height: 112px;
  object-fit: cover;
  border: 2px solid rgba(200, 168, 75, 0.5);
  z-index: 3;
  filter: contrast(1.1) saturate(0.85);
}

#ep-cam-overlay {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 150px;
  height: 112px;
  z-index: 4;
  pointer-events: none;
}

.ep-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  padding-right: 180px;
  max-width: 720px;
  z-index: 6;
  position: relative;
}

.ep-phase {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #666;
  margin-bottom: 10px;
}

.ep-prompt {
  font-family: 'Creepster', cursive;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  color: #f0d880;
  line-height: 1.3;
  margin-bottom: 10px;
  white-space: pre-line;
}

.ep-scan-note {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.4;
}
.ep-scan-note[hidden] { display: none !important; }

.ep-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-choice {
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-align: left;
  background: rgba(20, 10, 6, 0.9);
  color: #c8a84b;
  border: 1px solid rgba(200, 168, 75, 0.35);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.ep-choice:hover {
  background: rgba(139, 0, 0, 0.35);
  border-color: #c8a84b;
  color: #fff;
}

.ep-footer {
  padding: 10px 16px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #555;
  border-top: 1px solid rgba(200, 168, 75, 0.15);
  z-index: 6;
  position: relative;
}

/* Result */
.ep-result {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at center, #1a0808 0%, #000 80%);
}

.ep-result[hidden] { display: none !important; }

.ep-result-box {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(200, 168, 75, 0.4);
  background: rgba(8, 4, 2, 0.95);
}

.ep-result-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 16px;
}

.ep-result-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 2px solid;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.ep-result-name {
  font-family: 'Creepster', cursive;
  font-size: 2.8rem;
  margin-bottom: 6px;
  text-shadow: 0 0 24px currentColor;
}

.ep-result-tag {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.ep-result-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #bbb;
  margin-bottom: 12px;
}

.ep-result-traits {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ep-result-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ep-result-btns button,
.ep-play-escape {
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
}

.ep-result-btns button {
  background: transparent;
  color: #888;
  border: 1px solid #444;
}
.ep-result-btns button:hover { color: #c8a84b; border-color: #c8a84b; }

.ep-play-escape {
  background: #8b0000;
  color: #f0d880;
  border: 1px solid #c8a84b;
}
.ep-play-escape:hover { background: #a00; }

@media (max-width: 560px) {
  .ep-main { padding-right: 20px; padding-top: 130px; }
  #ep-cam, #ep-cam-overlay {
    top: auto;
    bottom: 48px;
    right: 50%;
    transform: translateX(50%);
  }
}
