/* Campaign mode styles — matches the felt + gold look in style.css. */

#screen-campaign {
  background: radial-gradient(120% 90% at 50% 0%, var(--felt-dark) 0%, #04220f 100%);
  overflow-y: auto;
}

.cmp-page { gap: 14px; }

.cmp-total {
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.3);
}

/* ---- Stars ---- */

.cmp-star { color: rgba(255,255,255,.25); font-size: inherit; }
.cmp-star.on { color: var(--gold); text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---- Chapters ---- */

.cmp-chapter {
  background: rgba(0,0,0,.25);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.cmp-chapter.locked { opacity: .6; }

.cmp-chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmp-chapter-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}

.cmp-chapter-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(243,193,75,.18);
  box-shadow: inset 0 0 0 1px rgba(243,193,75,.5);
  color: var(--gold);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

.cmp-chapter-stars {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.cmp-chapter-flavor {
  font-size: 13px;
  line-height: 1.45;
  opacity: .75;
}

.cmp-locked-note {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  text-align: center;
}

/* ---- Level cards ---- */

.cmp-levels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmp-level {
  appearance: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cmp-level:active { transform: translateY(1px); filter: brightness(1.1); }
.cmp-level.locked { cursor: default; opacity: .5; }
.cmp-level.locked:active { transform: none; filter: none; }

.cmp-level-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  opacity: .9;
  flex: none;
  min-width: 30px;
}

.cmp-level-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.cmp-level-stars {
  font-size: 16px;
  letter-spacing: 2px;
  flex: none;
}

/* ---- Modal / result overlay ---- */

.cmp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}

.cmp-card {
  width: min(90vw, 360px);
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(#123a24, #0b2716);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  animation: cmpPop .2s ease-out;
}

@keyframes cmpPop {
  from { transform: scale(.6); opacity: 0; }
}

.cmp-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: .65;
}

.cmp-modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

.cmp-earned { font-size: 18px; letter-spacing: 3px; }

.cmp-blurb {
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
}

.cmp-rules-line {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.cmp-table-line { font-size: 13px; opacity: .85; }

.cmp-conds, .cmp-checklist {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,.25);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}

.cmp-cond, .cmp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cmp-cond:last-child, .cmp-check:last-child { border-bottom: none; }

.cmp-cond-stars {
  flex: none;
  min-width: 44px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
}

.cmp-warn {
  font-size: 12px;
  color: #ffb0a3;
  font-weight: 600;
}

.cmp-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

/* ---- Result view ---- */

.cmp-result-stars {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 44px;
  line-height: 1;
  min-height: 48px;
}

.cmp-big-star {
  color: rgba(255,255,255,.18);
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

.cmp-big-star.earned {
  color: var(--gold);
  text-shadow: 0 0 14px rgba(243,193,75,.75), 0 2px 4px rgba(0,0,0,.4);
  animation: cmpStarIn .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.cmp-big-star.s0 { animation-delay: .15s; }
.cmp-big-star.s1 { animation-delay: .45s; }
.cmp-big-star.s2 { animation-delay: .75s; }

@keyframes cmpStarIn {
  from { transform: scale(2.2) rotate(-18deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.cmp-score-line { font-size: 15px; font-weight: 700; }

.cmp-check { opacity: .7; }
.cmp-check.met { opacity: 1; }

.cmp-check-mark {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
}
.cmp-check.met .cmp-check-mark {
  background: var(--gold);
  color: #4a3403;
}
