﻿/* ====== ROADMAP OVERLAY ====== */
#roadmap-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--deep);
  flex-direction: column;
  overflow: hidden;
  animation: roadmap-in 0.3s ease-out;
}
#roadmap-overlay.open { display: flex; }
@keyframes roadmap-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ridge);
  flex-shrink: 0;
}
.roadmap-title {
  font-family: var(--handwritten);
  font-size: 1.6em;
  color: var(--neil);
}
.roadmap-subtitle { color: var(--text-soft); font-size: 0.85em; font-family: var(--mono); }
.roadmap-close {
  background: none; border: 1px solid var(--ridge); color: var(--text-soft);
  border-radius: var(--radius-sm); padding: 6px 14px; cursor: pointer;
  font-family: var(--mono); font-size: 0.85em; transition: all 0.15s;
}
.roadmap-close:hover { border-color: var(--neil-dim); color: var(--neil); }

.roadmap-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HP Bar */
.roadmap-hp-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hp-card {
  flex: 1;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.hp-card-label { font-size: 0.72em; color: var(--text-dim); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.hp-card-value { font-size: 1.8em; font-weight: 600; }
.hp-card-bar { height: 4px; border-radius: 2px; background: var(--ridge); margin-top: 8px; overflow: hidden; }
.hp-card-bar-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.hp-green { color: #5cb8b2; }
.hp-green .hp-card-bar-fill { background: #5cb8b2; }
.hp-amber { color: #d4a857; }
.hp-amber .hp-card-bar-fill { background: #d4a857; }
.hp-red { color: #cf6b6b; }
.hp-red .hp-card-bar-fill { background: #cf6b6b; }

/* Rank Progression */
.rank-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
  overflow-x: auto;
}
.rank-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  position: relative;
}
.rank-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ridge);
  background: var(--surface);
  z-index: 1;
  transition: all 0.3s;
}
.rank-node.completed .rank-dot { background: var(--teal); border-color: var(--teal); }
.rank-node.current .rank-dot { background: var(--neil); border-color: var(--neil); box-shadow: 0 0 12px var(--neil-glow); width: 22px; height: 22px; }
.rank-node.future .rank-dot { background: var(--mid); border-color: var(--ridge); }
.rank-label { font-size: 0.65em; color: var(--text-dim); font-family: var(--mono); margin-top: 6px; text-align: center; max-width: 80px; }
.rank-node.current .rank-label { color: var(--neil); font-weight: 600; }
.rank-connector {
  flex: 1;
  height: 2px;
  background: var(--ridge);
  min-width: 20px;
}
.rank-connector.completed { background: var(--teal); }

/* Quest Cards */
.quest-card {
  background: var(--surface);
  border: 1px solid var(--ridge);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.quest-card:hover { border-color: var(--neil-dim); }
.quest-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.quest-name { font-family: var(--sans); font-weight: 600; font-size: 1.05em; }
.quest-link { color: var(--neil) !important; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.15s, text-shadow 0.15s; }
.quest-link:hover { color: #fff !important; text-shadow: 0 0 8px var(--neil); }
.roadmap-source-link { color: var(--neil-dim); text-decoration: none; cursor: pointer; transition: color 0.15s; padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; }
.roadmap-source-link:hover { color: var(--neil); border-color: var(--neil-dim); }

