/* خريطة الرحلة + الصفحات */
.hero { display: grid; gap: var(--gap); }
.rank { display: flex; align-items: center; gap: 14px; }
.rank-badge { flex: none; width: 64px; height: 72px; display: grid; place-items: center; font-size: 1.7rem; clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%); background: linear-gradient(160deg, var(--gold), #a06f12); color: var(--gold-ink); }
.rank-badge[data-r="0"] { background: linear-gradient(160deg, #6b7fa8, #3b4c73); color: #fff; }
.rank-badge[data-r="1"] { background: linear-gradient(160deg, var(--teal), #137d71); color: #04211e; }
.rank h2 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 4px; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.2; }
.stat span { font-size: .75rem; color: var(--text-soft); }

.map { position: relative; margin: 8px 0 24px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map .seg { fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 12; vector-effect: non-scaling-stroke; }
.map .seg.lit { stroke: var(--gold); stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--gold)); }
.station { position: absolute; transform: translate(-50%, -50%); width: 150px; text-align: center; text-decoration: none; color: var(--text); display: block; }
.s-disc { position: relative; width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; background: var(--surface); border: 3px solid var(--line); box-shadow: var(--shadow); }
.station.partial .s-disc { border-color: var(--teal); }
.station.lit .s-disc { background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold)); color: var(--gold-ink); border-color: var(--gold); box-shadow: var(--glow); animation: glow 3s ease-in-out infinite; }
.station.locked .s-disc { opacity: .55; border-style: dashed; }
.station.lit .s-disc::after { content: '★'; position: absolute; top: -8px; inset-inline-end: -4px; font-size: 1.1rem; color: var(--gold); text-shadow: 0 0 6px var(--gold); }
@keyframes glow { 50% { box-shadow: 0 0 28px rgba(232, 184, 74, .8); } }
.s-name { margin-top: 6px; font-size: .78rem; line-height: 1.3; font-weight: 600; }
.pips { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.pip { width: 18px; height: 18px; border-radius: 50%; font-size: .6rem; line-height: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.pip.on { background: var(--teal); border-color: var(--teal); }
.station.big .s-disc { width: 78px; height: 78px; border-radius: 22px; font-size: 1.6rem; }

.badges { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.badge { flex: none; width: 84px; text-align: center; font-size: .7rem; }
.badge .ic { width: 52px; height: 52px; margin: 0 auto 2px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--gold-soft); border: 1px solid var(--gold); }
.badge.locked { opacity: .45; filter: grayscale(1); }

.week-grid { display: grid; gap: 6px; }
.pct-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 6px 0; }
.pct-row .bar { grid-column: 1 / -1; }
.slot { border-inline-start: 4px solid var(--teal); }
.slot.now { border-inline-start-color: var(--gold); }
.timer { text-align: center; }
.timer .time { font-size: 3rem; font-weight: 800; direction: ltr; letter-spacing: 2px; }
.report-box { white-space: pre-wrap; direction: ltr; text-align: left; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; font-size: .9rem; line-height: 1.6; }
.report-box.ar { direction: rtl; text-align: right; }

@media print {
  body { background: #fff !important; color: #000 !important; }
  .topbar, .nav, .no-print, .toast { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; background: #fff; }
  .bar { border: 1px solid #999; background: #fff; } .bar > i { background: #555 !important; }
  :root { --text: #000; --text-soft: #333; --surface: #fff; --surface-2: #fff; }
}
