/* uQuiz Clone - Basic/Broken Style */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #F0F2F5;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

.top-nav {
  background-color: #6D4C41;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-badge {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-icon { display: none; }

.nav-controls {
  display: none !important;
}

.app-container {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  padding: 0 15px;
}

.quiz-card {
  background: white;
  border: 1px solid #e1e4e8;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Landing */
.badge-tag {
  display: inline-block;
  background-color: #6D4C41;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 20px;
}
.quiz-pillars {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}
.pillar-card {
  text-align: center;
  color: #555;
  font-size: 14px;
}
.pillar-icon { display: block; font-size: 24px; margin-bottom: 5px; }
.pillar-value { display: block; font-weight: bold; color: #333; }
.pillar-label { display: block; font-size: 12px; }

.quiz-main-title {
  font-size: 28px;
  font-weight: bold;
  color: #2c3e50;
  text-align: center;
  margin-top: 0;
  margin-bottom: 5px;
}

.creator-attribution {
  text-align: center;
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 25px;
}

.creator-attribution a {
  color: #419DEB;
  text-decoration: none;
}

.creator-attribution a:hover {
  text-decoration: underline;
}

.intro-story-box {
  font-size: 15px;
  color: #444;
  margin-bottom: 25px;
  border: none;
  background: none;
  padding: 0;
}

.intro-story-text {
  font-family: inherit;
  font-style: normal;
  color: #333;
}

.start-form-wrapper {
  text-align: center;
}

.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  text-align: center;
}

.text-input {
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 14px;
  background: #fafafa;
  color: #333;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #6D4C41;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  box-shadow: none;
  display: inline-block;
}

.btn-primary:hover:not(:disabled) {
  background-color: #5D4037;
}

/* Question View */
.quiz-progress-bar-container {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background-color: #6D4C41;
}

.question-meta-header {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.question-num-tag {
  font-family: inherit;
  color: #6D4C41;
}

.question-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  font-family: inherit;
  color: #2c3e50;
  line-height: 1.3;
}

.choice-card {
  display: block;
  background: #fff;
  border: 1px solid #dcdde1;
  padding: 15px 20px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 4px;
  color: #2f3640;
  transition: background 0.1s;
}

.choice-card:hover {
  background: #f5f6fa;
}

.choice-card.selected {
  background: #eef2f5;
  border-color: #6D4C41;
}

.choice-radio-circle {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #bdc3c7;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
  background: #fff;
  box-sizing: border-box;
}

.choice-card.selected .choice-radio-circle {
  border-color: #6D4C41;
  background: radial-gradient(circle, #6D4C41 40%, transparent 45%);
}

.choice-check-icon {
  display: none !important;
}

.choice-text {
  display: inline-block;
  vertical-align: middle;
  font-size: 15px;
  color: #333;
  width: calc(100% - 35px);
}

.choice-key-hint {
  display: none !important;
}

.question-nav-bar {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-secondary {
  background-color: #fff;
  border: 1px solid #dcdde1;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  color: #7f8c8d;
  font-weight: 600;
}
.btn-secondary:hover {
  background: #f5f6fa;
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Results */
.mystic-orb-spinner { display: none !important; }
.calculating-title { font-size: 24px; font-family: inherit; color: #333; }
.calculating-sub { color: #666; }
.calculating-view { font-size: 20px; font-weight: bold; text-align: center; margin: 50px 0; }

.result-header-bar { text-align: center; margin-bottom: 30px; }
.result-status-pill { display: none !important; }
.result-name-title { font-size: 32px; font-weight: bold; color: #6D4C41; margin-bottom: 5px; font-family: inherit; }
.result-subtitle { font-size: 16px; color: #7f8c8d; margin-bottom: 20px; }

.tarot-card-frame { text-align: center; margin-bottom: 25px; border: none; box-shadow: none; }
.tarot-card-image { max-width: 100%; border: 1px solid #eee; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.author-verbatim-quote { font-family: inherit; color: #333; font-style: normal; background: #f9f9f9; padding: 20px; border: 1px solid #eee; margin-bottom: 30px; border-radius: 4px; font-size: 15px; line-height: 1.6; }
.personalized-greeting { display: none !important; }
.traits-grid { display: none !important; }
.lore-recommendations-grid { display: none !important; }

.breakdown-card-section { margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
.section-subheading { color: #2c3e50; font-size: 18px; margin-bottom: 15px; }
.affinity-row { margin-bottom: 12px; }
.affinity-labels { color: #555; display: flex; justify-content: space-between; font-size: 13px; font-weight: bold; margin-bottom: 5px; }
.affinity-labels span { color: #555 !important; }
.affinity-track { height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.affinity-fill { height: 100%; background: #6D4C41; }

.result-actions-cluster { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; align-items: center; }
.action-btn { width: 100%; max-width: 300px; padding: 12px; border: 1px solid #ccc; background: #f9f9f9; cursor: pointer; border-radius: 3px; color: #333; font-weight: bold; }
.action-btn:hover { background: #eee; }
.modal-overlay { display: none !important; }

.site-footer {
  text-align: center;
  padding: 30px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-size: 12px;
}
.site-footer a { color: #6D4C41; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.freetext-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
}
