/* جولة الصفحة الرئيسية (3 ديسمبر): زر الجولة + النافذة بمايسترو. بنفس شكل جولة اللوحة، بألوان الصفحة. */
#tourBtn { white-space: nowrap; }
.tour-fab { display: none; position: fixed; inset-inline-start: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--blue); color: #fff; font: 800 14px var(--fh); cursor: pointer; box-shadow: 0 10px 28px rgba(26, 95, 224, .45); }
.tour-fab[hidden] { display: none !important; }
@media (max-width: 640px) { #tourBtn { display: none; } .tour-fab { display: inline-flex; } }

.tour { position: fixed; inset: 0; z-index: 200; }
.tour-scrim { position: absolute; inset: 0; }
.tour-scrim.dim { background: rgba(8, 16, 40, .58); }
.tour-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 16, 40, .58); outline: 3px solid var(--cyan); outline-offset: 0; pointer-events: none; transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.tour-ring[hidden] { display: none; }
.tour-card { position: fixed; z-index: 202; max-height: calc(100vh - 20px); overflow-y: auto; width: min(400px, calc(100vw - 20px)); box-sizing: border-box; padding: 14px 20px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(8, 16, 40, .35); font: 400 15px/1.8 var(--fb); }
.tour-card.swap { animation: tour-in .22s ease-out both; }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-fig { display: flex; justify-content: center; align-items: flex-end; height: 110px; margin: 0 -8px 6px; border-radius: 16px; background: radial-gradient(ellipse at 50% 90%, var(--info-bg), transparent 72%); }
.tour-bot { height: 108px; width: auto; max-width: 100%; object-fit: contain; }
.tour-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tour-bar { flex: 1; max-width: 150px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tour-bar i { display: block; height: 100%; border-radius: 4px; background: var(--blue); transition: width .3s ease; }
.tour-title { margin: 8px 0 4px; font: 800 20px/1.4 var(--fh); }
.tour-text { margin: 0 0 12px; font-size: 15px; line-height: 1.85; }
.tour-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.tour-list[hidden] { display: none; }
.tour-list li { display: grid; gap: 1px; padding: 8px 12px; border-radius: 12px; background: var(--info-bg); font-size: 14px; line-height: 1.7; }
.tour-list b { color: var(--blue); font-size: 14px; }
.tour-note { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.tour-note[hidden] { display: none; }
.tour-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: -16px; margin: 0 0 -16px; padding: 10px 0 16px; background: var(--card); }
.tour-nav { display: inline-flex; gap: 8px; }
.tour-b { min-height: 42px; padding: 9px 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 800 14px var(--fh); cursor: pointer; }
.tour-b.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.tour-b[hidden] { display: none; }
.tour-skip { border: 0; background: none; color: var(--muted); font: 700 14px var(--fh); cursor: pointer; padding: 6px 0; }
.tour-card.sec .tour-fig { height: 80px; margin-bottom: 2px; }
.tour-card.sec .tour-bot { height: 78px; }
.tour-card.sec .tour-title { margin-top: 4px; font-size: 19px; }
.tour-card.sec .tour-text { font-size: 14.5px; line-height: 1.75; margin-bottom: 8px; }
.tour-card.sec .tour-list { gap: 5px; margin-bottom: 8px; }
.tour-card.sec .tour-list li { padding: 5px 11px; line-height: 1.6; }
@media (max-width: 700px) {
  .tour-card.sheet { inset-inline: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; }
  .tour-card.sheet.top { top: 10px; bottom: auto; }
  .tour-fig { height: 92px; } .tour-bot { height: 90px; }
  .tour-title { font-size: 18px; } .tour-text { font-size: 14.5px; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-card.swap { transition: none; animation: none; } }
@media print { .tour, .tour-fab { display: none !important; } }
