/* ============================================================
   Χρονολόγιο — Epic Sequence Puzzle — styles
   ============================================================ */

/* ── Screens ── */
.ep-screen {
  display: none;
  width: 100%; max-width: 680px;
  padding: 2rem 1.5rem 3rem;
  flex-direction: column;
  align-items: center;
}
.ep-screen.active { display: flex; }

/* ── Menu ── */
.ep-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 52px); font-weight: 300;
  color: #F6F2EB; text-align: center;
  margin-bottom: 0.3rem; letter-spacing: -0.5px;
}
.ep-subtitle {
  font-size: 11px; color: rgba(246,242,235,0.3);
  letter-spacing: 2.5px; text-transform: uppercase;
  text-align: center; margin-bottom: 2.5rem;
}

.ep-pack-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; width: 100%;
}
.ep-pack-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,208,190,0.1);
  padding: 1.75rem 1.25rem 1.5rem;
  cursor: pointer; transition: all 0.25s;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.ep-pack-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,164,74,0.4);
  transform: translateY(-2px);
}
.ep-pack-icon  { font-size: 40px; }
.ep-pack-name  { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: #e8dcc8; font-weight: 400; }
.ep-pack-desc  { font-size: 11px; color: rgba(246,242,235,0.35); text-align: center; line-height: 1.5; }
.ep-pack-meta  { font-size: 10px; letter-spacing: 1.5px; color: #c9a44a; text-transform: uppercase; margin-top: 2px; }

/* ── Game header ── */
.ep-game-top {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; margin-bottom: 0.75rem;
}
.ep-round-badge {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(201,164,74,0.55); border: 1px solid rgba(201,164,74,0.2);
  padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
}
.ep-round-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2.2vw, 19px); color: #c9a44a; font-weight: 400;
  text-align: center; flex: 1; padding: 0 8px; line-height: 1.3;
}
.ep-score-badge {
  font-size: 12px; color: rgba(246,242,235,0.45); white-space: nowrap;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

/* ── Progress dots ── */
.ep-progress-row {
  display: flex; gap: 6px; margin-bottom: 1.25rem;
}
.ep-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1); transition: background 0.3s;
}
.ep-dot.ep-dot-done   { background: rgba(106,135,82,0.6); }
.ep-dot.ep-dot-active { background: #c9a44a; }

/* ── Instruction ── */
.ep-instruction {
  font-size: 12px; color: rgba(246,242,235,0.38);
  text-align: center; margin-bottom: 1.25rem;
  letter-spacing: 0.3px; line-height: 1.5;
}

/* ── Event cards ── */
.ep-cards {
  width: 100%; display: flex; flex-direction: column;
  gap: 8px; margin-bottom: 1.5rem;
}
.ep-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(217,208,190,0.1);
  padding: 14px 16px; cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  user-select: none;
}
.ep-card:hover:not(.ep-card-correct):not(.ep-card-wrong) {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,164,74,0.3);
}
.ep-card.ep-card-placed {
  border-color: rgba(201,164,74,0.5);
  background: rgba(201,164,74,0.06);
}

