/* تنسيقات موقع كبّة الطيار (صفحة التعريف وصفحات المحتوى): نفس هوية اللعبة، بالوضعين،
   وحركات هادئة على أسلوب The Kitchen (src/motion). كل صفحة غلافها <div class="site">. */
/* صفحة التعريف (kobbaa.com) — نفس هوية اللعبة، بالوضعين، وحركات هادئة على أسلوب The Kitchen (src/motion) */
.site {
  --bg: #0A1230; --bg2: #121C45; --line: #2B3B7A; --text: #F6F8FF; --muted: #A9B6D8;
  --head: #FFB914; --sun: #FFB914; --sunD: #E59A00; --onSun: #071F52;
  --coral: #FF6B3A; --coralD: #C93C0E; --teal: #00A6B2; --navy: #0B3484;
  --card: #FFF4E0; --cardInk: #0A1230; --cardSub: #3A4366; --cardShadow: #CFC3A8;
  --glow: #1B2A63; --hdr: rgba(10, 18, 48, 0.9); --plate: #E2E8F4; --plateD: #AFBBD7;
  position: relative; z-index: 1; background: var(--bg); color: var(--text);
  font-family: 'Readex Pro', Tahoma, sans-serif; font-size: 16px; line-height: 1.75;
  transition: background-color 0.4s, color 0.4s;
}
html[data-mode='light'] .site {
  --bg: #FAFAF7; --bg2: #FFFFFF; --line: #D5DCEB; --text: #10192E; --muted: #4A5878;
  --head: #0B3484; --coral: #C93C0E; --coralD: #8F2A09; --teal: #007A84;
  --card: #FFF4E0; --cardShadow: #E3D6B8; --glow: #D6E8FF; --hdr: rgba(250, 250, 247, 0.9);
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site h1, .site h2, .site h3, .site .l-btn, .site .l-brand { font-family: 'Baloo Bhaijaan 2', 'Readex Pro', sans-serif; letter-spacing: 0; }
.site a { color: inherit; }
.site .l-wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

/* أزرار «تنضغط»: ظل سفلي صلب وتنزل عند الضغط */
.site .l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; padding: 12px 26px; font-weight: 700; font-size: 19px; line-height: 1.4; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.12s, box-shadow 0.12s, background-color 0.3s; -webkit-tap-highlight-color: transparent; }
.site .l-main { background: var(--sun); color: var(--onSun); box-shadow: 0 5px 0 var(--sunD); }
.site .l-main:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sunD); }
.site .l-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.site .l-ghost:active { transform: translateY(2px); }
.site .l-btn:focus-visible, .site .l-icon:focus-visible, .site .l-card:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.site header { position: sticky; top: 0; z-index: 5; background: var(--hdr); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site header .l-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.site .l-brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--head); text-decoration: none; }
.site .l-brand img { width: 40px; height: 40px; border-radius: 12px; }
.site .l-tools { display: flex; align-items: center; gap: 8px; }
.site header .l-btn { padding: 7px 20px; font-size: 16px; }
.site .l-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 0; background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.site .l-icon svg { width: 22px; height: 22px; }
.site .l-sun { display: none; }
html[data-mode='light'] .site .l-sun { display: block; }
html[data-mode='light'] .site .l-moon { display: none; }

