/* دروب النور — نظام التصميم: التراث (زمردي داكن + ذهب + رقّ) */
:root {
  --bg: #06140f;
  --bg-2: #0a201a;
  --ink: #03100c;
  --panel: rgba(246, 238, 218, 0.045);
  --panel-2: rgba(246, 238, 218, 0.08);
  --border: rgba(201, 162, 39, 0.20);
  --border-2: rgba(201, 162, 39, 0.42);
  --text: #f4eddd;
  --muted: #9fb2a7;
  --gold: #c9a227;
  --gold-2: #e8cd7a;
  --emerald: #12806a;
  --emerald-2: #22b491;
  --danger: #e08a76;
  --parch: #f6eeda;
  --parch-2: #e6d7b4;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --sh: 0 10px 40px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 24px 70px rgba(0, 0, 0, 0.6);
  --font-h: 'Noto Naskh Arabic', 'Times New Roman', serif;
  --font-b: 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* لا بدّ من تغليب [hidden] على قواعد display الأخرى */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── خلفية زخرفية ── */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-pattern {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.16' stroke-width='1'%3E%3Crect x='21' y='21' width='48' height='48'/%3E%3Cpath d='M45 11.1 78.9 45 45 78.9 11.1 45Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}
.bg-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 80vh;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(18, 128, 106, 0.35), transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(201, 162, 39, 0.16), transparent 70%);
}

/* ── عناوين ومحتوى ── */
h1, h2, h3, .display { font-family: var(--font-h); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { color: var(--text); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-2);
}
svg { display: block; }

.stage { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

/* ── أزرار ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.75rem 1.6rem; border-radius: 999px; font-family: var(--font-b);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #231a04; box-shadow: 0 8px 30px rgba(201, 162, 39, 0.28);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(201, 162, 39, 0.42); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--panel-2); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.84rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .tab:focus-visible, .option:focus-visible, .chip:focus-visible, .node:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px;
}

/* ── بطاقات ── */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--r); backdrop-filter: blur(14px);
  box-shadow: var(--sh); padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--border-2); }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700;
  padding: 0.24rem 0.7rem; border-radius: 999px;
  background: rgba(201, 162, 39, 0.14); color: var(--gold-2); border: 1px solid var(--border);
}
.badge-done { background: rgba(34, 180, 145, 0.14); color: var(--emerald-2); border-color: rgba(34, 180, 145, 0.35); }