/* Number badge */
.ep-card-num {
  min-width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(217,208,190,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: rgba(246,242,235,0.25);
  flex-shrink: 0; transition: all 0.2s;
}
.ep-card-num.ep-num-placed {
  border-color: #c9a44a; color: #c9a44a;
  background: rgba(201,164,74,0.12);
}
.ep-card-num.ep-num-correct {
  border-color: #6A8752; color: #6A8752;
  background: rgba(106,135,82,0.15);
}
.ep-card-num.ep-num-wrong {
  border-color: #c04545; color: #c04545;
  background: rgba(192,69,69,0.12);
}

/* Card body (play phase — text only) */
.ep-card-text {
  font-size: 14px; line-height: 1.55;
  color: rgba(246,242,235,0.8);
  font-family: 'Noto Serif', serif; flex: 1;
}

/* Card body wrapper used in result phase */
.ep-card-body {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.ep-card-note {
  font-size: 11px; color: rgba(192,69,69,0.8);
  letter-spacing: 0.3px;
}

/* Result verdict icon */
.ep-card-verdict {
  font-size: 20px; flex-shrink: 0; width: 22px; text-align: center;
}

/* Result card states */
.ep-card.ep-card-correct {
  border-color: rgba(106,135,82,0.5);
  background: rgba(15,35,10,0.6); cursor: default;
}
.ep-card.ep-card-correct .ep-card-verdict { color: #6A8752; }

.ep-card.ep-card-wrong {
  border-color: rgba(192,69,69,0.45);
  background: rgba(35,10,10,0.5); cursor: default;
}
.ep-card.ep-card-wrong .ep-card-verdict { color: #c04545; }
.ep-card.ep-card-wrong .ep-card-text    { color: rgba(246,242,235,0.65); }

/* Slide-in animation for result cards */
@keyframes ep-slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ep-card.ep-card-correct,
.ep-card.ep-card-wrong {
  animation: ep-slide-in 0.28s ease both;
}
.ep-card.ep-card-correct:nth-child(1), .ep-card.ep-card-wrong:nth-child(1) { animation-delay: 0.00s; }
.ep-card.ep-card-correct:nth-child(2), .ep-card.ep-card-wrong:nth-child(2) { animation-delay: 0.06s; }
.ep-card.ep-card-correct:nth-child(3), .ep-card.ep-card-wrong:nth-child(3) { animation-delay: 0.12s; }
.ep-card.ep-card-correct:nth-child(4), .ep-card.ep-card-wrong:nth-child(4) { animation-delay: 0.18s; }
.ep-card.ep-card-correct:nth-child(5), .ep-card.ep-card-wrong:nth-child(5) { animation-delay: 0.24s; }

/* ── Actions area ── */
.ep-actions { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.ep-hint {
  font-size: 11px; color: rgba(246,242,235,0.28);
  letter-spacing: 1.5px; text-transform: uppercase; min-height: 18px;
}
.ep-check-btn {
  font-size: 13px; padding: 13px 52px; cursor: pointer;
  background: #c9a44a; border: none; color: #0D0A06;
  font-family: 'Inter', sans-serif; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background 0.2s, transform 0.18s;
}
.ep-check-btn:hover { background: #e0bc64; transform: translateY(-2px); }

.ep-round-pts {
  font-size: 13px; color: rgba(246,242,235,0.45);
  text-align: center; line-height: 1.6;
}
.ep-total-sep { color: rgba(246,242,235,0.2); margin: 0 4px; }
.ep-total-pts { color: #c9a44a; }

.ep-next-btn {
  font-size: 13px; padding: 12px 40px; cursor: pointer;
  background: transparent; border: 1px solid rgba(201,164,74,0.5);
  color: #c9a44a; font-family: 'Inter', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; transition: all 0.2s;
}
.ep-next-btn:hover { background: rgba(201,164,74,0.1); border-color: #c9a44a; }

/* ── End screen ── */
.ep-end-icon  { font-size: 76px; margin-bottom: 1rem; }
.ep-end-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 5vw, 48px); font-weight: 300;
  color: #c9a44a; text-align: center; margin-bottom: 0.5rem;
}
.ep-end-score {
  font-size: 18px; color: rgba(246,242,235,0.5);
  display: flex; align-items: baseline; gap: 4px; margin: 1rem 0;
}
.ep-final-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 58px; color: #e8dcc8; font-weight: 300; line-height: 1;
}
.ep-final-max { font-size: 18px; color: rgba(246,242,235,0.4); }
.ep-end-stars { font-size: 34px; letter-spacing: 6px; margin-bottom: 2rem; }
.ep-star-empty { opacity: 0.2; }

.ep-end-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ep-btn {
  font-size: 12px; padding: 11px 32px; cursor: pointer;
  border: 1px solid rgba(217,208,190,0.22); background: transparent;
  color: rgba(246,242,235,0.6); font-family: 'Inter', sans-serif;
  letter-spacing: 1px; text-transform: uppercase; transition: all 0.22s;
}
.ep-btn:hover { color: #e8dcc8; border-color: rgba(201,164,74,0.5); }
.ep-btn.ep-btn-primary {
  background: #c9a44a; border-color: #c9a44a;
  color: #0D0A06; font-weight: 600;
}
.ep-btn.ep-btn-primary:hover { background: #e0bc64; border-color: #e0bc64; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .ep-pack-grid { grid-template-columns: 1fr; }
  .ep-card-text { font-size: 13px; }
  .ep-screen { padding: 1.5rem 1rem 2.5rem; }
}