.site .l-hero { background: radial-gradient(ellipse at 25% 40%, var(--glow) 0%, transparent 62%); padding: 52px 0 64px; overflow: hidden; }
.site .l-hero .l-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center; }
.site h1 .l-h1a { display: block; font-size: 64px; line-height: 1.15; font-weight: 800; color: var(--head); }
html[data-mode='light'] .site h1 .l-h1a { text-shadow: 0 4px 0 #FFB914; }
.site h1 .l-h1b { display: block; font-size: 30px; line-height: 1.4; font-weight: 700; margin-top: 10px; }
.site .l-hero p { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 540px; }
.site .l-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.site .l-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* الكبّة ترسم نفسها خط خط (مثل TraceLoader) وبعدين تثبت وتتنفس بهدوء */
.site .l-art { justify-self: center; width: 100%; max-width: 400px; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, var(--glow) 0%, transparent 66%); border-radius: 50%; }
.site .l-bell { width: 78%; height: auto; overflow: visible; }
.site .l-bell .l-float { animation: l-float 5s ease-in-out 2.2s infinite; transform-origin: 120px 200px; }
.site .l-bell path { stroke: var(--text); stroke-width: 4; stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0; animation: l-draw 2s cubic-bezier(.45, 0, .2, 1) forwards; }
.site .l-bell .s { fill: none; stroke-width: 10; stroke-linecap: round; animation-name: l-draw-s; }
.site .l-bell .ray { stroke-width: 11; }
.site .l-bell .rays { animation: l-glow 3.2s ease-in-out 2.4s infinite; }
.site .l-bell .d1 { animation-delay: 0.1s; } .site .l-bell .d2 { animation-delay: 0.25s; } .site .l-bell .d3 { animation-delay: 0.4s; } .site .l-bell .d4 { animation-delay: 0.55s; } .site .l-bell .d5 { animation-delay: 0.7s; }
@keyframes l-draw { 0% { stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: 1; } 55% { stroke-dashoffset: 0; fill-opacity: 0; stroke-opacity: 1; } 100% { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; } }
@keyframes l-draw-s { 0% { stroke-dashoffset: 1; } 55% { stroke-dashoffset: 0; stroke: var(--text); } 100% { stroke-dashoffset: 0; stroke: var(--final); } }
html[data-mode='light'] .site .l-bell .l-plate { fill: #D5DCEB; }
html[data-mode='light'] .site .l-bell .l-plateD { fill: #9AA8C7; }
@keyframes l-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes l-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.site section { padding: 60px 0; }
.site section.l-alt { background: var(--bg2); }
.site h2 { font-size: 36px; line-height: 1.35; font-weight: 800; color: var(--head); margin-bottom: 6px; }
.site .l-lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; max-width: 720px; }

.site .l-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site .l-step { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.site .l-step b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--coral); color: #fff; font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 22px; box-shadow: 0 4px 0 var(--coralD); margin-bottom: 12px; }
.site .l-step h3 { font-size: 21px; margin-bottom: 4px; }
.site .l-step p { color: var(--muted); font-size: 15px; }

.site .l-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site .l-card { background: var(--card); color: var(--cardInk); border-radius: 22px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 5px 0 var(--cardShadow); transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.35s; }
.site .l-card:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--cardShadow); }
.site .l-card:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cardShadow); }
.site .l-card img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; display: block; }
.site .l-card div { padding: 12px 16px 16px; }
.site .l-card h3 { font-size: 20px; color: #0B3484; }
.site .l-card p { font-size: 14px; color: var(--cardSub); line-height: 1.6; }
.site .l-wide { grid-column: span 2; flex-direction: row; }
.site .l-wide img { width: 46%; aspect-ratio: auto; }
.site .l-wide div { padding: 18px; }
.site .l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.site .l-tags span { font-size: 13px; background: rgba(11, 52, 132, 0.1); color: #0B3484; padding: 2px 10px; border-radius: 999px; }

/* ثيمات الدول: طابع بريد كامل مثل CountryStamp في اللعبة (src/motion/Stamps.tsx):
   رسمة معلم الدولة، إطار بلونها، السنة، شريط الاسم، وختم البريد ينطبع لما تمرّون عليه أو تضغطونه */
.site .l-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 18px; max-width: 900px; }
.site .l-st { position: relative; display: block; color: #071F52; cursor: pointer; outline: none; filter: drop-shadow(0 4px 0 rgba(4, 8, 26, 0.45)); -webkit-tap-highlight-color: transparent; }
html[data-mode='light'] .site .l-st { filter: drop-shadow(0 4px 0 rgba(16, 25, 46, 0.16)) drop-shadow(0 1px 2px rgba(16, 25, 46, 0.12)); }
.site .l-st-in { --r: 4px; display: block; padding: 8px; background: #FFFDF6; transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.site .l-st:nth-child(odd) .l-st-in { transform: rotate(-1.5deg); }
.site .l-st:nth-child(even) .l-st-in { transform: rotate(1.2deg); }
.site .l-st-art { position: relative; display: block; aspect-ratio: 0.8; overflow: hidden; background: #FBF7EE; outline: 1.5px solid var(--sc); outline-offset: -1.5px; }
.site .l-st-art > img { position: absolute; inset: 0 0 18% 0; width: 100%; height: 82%; object-fit: cover; }
.site .l-st-art > b { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 3px 5px; background: var(--sc); color: #fff; font: 700 13px/1.1 'Baloo Bhaijaan 2', 'Readex Pro', Tahoma, sans-serif; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .l-st-art > b.ink { color: #071F52; }
.site .l-st-yr { position: absolute; top: 4px; left: 5px; font: 600 9px/1 Fredoka, system-ui, sans-serif; color: #4A5878; }
.site .l-pm { position: absolute; top: 30%; right: -16%; width: 80%; z-index: 4; pointer-events: none; opacity: 0; color: rgba(7, 31, 82, 0.78); }
.site .l-st:hover .l-st-in, .site .l-st:focus-visible .l-st-in, .site .l-st.on .l-st-in { transform: translateY(-4px) rotate(-3deg); }
.site .l-st:hover .l-pm, .site .l-st:focus-visible .l-pm, .site .l-st.on .l-pm { animation: l-pm 0.45s cubic-bezier(.2, 1.5, .4, 1) both; }
.site .l-st:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
@keyframes l-pm { 0% { opacity: 0; transform: scale(2.2) rotate(-18deg); } 60% { opacity: 1; transform: scale(0.94) rotate(-12deg); } 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }

.site .l-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.site .l-who div { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: var(--bg2); }
.site .l-who h3 { font-size: 20px; color: var(--teal); }
.site .l-who p { color: var(--muted); font-size: 14px; }

.site .l-faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.site .l-faq summary { font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 20px; font-weight: 700; cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
.site .l-faq summary::-webkit-details-marker { display: none; }
.site .l-faq summary::after { content: '+'; color: var(--sun); font-size: 26px; line-height: 1; transition: transform 0.3s; }
.site .l-faq details[open] summary::after { transform: rotate(45deg); }
.site .l-faq p { color: var(--muted); margin-top: 6px; max-width: 820px; }

.site .l-final { text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 70%); }
.site .l-final h2 { font-size: 42px; }
.site .l-final .l-lead { margin: 0 auto 24px; }
.site footer { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }

/* الواجهة تظهر فوراً (عشان سرعة أول عرض) بحركة صعود خفيفة بدون إخفاء */
.site .l-up { animation: l-up 0.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes l-up { from { transform: translateY(12px); } }
/* ظهور هادئ للأقسام (بس لو الجافاسكربت شغال) */
html.js .site .rise { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
html.js .site .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
  .site .l-bell path { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
  .site .l-bell .s { stroke: var(--final); stroke-opacity: 1; }
  html.js .site .rise { opacity: 1; transform: none; }
  .site .l-st:hover .l-pm, .site .l-st.on .l-pm { opacity: 1; transform: rotate(-12deg); }
}
html.lite .site *, html.lite .site *::before, html.lite .site *::after { animation: none !important; transition: none !important; }
html.lite .site .l-bell path { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
html.lite .site .l-bell .s { stroke: var(--final); stroke-opacity: 1; }
html.lite.js .site .rise { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .site .l-hero { padding: 28px 0 48px; }
  .site .l-hero .l-wrap { grid-template-columns: 1fr; }
  .site .l-art { max-width: 230px; grid-row: 1; }
  .site h1 .l-h1a { font-size: 46px; }
  .site h1 .l-h1b { font-size: 22px; }
  .site .l-hero p { font-size: 17px; }
  .site .l-steps, .site .l-who { grid-template-columns: 1fr; }
  .site .l-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .site .l-wide { flex-direction: column; }
  .site .l-wide img { width: 100%; aspect-ratio: 2; }
  .site h2 { font-size: 28px; }
  .site .l-final h2 { font-size: 30px; }
  .site section { padding: 44px 0; }
  .site header .l-brand span { display: none; }
  .site .l-stamps { grid-template-columns: repeat(3, 1fr); gap: 18px 14px; }
}

/* ===== صفحات المحتوى (إنسان حيوان نبات جماد، رمضان، الثيمات…) ===== */
html.site-page, html.site-page body { margin: 0; min-height: 100%; background: #0A1230; }
html.site-page[data-mode='light'], html.site-page[data-mode='light'] body { background: #FAFAF7; }
.site .l-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.site .l-crumbs a { color: var(--muted); text-decoration: none; }
.site .l-crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.site .l-crumbs span { margin: 0 6px; opacity: 0.6; }
.site .l-prose { max-width: 760px; }
.site .l-prose p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.site .l-prose p strong { color: var(--text); }
.site .l-prose a, .site .l-faq p a { color: var(--sun); text-underline-offset: 4px; }
html[data-mode='light'] .site .l-prose a, html[data-mode='light'] .site .l-faq p a { color: #0B3484; }
.site .l-cols { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.site .l-cols span { font-family: 'Baloo Bhaijaan 2', sans-serif; font-weight: 700; font-size: 17px; padding: 4px 16px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 2px var(--line); }
.site ol.l-howto { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 12px; max-width: 820px; }
.site ol.l-howto li { counter-increment: s; position: relative; padding: 16px 64px 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--muted); font-size: 16px; }
.site ol.l-howto li strong { color: var(--text); font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 18px; display: block; }
.site ol.l-howto li::before { content: counter(s, arabic-indic); position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--coral); color: #fff; font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 19px; box-shadow: 0 4px 0 var(--coralD); }
.site .l-table-wrap { overflow-x: auto; max-width: 820px; border: 1px solid var(--line); border-radius: 18px; }
.site table.l-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.site table.l-table th, .site table.l-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.site table.l-table th { font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 16px; color: var(--muted); font-weight: 700; background: var(--bg2); }
.site table.l-table tr:last-child td { border-bottom: 0; }
.site table.l-table tfoot td { font-weight: 700; color: var(--text); background: var(--bg2); }
.site .l-pt { display: inline-block; min-width: 34px; text-align: center; font: 700 14px/1 Fredoka, 'Readex Pro', sans-serif; font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 9px; color: #fff; }
.site .l-pt.ok { background: #1FB86A; }
.site .l-pt.dup { background: #E59A00; }
.site .l-pt.bad { background: #B71F35; }
.site .l-tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 900px; }
.site .l-tips div { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--bg2); }
.site .l-tips h3 { font-size: 18px; color: var(--teal); margin-bottom: 2px; }
.site .l-tips p { color: var(--muted); font-size: 15px; }
.site .l-note-box { max-width: 820px; margin-top: 14px; font-size: 15px; color: var(--muted); }

/* بطاقة الجولة: الحرف يلف مثل عجلة ويوقف على «م»، وبعدين الأجوبة تنكتب وحدة ورا الثانية */
.site .l-sheet { justify-self: center; width: 100%; max-width: 380px; background: var(--card); color: var(--cardInk); border-radius: 26px; padding: 20px; box-shadow: 0 8px 0 var(--cardShadow); }
.site .l-sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.site .l-sheet-top small { font-size: 13px; color: var(--cardSub); }
.site .l-slot { width: 74px; height: 74px; border-radius: 20px; background: #FFB914; box-shadow: 0 5px 0 #E59A00; overflow: hidden; position: relative; }
.site .l-reel { display: flex; flex-direction: column; animation: l-reel 1.6s cubic-bezier(.2, .9, .25, 1) 0.3s both; }
.site .l-reel span { height: 74px; display: grid; place-items: center; font: 800 46px/1 'Baloo Bhaijaan 2', sans-serif; color: #071F52; }
@keyframes l-reel { from { transform: translateY(0); } to { transform: translateY(-666px); } }
.site .l-rows { display: grid; gap: 8px; }
.site .l-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #FFFDF6; border-radius: 14px; padding: 8px 12px; animation: l-row 0.5s cubic-bezier(.2, .7, .2, 1) both; }
.site .l-row b { font: 700 14px/1 'Readex Pro', sans-serif; color: var(--cardSub); min-width: 46px; }
.site .l-row em { flex: 1; font: 700 19px/1.2 'Baloo Bhaijaan 2', sans-serif; font-style: normal; color: #0B3484; }
.site .l-row .l-pt { animation: l-pop 0.4s cubic-bezier(.34, 1.56, .64, 1) both; }
.site .l-row:nth-child(1), .site .l-row:nth-child(1) .l-pt { animation-delay: 2.0s; }
.site .l-row:nth-child(2), .site .l-row:nth-child(2) .l-pt { animation-delay: 2.25s; }
.site .l-row:nth-child(3), .site .l-row:nth-child(3) .l-pt { animation-delay: 2.5s; }
.site .l-row:nth-child(4), .site .l-row:nth-child(4) .l-pt { animation-delay: 2.75s; }
.site .l-row:nth-child(5), .site .l-row:nth-child(5) .l-pt { animation-delay: 3.0s; }
.site .l-row .l-pt { animation-delay: inherit; }
@keyframes l-row { from { opacity: 0; transform: translateY(8px); } }
@keyframes l-pop { from { transform: scale(0); } }
.site .l-sheet-sum { margin-top: 12px; display: flex; justify-content: space-between; font: 700 16px/1 'Baloo Bhaijaan 2', sans-serif; color: #0B3484; }
.site .l-sheet-sum span { font-family: Fredoka, sans-serif; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .site .l-reel { transform: translateY(-666px); } }
html.lite .site .l-reel { transform: translateY(-666px); }
@media (max-width: 860px) {
  .site .l-tips { grid-template-columns: 1fr; }
  .site .l-sheet { max-width: 330px; }
  .site ol.l-howto li { padding-right: 58px; }
  .site table.l-table { font-size: 15px; }
  .site table.l-table th, .site table.l-table td { padding: 10px 7px; }
  .site table.l-table th { font-size: 14px; }
}
.site .l-foot { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.site .l-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site footer a { color: var(--text); text-decoration: none; }
.site footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site .l-faq p a { color: var(--sun); }

/* ===== صفحات الثيمات ورمضان ===== */
.site .l-stamp-hero { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.site .l-st-big { width: 210px; }
.site .l-st-big .l-st-art > b { font-size: 22px; padding: 7px 4px 9px; }
.site .l-st-big .l-st-yr { font-size: 13px; top: 6px; left: 8px; }
.site .l-st-big.on .l-pm { animation-delay: 1.1s; }
.site .l-st-big:hover .l-pm { animation-delay: 0s; }
.site .l-greet { font-family: 'Baloo Bhaijaan 2', sans-serif; font-weight: 700; font-size: 20px; color: var(--sun); text-align: center; animation: l-up 0.8s cubic-bezier(.2, .7, .2, 1) 1.4s both; }
html[data-mode='light'] .site .l-greet { color: #8A5A00; }
.site a.l-st { text-decoration: none; }
.site .l-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.site .l-cat { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--bg); }
.site .l-cat h3 { font-size: 18px; color: var(--text); margin-bottom: 2px; }
.site .l-cat p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.site .l-qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.site .l-q { background: var(--card); color: var(--cardInk); border-radius: 22px; padding: 18px; box-shadow: 0 5px 0 var(--cardShadow); display: flex; flex-direction: column; gap: 10px; }
.site .l-q-cat { align-self: flex-start; font-size: 13px; font-weight: 700; color: #0B3484; background: rgba(11, 52, 132, 0.1); padding: 2px 12px; border-radius: 999px; }
.site .l-q p { font-family: 'Baloo Bhaijaan 2', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.5; color: #0A1230; flex: 1; }
.site .l-q details summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: #C93C0E; }
.site .l-q details summary::-webkit-details-marker { display: none; }
.site .l-q details summary::before { content: '◂ '; display: inline-block; transition: transform 0.25s; }
.site .l-q details[open] summary::before { transform: rotate(-90deg); }
.site .l-q details b { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: #1FB86A; color: #fff; font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 18px; animation: l-pop 0.35s cubic-bezier(.34, 1.56, .64, 1) both; }
.site .l-cover { justify-self: center; width: 100%; max-width: 480px; border-radius: 26px; overflow: hidden; box-shadow: 0 8px 0 var(--cardShadow); background: var(--card); }
.site .l-cover img { display: block; width: 100%; height: auto; }
.site table.l-wrapcells td, .site table.l-wrapcells th { white-space: normal; }
.site table.l-wrapcells td:first-child { white-space: nowrap; font-weight: 700; color: var(--text); }
.site .l-table td a { color: var(--text); font-weight: 700; text-underline-offset: 4px; }
.site .l-prose-wrap .l-lead { max-width: 760px; }
@media (max-width: 860px) {
  .site .l-qs { grid-template-columns: 1fr; }
  .site .l-st-big { width: 170px; }
  .site .l-stamp-hero { grid-row: 1; }
  .site .l-cover { grid-row: 1; max-width: 420px; }
}
.site .l-lead a { color: var(--sun); text-underline-offset: 4px; }
html[data-mode='light'] .site .l-lead a { color: #0B3484; }
