/* خط شهرزاد الجديد (SIL Open Font License) للنص العربي واللاتيني */
@font-face { font-family: Scheherazade; font-weight: 100 400; font-display: swap; src: url(/fonts/scheherazade-new-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Scheherazade; font-weight: 500; font-display: swap; src: url(/fonts/scheherazade-new-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Scheherazade; font-weight: 600; font-display: swap; src: url(/fonts/scheherazade-new-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Scheherazade; font-weight: 700 900; font-display: swap; src: url(/fonts/scheherazade-new-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: Scheherazade; font-weight: 100 400; font-display: swap; src: url(/fonts/scheherazade-new-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: Scheherazade; font-weight: 500; font-display: swap; src: url(/fonts/scheherazade-new-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: Scheherazade; font-weight: 600; font-display: swap; src: url(/fonts/scheherazade-new-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: Scheherazade; font-weight: 700 900; font-display: swap; src: url(/fonts/scheherazade-new-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
/* الأرقام بخط IBM Plex Sans Arabic (وNoto للبنغالية)، وبقية النص بخط ثمانية */
@font-face { font-family: Numerals; font-weight: 100 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0025, U+0030-0039; }
@font-face { font-family: Numerals; font-weight: 100 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Numerals; font-weight: 100 400; font-display: swap; src: url(/fonts/noto-sans-bengali-bengali-wght-normal.woff2) format('woff2'); unicode-range: U+09E6-09EF; }
@font-face { font-family: Numerals; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0025, U+0030-0039; }
@font-face { font-family: Numerals; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Numerals; font-weight: 500; font-display: swap; src: url(/fonts/noto-sans-bengali-bengali-wght-normal.woff2) format('woff2'); unicode-range: U+09E6-09EF; }
@font-face { font-family: Numerals; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0025, U+0030-0039; }
@font-face { font-family: Numerals; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Numerals; font-weight: 600; font-display: swap; src: url(/fonts/noto-sans-bengali-bengali-wght-normal.woff2) format('woff2'); unicode-range: U+09E6-09EF; }
@font-face { font-family: Numerals; font-weight: 700 900; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0025, U+0030-0039; }
@font-face { font-family: Numerals; font-weight: 700 900; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Numerals; font-weight: 700 900; font-display: swap; src: url(/fonts/noto-sans-bengali-bengali-wght-normal.woff2) format('woff2'); unicode-range: U+09E6-09EF; }
/* للعناصر الرقمية الخالصة: تشمل الفاصلة والنقطة أيضاً */
@font-face { font-family: Figures; font-weight: 100 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0020-0040, U+00A0, U+202F; }
@font-face { font-family: Figures; font-weight: 100 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Figures; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0020-0040, U+00A0, U+202F; }
@font-face { font-family: Figures; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Figures; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0020-0040, U+00A0, U+202F; }
@font-face { font-family: Figures; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
@font-face { font-family: Figures; font-weight: 700 900; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0020-0040, U+00A0, U+202F; }
@font-face { font-family: Figures; font-weight: 700 900; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0660-066D, U+06F0-06F9; }
/*
  Design read: تطبيق حملة تعبّدية لجمهور عربي على الجوال، لغة هادئة موثوقة.
  VARIANCE 5 / MOTION 4 / DENSITY 3. لون تمييز واحد (زمردي)، حواف: أزرار دائرية وأسطح 20px.
*/
@font-face { font-family: Amiri; src: url(/fonts/amiri-arabic-400-normal.woff2) format('woff2'); font-display: swap; }

:root { color-scheme: light dark; --radius: 20px; --pill: 999px; }
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="dark"] { color-scheme: dark; }
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: Numerals, Scheherazade, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; padding-bottom: calc(76px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--surface); padding: 8px 16px; border-radius: var(--pill); z-index: 3; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.muted { color: var(--muted); font-size: .85rem; }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; }

.mode { order: 2; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.ico-auto { --icon: url(/icons/circle-half.svg); }
.ico-palette { --icon: url(/icons/palette.svg); }
.ico-sun { --icon: url(/icons/sun.svg); }
.ico-moon { --icon: url(/icons/moon.svg); }
.slogan { margin-block: 18px 6px; padding: 22px; border-radius: var(--radius); background: var(--soft); text-align: center; }
.slogan blockquote { font-family: Amiri, serif; font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 2.1; text-wrap: balance; }
.slogan figcaption { color: var(--muted); font-size: .8rem; }
.preview { max-width: 1080px; margin: 0 auto 12px; padding: 4px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: .82rem; }
.preview button { flex: none; }
.preview button { font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.preview button[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.preview [data-pick="khashab"] { --dot: #8a5a2b; }
.preview [data-pick="kahraman"] { --dot: #e07c00; }
.preview [data-pick="aqeeq"] { --dot: #1b222a; }
.preview [data-pick="raqami"] { --dot: #12818d; }
.preview [data-pick="yadawi"] { --dot: #aab0b7; }
.preview [data-pick="zumurrud"] { --dot: #0d6b4f; }
.preview [data-pick="layl"] { --dot: #2450a6; }
.preview [data-pick="ward"] { --dot: #962c52; }
.preview [data-pick="fakhar"] { --dot: #9a4120; }
.preview [data-pick="hibr"] { --dot: #8b9290; }
.preview i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.top { max-width: 1080px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { font-weight: 600; text-decoration: none; }
nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
nav a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: .74rem; color: var(--muted); padding: 6px 4px; border-radius: var(--radius); }
nav a[aria-current] { color: var(--accent); background: var(--soft); }
.ico { width: 22px; height: 22px; background: currentColor; mask: var(--icon) center / contain no-repeat; display: inline-block; }
.ico-home { --icon: url(/icons/hand-heart.svg); }
.ico-globe { --icon: url(/icons/globe-hemisphere-east.svg); }
.ico-book { --icon: url(/icons/book-open-text.svg); }
.ico-info { --icon: url(/icons/info.svg); }
.ico-share { --icon: url(/icons/share-network.svg); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main > section { padding-block: 40px; }
main > section.hero { padding-block: 4px 32px; display: grid; gap: 20px; text-align: center; }
.progress h1 { font-size: 1rem; font-weight: 400; color: var(--muted); }
.total { font-size: clamp(2.6rem, 13vw, 5rem); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.total.small { font-size: 2.4rem; margin-block: 20px 4px; }
.next { max-width: 340px; margin: 6px auto 0; font-size: .85rem; }
.next b { font-weight: 600; }
.bar { height: 8px; border-radius: var(--pill); background: var(--soft); overflow: hidden; margin-block: 6px 2px; }
.bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }

.phrases { border: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.phrases input { position: absolute; opacity: 0; }
.phrases span { display: block; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--pill); font-size: .82rem; cursor: pointer; }
.phrases input:checked + span { background: var(--soft); border-color: var(--accent); }
.phrases input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

h2 { font-size: 1.35rem; font-weight: 600; margin-bottom: 14px; }
.mine dl { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 10px; }
.mine dt { font-size: .76rem; color: var(--muted); }
.mine dd { font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mine div:first-child dd { color: var(--accent); }
.stages h2 { text-align: center; }
.road { max-width: 440px; margin-inline: auto; }
.road-now { display: grid; justify-items: center; color: var(--muted); }
.road-now b { font-size: 2.2rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.3; }
.road-hint { text-align: center; margin-bottom: 8px; }
.road-canvas { position: relative; }
.road-map { position: absolute; top: 0; left: 50%; margin-left: -60px; overflow: visible; fill: none; }
.road path { stroke-linecap: round; }
.road .asphalt { stroke: var(--soft); stroke-width: 22; }
.road .travelled { stroke: var(--accent); stroke-width: 22; }
.road .lane { stroke: var(--surface); stroke-width: 2; stroke-dasharray: 6 10; }
.road .node { fill: var(--surface); stroke: var(--line); stroke-width: 4; cursor: pointer; }
.road .node.done { fill: var(--accent); stroke: var(--surface); }
.road .node.current { stroke: var(--accent); }
.road .marker { pointer-events: none; }
.road .marker .halo { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.road .marker .dot { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
@keyframes pulse { 50% { transform: scale(1.5); } }
.road ol { list-style: none; }
.road li { position: absolute; transform: translateY(-50%); width: calc(50% - var(--offset) - 20px); }
.road li.at-right { left: calc(50% + var(--offset) + 20px); }
.road li.at-left { right: calc(50% + var(--offset) + 20px); }
.road li button { width: 100%; min-height: 48px; font: inherit; line-height: 1.45; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 5px 8px; cursor: pointer; }
.road li.at-right button { text-align: left; }
.road li.at-left button { text-align: right; }
.road li button:hover, .road li.open button { background: var(--surface); border-color: var(--line); }
.road li b, .road li small { display: block; }
.road li b { font-size: 1.05rem; font-weight: 600; }
.road li small { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.road li small:empty { display: none; }
.road li.current b, .road li.current small { color: var(--accent); }
.road li:last-child b { font-size: 1.3rem; }
.ico-caret { --icon: url(/icons/caret-down.svg); width: 14px; height: 14px; margin-inline-start: 6px; vertical-align: middle; transition: transform .25s; }
.road li.open .ico-caret { transform: rotate(180deg); }
.road-panel { position: absolute; inset-inline: 0; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; animation: unfold .3s cubic-bezier(.16, 1, .3, 1); }
.road-panel h3 { color: var(--accent); margin-bottom: 10px; }
.road-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.road-panel dt { font-size: .74rem; color: var(--muted); }
.road-panel dd { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.road-panel .bar { margin-block: 14px 4px; }
@keyframes unfold { from { transform: translateY(-8px); opacity: 0; } }
.invite-card { display: grid; gap: 22px; max-width: 760px; margin-inline: auto; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.stage { perspective: 900px; justify-self: center; width: min(100%, 300px); touch-action: pan-y; }
.stage canvas { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16, 1, .3, 1); background: var(--soft); }
.invite-body { align-self: center; display: grid; gap: 12px; justify-items: center; }
.invite-body h2 { margin: 0; }
.invite-body p { color: var(--muted); }
.include { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9rem; cursor: pointer; }
.include input { width: 20px; height: 20px; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (min-width: 720px) { .invite-card { grid-template-columns: 300px 1fr; padding: 32px; gap: 32px; } }
.invitation { margin: auto; width: min(92vw, 400px); padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: center; }
.invitation[open] { display: grid; gap: 14px; animation: arrive .45s cubic-bezier(.16, 1, .3, 1); }
.invitation::backdrop { background: rgb(0 0 0 / .6); }
.invitation .phrase-line { font-family: Scheherazade, serif; font-size: 1.7rem; color: var(--accent); }
.invitation h2 { margin: 0; }
@keyframes arrive { from { transform: translateY(24px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .invitation[open] { animation: none; } }
.button { font: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); padding: 12px 26px; cursor: pointer; }
.button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button:active { transform: scale(.98); }

main > .page { max-width: 680px; margin-inline: auto; padding-block: 24px 48px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 600; margin-bottom: 8px; }
.page h2 { margin-top: 36px; }
.lead { color: var(--muted); }
.countries { list-style: none; counter-reset: rank; margin-top: 20px; }
.countries li { counter-increment: rank; display: grid; grid-template-columns: 2.2em 32px 1fr auto; align-items: center; column-gap: 8px; padding: 12px 14px; border-radius: var(--radius); }
.countries li:nth-child(odd) { background: var(--surface); }
.countries li::before { content: counter(rank); color: var(--muted); }
.countries li:lang(ar)::before { content: counter(rank, arabic-indic); }
.countries b { font-weight: 600; font-variant-numeric: tabular-nums; }
.flag { width: 32px; height: 24px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.flag.unknown { height: 24px; box-shadow: none; mask-size: 24px; color: var(--muted); }
.countries i { grid-column: 3 / -1; height: 4px; border-radius: var(--pill); background: var(--accent); width: var(--share); min-width: 4px; }
.countries li.here { outline: 2px solid var(--accent); }
.master { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.master h2 { margin-top: 0; color: var(--accent); }
.verse { padding-block: 18px; }
.verse + .verse { border-top: 1px solid var(--line); }
.verse h3 { font-size: 1rem; font-weight: 500; color: var(--accent); }
.scripture { font-family: Amiri, serif; font-size: 1.55rem; line-height: 2.2; }
.source { color: var(--muted); font-size: .8rem; }
.prose p { margin-bottom: 12px; }

.toast { position: fixed; inset-inline: 20px; bottom: 96px; z-index: 3; margin-inline: auto; width: fit-content; max-width: calc(100% - 40px); background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: var(--pill); font-size: .85rem; }
#verify { position: fixed; bottom: 92px; inset-inline: 0; z-index: 4; display: flex; justify-content: center; }
.noscript { text-align: center; padding: 20px; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .top { padding-block: 18px; }
  nav { margin-inline-start: auto; }
  nav { position: static; display: flex; gap: 4px; background: none; border: 0; padding: 0; }
  nav a { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 8px 16px; border-radius: var(--pill); }
  main > section.hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: calc(100dvh - 90px); text-align: start; }
  .next { margin-inline: 0; }
  .toast { bottom: 28px; }
  #verify { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .road .marker .halo, .road-panel { animation: none; }
}

/* اللغات */
[dir="rtl"] .bar i { transform-origin: right; }
.translating body { visibility: hidden; }
.lang { order: 1; margin-inline-start: auto; font: inherit; font-size: .82rem; height: 42px; max-width: 40vw; padding-inline: 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.meaning { color: var(--muted); font-size: .92rem; margin-block: 4px; }
.slogan .meaning { margin-block: 8px 2px; }
nav a { text-align: center; line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 860px) { .lang { order: 1; margin-inline-start: 0; } nav a { white-space: nowrap; } .top { flex-wrap: wrap; } }

/* الأردية تحتاج حروفاً لا يغطيها الخط الأساسي */
@font-face { font-family: Naskh; src: url(/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Naskh; src: url(/fonts/noto-naskh-arabic-arabic-600-normal.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }
:root:lang(ur) body { font-family: Numerals, Naskh, serif; line-height: 1.9; }

/* خط العناوين متقارب الكلمات، فنفسح بينها */
:lang(ar) :is(h1, h2, h3) { word-spacing: .08em; }

.total, .road-now b, .road-panel dd, .mine dd, .countries b, .countries li::before { font-family: Figures, Numerals, Scheherazade, system-ui, sans-serif; }

/* نبض مباشر */
.live { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-size: .85rem; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.live.beat .live-dot { animation: beat 1.2s ease-out 2; }
@keyframes beat { from { box-shadow: 0 0 0 0 var(--accent); } to { box-shadow: 0 0 0 12px transparent; } }
.live-dot { animation: breath 3s ease-in-out infinite; }
@keyframes breath { 50% { opacity: .45; } }

/* خريطة الدول */
.map { margin-block: 18px 8px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.world { display: block; width: 100%; height: auto; }
.world .land { fill: var(--line); }
.world .bubble { fill: var(--accent); fill-opacity: .5; stroke: var(--accent); stroke-width: 1.5; cursor: pointer; outline: none; }
.world .bubble:hover, .world .bubble:focus-visible { fill-opacity: .8; }
.world .ring { fill: none; stroke: var(--accent); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ripple 1.8s ease-out 2 forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map-caption { text-align: center; min-height: 1.7em; font-size: .9rem; color: var(--muted); }
.map-caption:empty::before { content: '\00a0'; }

/* احتفال */
.motes { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .live-dot, .live.beat .live-dot, .world .ring { animation: none; } }

/* خيارات البطاقة والدعوة */
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.options button { font: inherit; font-size: .9rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); cursor: pointer; }
.options button[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.options .swatch { width: 34px; height: 34px; padding: 0; background: var(--swatch); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.options .swatch[aria-pressed="true"] { border-color: var(--surface); box-shadow: 0 0 0 3px var(--accent); background: var(--swatch); }
.actions a.button { text-decoration: none; }
.joined { font-weight: 500; color: var(--ink); }
.live-card { background: var(--card-bg, var(--surface)); color: var(--card-ink, var(--ink)); border-color: transparent; }
.live-card .phrase-line { color: var(--card-ink, var(--accent)); line-height: 2; }
.live-card .muted, .live-card p { color: inherit; }
.live-card .total { color: inherit; margin: 0; }
.live-card .button { background: var(--card-ink, var(--accent)); color: var(--card-bg, var(--on-accent)); }
.live-card .button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.say-line { min-height: 1.7em; font-size: .95rem; }
.qr { width: min(100%, 280px); height: auto; margin-inline: auto; border-radius: 12px; image-rendering: pixelated; background: #fff; }