/* ── الشريط العلوي ── */
.hud {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: rgba(6, 20, 15, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.hud-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(201, 162, 39, 0.24), transparent 70%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-family: var(--font-h); font-size: 1.12rem; }
.brand-text small { color: var(--muted); font-size: 0.74rem; }
.hud-stats { display: flex; align-items: center; gap: 1.4rem; }
.stat { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.stat-label { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; color: var(--gold-2); }

/* ── شاشة البداية ── */
.hero { text-align: center; padding: 3rem 0 2rem; animation: fadeUp .6s ease both; }
.hero-mark { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.hero h1 { margin: 0.6rem 0 0.9rem; }
.hero h1 .accent { color: var(--gold-2); }
.hero-lead { max-width: 620px; margin: 0 auto 1.8rem; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }

.rules { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 3.2rem; }
.rule { text-align: start; }
.rule-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(18, 128, 106, 0.18); border: 1px solid rgba(34, 180, 145, 0.28);
  color: var(--emerald-2); margin-bottom: 0.8rem;
}
.rule h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.rule p { font-size: 0.92rem; color: var(--muted); }

/* ── المقدمة السردية ── */
.intro-wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; padding-top: 2rem; }
.intro-text p { font-size: 1.05rem; margin-bottom: 1rem; animation: fadeUp .5s ease both; }
.intro-text p:nth-child(2) { animation-delay: .08s; }
.intro-text p:nth-child(3) { animation-delay: .16s; }
.intro-text p:nth-child(4) { animation-delay: .24s; }
.intro-actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.parchment {
  background: linear-gradient(160deg, var(--parch), var(--parch-2));
  color: #2a210f; border-radius: var(--r); padding: 1.8rem; box-shadow: var(--sh-lg);
  border: 1px solid rgba(120, 90, 20, 0.35); position: relative; overflow: hidden;
}
.parchment::after {
  content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(120, 90, 20, 0.35);
  border-radius: calc(var(--r) - 6px); pointer-events: none;
}
.parchment h3 { color: #4a3a12; margin-bottom: 0.6rem; }
.parchment p { color: #3a2f14; font-size: 0.95rem; }
.parchment .quote { font-family: var(--font-h); font-size: 1.15rem; color: #4a3a12; }

/* ── الخريطة والمعالم ── */
.chapter-head { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.chapter-head .era { color: var(--muted); font-size: 0.9rem; }
.manuscript-strip { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pages { display: flex; gap: 0.5rem; }
.page-slot {
  width: 34px; height: 44px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(246, 238, 218, 0.05); display: grid; place-items: center;
  font-family: var(--font-h); font-size: 0.9rem; color: var(--muted);
  transition: all .3s ease;
}
.page-slot.filled {
  background: linear-gradient(160deg, var(--parch), var(--parch-2));
  color: #2a210f; border-color: var(--gold); box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
  animation: pop .4s ease both;
}

.landmarks { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.node {
  text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.35rem; color: var(--text); font: inherit;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.node:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--border-2); background: var(--panel-2); box-shadow: var(--sh-lg); }
.node:disabled { cursor: default; border-color: rgba(34, 180, 145, 0.4); background: rgba(34, 180, 145, 0.06); }
.node-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.node-name { font-family: var(--font-h); font-size: 1.15rem; font-weight: 700; }
.node-guide { font-size: 0.82rem; color: var(--gold-2); }
.node-desc { font-size: 0.9rem; color: var(--muted); }
.node-line { font-size: 0.9rem; font-style: italic; color: var(--text); border-inline-start: 2px solid var(--border-2); padding-inline-start: 0.7rem; }
.node-cta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--gold-2); margin-top: 0.2rem; }

/* ── النافذة واللغز ── */
.scrim { position: fixed; inset: 0; background: rgba(3, 10, 8, 0.78); backdrop-filter: blur(6px); z-index: 40; animation: fadeUp .25s ease; }
.modal {
  position: fixed; z-index: 50; inset: 0; margin: auto; width: min(760px, 94vw); height: max-content; max-height: 92vh;
  overflow-y: auto; background: linear-gradient(180deg, #0c231d, #081814);
  border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: 2rem; animation: pop .32s ease both;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.modal-title { font-family: var(--font-h); font-size: 1.5rem; font-weight: 700; }
.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: all .2s ease; flex: none;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--panel-2); }
.puzzle-prompt { font-size: 1.02rem; margin: 0.8rem 0 1.4rem; }
.puzzle-controls { display: flex; flex-direction: column; gap: 0.8rem; }
.option {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: start; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem; color: var(--text); font: inherit; font-size: 0.98rem;
  transition: all .18s ease;
}
.option:hover { background: var(--panel-2); border-color: var(--border-2); transform: translateX(-4px); }
.option-key {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: rgba(201, 162, 39, 0.14); color: var(--gold-2); font-family: var(--font-h); font-weight: 700;
}
.options-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile-option {
  cursor: pointer; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--text); font: inherit; font-size: 0.9rem; transition: all .18s ease;
}
.tile-option:hover { border-color: var(--border-2); background: var(--panel-2); transform: translateY(-3px); }
.field-row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
input[type='number'], input[type='text'] {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--r-sm); font-family: var(--font-b);
  background: rgba(246, 238, 218, 0.06); border: 1px solid var(--border); color: var(--text);
  font-size: 1.05rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18); }

/* ── ترتيب الكلمات (chips) ── */
.chips-drop {
  min-height: 62px; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  border: 1px dashed var(--border-2); border-radius: var(--r-sm); padding: 0.7rem;
  background: rgba(246, 238, 218, 0.03);
}
.chips-drop .placeholder { color: var(--muted); font-size: 0.88rem; }
.chip {
  cursor: pointer; background: rgba(246, 238, 218, 0.08); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.95rem; color: var(--text);
  font-family: var(--font-h); transition: all .16s ease;
}
.chip:hover { background: rgba(201, 162, 39, 0.2); transform: translateY(-2px); }
.chip-used { opacity: 0.35; }
.chips-pool { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

/* ── التلميح والتغذية الراجعة ── */
.hint-box {
  margin-top: 1rem; padding: 0.85rem 1.1rem; border-radius: var(--r-sm); font-size: 0.93rem;
  background: rgba(201, 162, 39, 0.1); border: 1px solid var(--border-2); color: var(--gold-2);
  display: flex; gap: 0.6rem; align-items: flex-start; animation: fadeUp .3s ease;
}
.feedback { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: var(--r-sm); font-size: 0.95rem; animation: fadeUp .3s ease; }
.feedback.ok { background: rgba(34, 180, 145, 0.12); border: 1px solid rgba(34, 180, 145, 0.4); }
.feedback.no { background: rgba(224, 138, 118, 0.1); border: 1px solid rgba(224, 138, 118, 0.4); }
.feedback strong { display: block; margin-bottom: 0.35rem; font-family: var(--font-h); font-size: 1.05rem; }
.feedback .src { font-size: 0.83rem; color: var(--muted); margin-top: 0.6rem; }
.modal-actions { display: flex; gap: 0.7rem; justify-content: flex-start; flex-wrap: wrap; margin-top: 1.4rem; }

/* ── مكافأة الصفحة ── */
.reward-page {
  background: linear-gradient(160deg, var(--parch), var(--parch-2)); color: #2a210f;
  border-radius: var(--r); padding: 1.5rem; margin: 1.2rem 0; box-shadow: var(--sh-lg);
  border: 1px solid rgba(120, 90, 20, 0.35);
}
.reward-page h3 { color: #4a3a12; margin-bottom: 0.4rem; }
.reward-page p { color: #3a2f14; font-size: 0.95rem; }
.unlock-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.unlock-tag {
  font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: rgba(18, 128, 106, 0.15); color: #0e5c4a; border: 1px solid rgba(18, 128, 106, 0.35);
}

/* ── درج الموسوعة ── */
.drawer {
  position: fixed; top: 0; right: 0; z-index: 60; width: min(420px, 92vw); height: 100dvh;
  background: linear-gradient(180deg, #0c231d, #07130f); border-left: 1px solid var(--border-2);
  box-shadow: var(--sh-lg); padding: 1.6rem; overflow-y: auto;
  transform: translateX(110%); transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.codex-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.codex-item h4 { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: 0.35rem; }
.codex-item p { font-size: 0.9rem; color: var(--muted); }
.codex-item .src { font-size: 0.78rem; color: rgba(159, 178, 167, 0.75); margin-top: 0.5rem; }
.codex-item.locked h4 { color: var(--muted); }
.cat { font-size: 0.7rem; font-weight: 700; color: var(--gold-2); letter-spacing: 0.1em; }

/* ── الاكتمال ── */
.complete { text-align: center; padding: 2rem 0; animation: fadeUp .6s ease both; }
.score-ring {
  width: 160px; height: 160px; margin: 1.5rem auto; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.16), transparent 70%);
  border: 2px solid var(--border-2);
}
.score-ring .val { font-family: var(--font-h); font-size: 2.6rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.score-ring .lbl { font-size: 0.78rem; color: var(--muted); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 2rem 0; }
.next-cities { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-top: 0.8rem; }

/* ── تنبيهات ── */
.toast-wrap { position: fixed; bottom: 1.5rem; inset-inline-start: 1.5rem; z-index: 90; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 0.75rem 1.2rem; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 600;
  box-shadow: var(--sh-lg); backdrop-filter: blur(10px); animation: fadeUp .3s ease both;
}
.toast.ok { background: rgba(34, 180, 145, 0.16); border: 1px solid rgba(34, 180, 145, 0.4); color: #7ff0d3; }
.toast.no { background: rgba(224, 138, 118, 0.16); border: 1px solid rgba(224, 138, 118, 0.4); color: #f2b6a6; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 0 auto; }
.center-note { text-align: center; padding: 4rem 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── استجابة الشاشات ── */
@media (max-width: 900px) {
  .intro-wrap { grid-template-columns: 1fr; }
  .modal { padding: 1.4rem; }
}

@media (max-width: 640px) {
  .stage { padding: 1.6rem 1rem 4rem; }
  .hud { padding: 0.6rem 1rem; flex-wrap: wrap; justify-content: center; }
  .hud-stats { gap: 0.9rem; }
  .brand-text small { display: none; }
  .hero { padding: 1.5rem 0 1rem; }
  .hero-actions .btn, .intro-actions .btn { flex: 1; }
  .split-2 { grid-template-columns: 1fr !important; }
  .options-grid { grid-template-columns: 1fr; }
  .toast-wrap { inset-inline: 1rem; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .landmarks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── لوح الزخرفة (٣×٣) ── */
.pattern-wrap { display: grid; gap: 1.4rem; justify-items: center; }
.pattern-board {
  display: grid; grid-template-columns: repeat(3, 72px); grid-template-rows: repeat(3, 72px);
  gap: 6px; padding: 10px; border-radius: var(--r-sm);
  background: rgba(3, 16, 12, 0.55); border: 1px solid var(--border-2);
}
.pattern-cell {
  display: grid; place-items: center; border-radius: 8px; background: rgba(246, 238, 218, 0.04);
  border: 1px solid var(--border);
}
.pattern-cell.missing {
  border: 1px dashed var(--gold); color: var(--gold-2);
  font-family: var(--font-h); font-size: 1.6rem; background: rgba(201, 162, 39, 0.08);
}
@media (max-width: 640px) {
  .pattern-board { grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); }
}
/* ── خريطة الرحلة والمدن ── */
.cities { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.city-card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem 1.35rem 1.35rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.city-card:not(.locked):hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--panel-2); box-shadow: var(--sh-lg); }
.city-card.locked { opacity: 0.58; }
.city-card.done { border-color: rgba(34, 180, 145, 0.4); background: rgba(34, 180, 145, 0.06); }
.city-num {
  position: absolute; top: 1rem; inset-inline-start: 1.2rem;
  font-family: var(--font-h); font-size: 1.7rem; color: rgba(201, 162, 39, 0.45);
}
.city-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; }
.city-name { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; margin-top: 0.2rem; }
.city-sub { font-size: 0.78rem; color: var(--gold-2); }
.city-text { font-size: 0.9rem; color: var(--muted); }

.progress { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.2rem; }
.progress-track { flex: 1; height: 7px; border-radius: 999px; background: rgba(246, 238, 218, 0.09); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald-2), var(--gold-2)); transition: width .45s cubic-bezier(0.16, 1, 0.3, 1); }
.progress-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs button { background: none; border: 0; color: var(--gold-2); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.crumbs button:hover { text-decoration: underline; }

.divider { display: flex; justify-content: center; margin: 2.2rem 0; opacity: 0.75; }
.final-seal {
  border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; margin-top: 1.5rem;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.09), rgba(201, 162, 39, 0.01));
}
.final-seal h3 { font-family: var(--font-h); font-size: 1.15rem; margin-bottom: 0.35rem; }
.final-seal p { font-size: 0.94rem; }

@media (max-width: 640px) {
  .city-head { flex-direction: column; }
  .progress { flex-wrap: wrap; }
}
