/* ليلة الحفل على ورق: أرض رقّية فاتحة، وأخضر الجمعية العميق، وذهب محفور. الوسام وحده يبقى أخضر داكنًا كقطعة مينا. */
.night {
  --n-0: #efe6d1;
  --n-1: #f7f1e3;
  --n-2: #0f3a2b;
  --n-3: #e2e3d3;
  --n-4: #1a5440;
  --deep: #0f3a2b;
  --deep-2: #1c4a38;
  --on-gold: #1a1406;
  --g-1: #876520;
  --g-2: #b88f3c;
  --g-3: #d8bf83;
  --ink: #15281f;
  --ink-2: #44574c;
  --ink-3: #66786e;
  --hair: rgba(150, 114, 40, .32);
  background: var(--n-1);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
  scrollbar-color: var(--g-3) var(--n-0);
}
.night ::selection { background: var(--g-2); color: var(--n-0); }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 10px; z-index: 60; background: var(--deep); color: #f7f1e3; padding: .4em .9em; border-radius: 8px; }
.night :focus-visible { outline: 2px solid var(--g-1); outline-offset: 3px; border-radius: 6px; }
.night a { color: var(--g-1); text-underline-offset: .25em; }
.wrap { width: min(1200px, 100% - 40px); }
.num, .count, .clock b { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* الشريط العلوي */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 40; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(247, 241, 227, .9); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--hair); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand i { width: 1px; height: 28px; background: var(--hair); }
.links { display: none; gap: 2px; margin-inline-start: auto; }
.links a { color: var(--ink-2); text-decoration: none; padding: .45em .9em; border-radius: 999px; font-size: .95rem; transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); background: rgba(15, 58, 43, .06); }
.cta-mini { margin-inline-start: auto; color: #f7f1e3 !important; background: var(--deep); text-decoration: none; font-weight: 600; padding: .5em 1.2em; border-radius: 999px; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; transition: background .2s, transform .2s; }
.cta-mini:hover { background: var(--n-4); }
@media (min-width: 960px) { .links { display: flex; } .cta-mini { margin-inline-start: 6px; } }

/* المسرح */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 104px 0 72px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 55% at 26% 48%, rgba(184, 143, 60, .2), transparent 70%),
    radial-gradient(80% 70% at 85% 0%, #fbf7ee 0%, transparent 60%),
    linear-gradient(180deg, var(--n-1), #f2ead8); }
.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--g-2); opacity: calc(var(--o) * .7); }
@media (prefers-reduced-motion: no-preference) { .stars i { animation: twinkle var(--d) ease-in-out infinite alternate; } }
@keyframes twinkle { from { opacity: calc(var(--o) * .25); } to { opacity: var(--o); } }
.stage-light { position: absolute; inset: -20% 10% auto auto; width: 70vmax; height: 70vmax; background: conic-gradient(from 200deg at 50% 0%, transparent 0 40%, rgba(184, 143, 60, .1) 46%, transparent 54%); filter: blur(8px); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }

.edition { display: inline-flex; align-items: center; gap: .6em; color: var(--g-1); font-size: .95rem; letter-spacing: .01em; margin-bottom: 20px; }
.edition::before { content: ''; width: 28px; height: 1px; background: var(--g-2); }
.title { font-family: var(--font-display); font-weight: 700; margin: 0 0 18px; line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
.title .t1 { display: block; font-size: clamp(2.6rem, 6.2vw, 5.4rem); color: var(--ink); }
.title .t2 { display: block; font-size: clamp(1.7rem, 3.6vw, 3rem); color: var(--g-2); font-weight: 600; margin-top: .3em; }
.motto { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 500; color: var(--ink); margin: 0 0 6px; }
.credit { color: var(--ink-3); font-size: .98rem; margin: 0 0 30px; line-height: 1.75; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.act { position: relative; display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: .7em 1.4em; border-radius: 16px; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s, box-shadow .25s; line-height: 1.35; }
.act b { font-size: 1.05rem; font-weight: 600; }
.act small { font-size: .82rem; opacity: .8; }
.act.primary { background: var(--deep); color: #f7f1e3 !important; box-shadow: 0 12px 28px -14px rgba(15, 58, 43, .6); }
.act.primary:hover { transform: translateY(-2px); background: var(--n-4); box-shadow: 0 18px 34px -14px rgba(15, 58, 43, .7); }
.act.primary small { color: #e3c983; opacity: 1; }
.act.ghost { border: 1px solid var(--hair); color: var(--ink) !important; background: rgba(255, 253, 247, .7); }
.act.ghost:hover { border-color: var(--g-2); background: #fffdf7; transform: translateY(-2px); }
.closed-note { border: 1px dashed var(--hair); border-radius: 16px; padding: .9em 1.2em; color: var(--ink-2); line-height: 1.75; }
.demo-note { margin: 18px 0 0; font-size: .82rem; color: var(--ink-3); }

/* الوسام */
.medal { position: relative; margin: 0 auto; width: min(560px, 100%); aspect-ratio: 1; container-type: inline-size; }
.medal-svg { width: 100%; height: 100%; overflow: visible; }
.m-dots { fill: none; stroke: var(--g-2); stroke-width: 5; stroke-dasharray: 0.1 14.1; stroke-linecap: round; opacity: .65; }
.m-hair { fill: none; stroke: var(--g-2); stroke-width: 1; opacity: .5; }
.m-core { stroke: none; }
.seg { fill: none; stroke: url(#gold); stroke-width: 34; cursor: pointer; transition: stroke-width .3s, opacity .4s, filter .3s; opacity: .16; }
.seg.lit { opacity: 1; }
.seg:hover, .seg:focus, .seg.on { stroke-width: 44; filter: drop-shadow(0 0 12px rgba(243, 220, 154, .45)); outline: none; }
.seg-num { font-family: var(--font-num); font-size: 17px; fill: var(--on-gold); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-weight: 600; opacity: 0; transition: opacity .4s; }
.seg-num.lit { opacity: 1; }
.medal { --ink: #f1e8d2; --ink-2: #b9c9bd; --ink-3: #8fa89a; --g-1: #f3dc9a; }
.medal .medal-hint { color: #66786e; }
.medal-svg { filter: drop-shadow(0 30px 40px rgba(15, 58, 43, .22)); }
.track-label { font-family: var(--font); font-size: 15px; fill: var(--g-1); text-anchor: middle; opacity: .9; letter-spacing: .02em; }
.medal-center { color: var(--ink); position: absolute; inset: 23%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.2cqi; }
.medal-center [hidden] { display: none !important; }
.mc-emblem { width: 10cqi; height: auto; margin: 0 auto .4cqi; opacity: .92; }
.mc-kicker { margin: 0; color: var(--g-1); font-size: 3.3cqi; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.clock { display: flex; justify-content: center; gap: 2.4cqi; direction: rtl; }
.clock span { display: grid; justify-items: center; }
.clock b { font-size: 8.4cqi; line-height: 1.15; color: var(--ink); font-weight: 300; min-width: 1.35em; }
.clock small { font-size: 2.5cqi; color: var(--ink-3); margin-top: .3cqi; }
.mc-date { margin: .4cqi 0 0; font-size: 2.7cqi; color: var(--ink-2); line-height: 1.6; white-space: nowrap; }
.mc-branch { display: grid; gap: .4cqi; justify-items: center; }
.mc-branch a { font-size: 2.7cqi; margin-top: .8cqi; }
.mc-branch .b-track { color: var(--g-1); font-size: 3cqi; }
.mc-branch .b-name { font-family: var(--font-display); font-size: 7.4cqi; line-height: 1.2; font-weight: 700; }
.mc-branch .b-parts { color: var(--ink-2); font-size: 3.4cqi; line-height: 1.5; }
.mc-branch .b-prize { font-family: var(--font-num); color: var(--g-1); font-size: 5.4cqi; margin-top: .6cqi; line-height: 1.3; white-space: nowrap; }
.mc-branch .b-prize small { font-family: var(--font); font-size: 2.6cqi; color: var(--ink-3); }
.medal-hint { text-align: center; color: var(--ink-3); font-size: .82rem; margin-top: 4px; }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--hair); border-radius: 14px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--g-2); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 960px) and (min-height: 760px) { .scroll-cue { display: block; } }

.announce { background: var(--deep); color: #f3dc9a; font-weight: 600; }
.announce .wrap { padding: 14px 0; text-align: center; line-height: 1.7; }

/* عناوين الأقسام */
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.25; margin: 0 0 18px; color: var(--ink); text-wrap: balance; }
.lede { color: var(--ink-2); max-width: 60ch; margin: 0 0 28px; }

/* لكل بيت في حائل */
.homes { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); background: var(--n-0); position: relative; }
.homes-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .homes-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.big-count { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .5em; }
.big-count b { font-size: clamp(4.2rem, 11vw, 7.5rem); line-height: 1; color: var(--g-1); font-weight: 250; }
.big-count span { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--ink); max-width: 16ch; line-height: 1.5; }
.split { color: var(--ink-2); margin: 0 0 22px; }
.split b { color: var(--ink); font-family: var(--font-num); font-weight: 500; }
.tracks-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--n-3); margin-bottom: 12px; }
.tracks-bar i { display: block; height: 100%; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.tracks-bar i:nth-child(1) { background: var(--g-1); } .tracks-bar i:nth-child(2) { background: var(--g-2); } .tracks-bar i:nth-child(3) { background: var(--g-3); }
.tracks-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; color: var(--ink-2); margin: 0 0 18px; padding: 0; list-style: none; }
.tracks-legend li { display: inline-flex; align-items: center; gap: .45em; }
.tracks-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tracks-legend b { font-family: var(--font-num); color: var(--ink); font-weight: 500; }
.windows-key { color: var(--ink-3); font-size: .86rem; margin: 0; }
.windows { max-width: 720px; width: 100%; margin-inline: auto; display: grid; grid-template-columns: repeat(var(--cols, 20), 1fr); gap: clamp(3px, .6vw, 7px); }
.win { aspect-ratio: 3 / 4.2; border-radius: 40% 40% 3px 3px / 30% 30% 3px 3px; background: var(--deep-2); transition: background .5s, box-shadow .6s; }
.win.on { background: radial-gradient(120% 90% at 50% 80%, #fff2c6, var(--g-2) 70%); box-shadow: 0 6px 14px -4px rgba(214, 172, 83, .45); }
.past { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hair); }
.past-item { display: flex; gap: 14px; align-items: baseline; }
.past-item .yr { font-family: var(--font-num); color: var(--g-1); font-size: 1.1rem; }
.past-item p { margin: 0; color: var(--ink-2); line-height: 1.7; }
.past-item p b { color: var(--ink); font-family: var(--font-num); font-weight: 500; }

/* لوحة الشرف */
.board-sec { padding: clamp(80px, 11vw, 130px) 0; background:
  radial-gradient(70% 50% at 50% 0%, rgba(214, 172, 83, .08), transparent 70%), var(--n-1); }
.track-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.track-tabs button { flex: none; font: inherit; min-height: 48px; padding: .45em 1.3em; border-radius: 999px; border: 1px solid var(--hair); background: transparent; color: var(--ink-2); cursor: pointer; transition: all .25s; }
.track-tabs button:hover { color: var(--ink); border-color: var(--g-2); }
.track-tabs button[aria-selected='true'] { background: var(--deep); color: #f7f1e3; border-color: var(--deep); font-weight: 600; }
.board { border: 1px solid var(--hair); border-radius: 22px; background: #fffdf7; overflow: hidden; box-shadow: 0 24px 50px -34px rgba(15, 58, 43, .35); }
.board-top { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; padding: 22px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--hair); }
.board-top ul { margin: 0; padding-inline-start: 1.1em; color: var(--ink-2); line-height: 1.85; font-size: .95rem; }
.board-top ul li::marker { color: var(--g-2); }
.row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 20px clamp(18px, 3vw, 32px); border-bottom: 1px solid rgba(214, 172, 83, .12); transition: background .4s; position: relative; }
.row:last-child { border-bottom: 0; }
.row.on { background: rgba(214, 172, 83, .1); }
.row.on::before { content: ''; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 1px; background: var(--g-2); }
.row-name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.row-name .bn { color: var(--ink-3); font-size: .9rem; min-width: 7ch; }
.row-name .bp { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; color: var(--ink); }
.row-name .note { font-size: .82rem; color: var(--g-1); border: 1px solid var(--hair); border-radius: 99px; padding: 0 .7em; }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize { display: flex; align-items: center; gap: 10px; }
.medal-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--on-gold); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.prize:nth-child(1) .medal-dot { background: linear-gradient(160deg, #fbe7a9, #c99a3d); }
.prize:nth-child(2) .medal-dot { background: linear-gradient(160deg, #eef0ef, #a7adab); }
.prize:nth-child(3) .medal-dot { background: linear-gradient(160deg, #e9b98e, #9b6436); }
.prize b { font-family: var(--font-num); font-weight: 400; white-space: nowrap; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink); }
.prize small { color: var(--ink-3); font-size: .78rem; }
@media (min-width: 760px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }

/* عن المسابقة */
.about-sec { padding: clamp(70px, 10vw, 120px) 0; background: var(--n-0); }
.about-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.about-text { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.95; color: var(--ink); max-width: 52ch; }
.patron { color: var(--ink-2); border-inline-start: 1px solid var(--g-2); padding-inline-start: 16px; line-height: 1.9; }
.rules h3 { font-size: 1.15rem; color: var(--g-1); font-weight: 600; margin-bottom: 14px; }
.rules ol { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 4px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.4em 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(214, 172, 83, .14); line-height: 1.85; color: var(--ink); }
.rules li::before { content: counter(r, arabic-indic); font-family: var(--font-num); color: var(--g-2); font-size: 1.3rem; line-height: 1.4; }

/* الطريق إلى الليلة */
.path-sec { padding: clamp(80px, 11vw, 130px) 0 clamp(70px, 9vw, 110px); background: radial-gradient(80% 60% at 50% 100%, rgba(214, 172, 83, .09), transparent 70%), var(--n-1); }
.path-scroll { overflow-x: auto; scrollbar-width: thin; padding: 10px 0 18px; scroll-snap-type: x proximity; }
.path { list-style: none; margin: 0 auto; padding: 0 max(20px, calc((100% - 1200px) / 2)); display: flex; gap: 0; width: max-content; min-width: 100%; position: relative; }
.path li { position: relative; width: clamp(170px, 18vw, 210px); flex: none; padding: 0 10px; text-align: center; scroll-snap-align: center; }
.path li::before { content: ''; position: absolute; top: 46px; inset-inline: 0; height: 1px; background: var(--hair); z-index: 0; }
.path li.done::before { background: var(--g-2); }
.path li:first-child::before { inset-inline-start: 50%; }
.path li:last-child::before { inset-inline-end: 50%; }
.moon { position: relative; z-index: 1; width: 92px; height: 92px; margin: 0 auto 14px; display: block; }
.moon .m-bg { fill: var(--deep); stroke: var(--deep); stroke-width: 1; }
.moon .m-lit { fill: #f6e7b8; }
.path li.next .moon { filter: drop-shadow(0 10px 16px rgba(15, 58, 43, .35)); }
.path li.next h3 { color: var(--deep); }
.path li.done .moon { opacity: .55; }
.path h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; color: var(--ink); line-height: 1.5; }
.path .hd { font-family: var(--font-num); color: var(--g-1); font-size: 1rem; margin: 0; }
.path .gd { color: var(--ink-3); font-size: .85rem; margin: 0; }
.path .tag { display: inline-block; margin-top: 8px; font-size: .78rem; color: #f7f1e3; background: var(--deep); border-radius: 99px; padding: 0 .7em; }

/* النتائج */
.results-sec { padding: clamp(70px, 10vw, 120px) 0; background: var(--n-0); }
.res-cols { display: grid; gap: 28px; }
@media (min-width: 960px) { .res-cols { grid-template-columns: 1fr 1fr; } }
.res-cols h3 { color: var(--g-1); font-weight: 600; font-size: 1.2rem; }
.res-group { border-top: 1px solid var(--hair); padding: 14px 0; }
.res-group h4 { margin: 0 0 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.res-group ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.res-group li { display: flex; gap: 12px; align-items: baseline; }
.res-group .rk { min-width: 7em; color: var(--g-1); font-size: .9rem; }
.res-group .nm { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.4; }
/* نتائج الأولية: أسماء كثيرة، فتُعرض أعمدةً في كل فرع مع بحث بالاسم */
.prelim-sec { background: var(--n-1, var(--n-0)); }
.prelim-sec .lede { margin: 0 0 18px; }
.prelim-find { display: grid; gap: 6px; max-width: 420px; margin: 0 0 8px; }
.prelim-find span { font-size: .95rem; color: var(--ink-2); }
.prelim-count { min-height: 1.6em; margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; }
.prelim-sec .res-group ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 6px 22px; }
.prelim-sec .res-group .nm { font-size: 1.15rem; line-height: 1.6; }
.prelim-sec .res-group .sc { color: var(--g-1); font-size: .9rem; white-space: nowrap; }
.prelim-sec .res-group .rk { min-width: 5.5em; }
.prelim-sec mark { background: color-mix(in srgb, var(--g-1) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.lk-prelim { margin: 14px 0 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hair); line-height: 1.8; }
.lk-prelim.ok { border-color: var(--g-1); }
.lk-prelim b { display: block; font-size: 1.1rem; }

/* الصور */
.photos-sec { padding: clamp(70px, 10vw, 120px) 0; }
.photos { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.photos figure:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .photos { gap: 12px; grid-template-columns: repeat(3, 1fr); } }
.photos figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--n-1); border: 1px solid rgba(214, 172, 83, .2); }
.photos a { display: block; }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.photos figure:not(:first-child) figcaption { display: none; }
.photos figure { border-radius: 12px; }
.photos figcaption { padding: 10px 14px 12px; font-size: .9rem; color: var(--ink-2); line-height: 1.7; }

/* الأسئلة والتذكرة */
.last-sec { padding: clamp(80px, 11vw, 130px) 0; background: var(--n-1); }
.last-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .last-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; } }
details.q { border-bottom: 1px solid rgba(214, 172, 83, .16); }
details.q summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 1.08rem; line-height: 1.6; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: .45em; border-inline-end: 1.5px solid var(--g-2); border-bottom: 1.5px solid var(--g-2); transform: rotate(45deg); transition: transform .3s; }
details.q[open] summary::after { transform: rotate(-135deg); }
details.q p { margin: 0 0 18px; color: var(--ink-2); max-width: 62ch; }
.ticket { position: relative; padding: 28px 26px 26px; border-radius: 20px; color: var(--on-gold);
  background: linear-gradient(170deg, #f6e9c6, #e3c983);
  -webkit-mask: radial-gradient(14px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(14px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(14px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(14px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
  box-shadow: 0 30px 50px -32px rgba(15, 58, 43, .45); }
.ticket-sub { margin: 0 0 16px; color: #4b3d1c; font-size: .95rem; }
.tf { display: grid; gap: 4px; margin-bottom: 14px; }
.tf span { font-size: .88rem; font-weight: 600; color: #3b2f12; }
.tf input { font: inherit; font-family: var(--font-num); min-height: 50px; border: 1px solid rgba(59, 47, 18, .3); border-radius: 12px; padding: .5em .9em; background: rgba(255, 255, 255, .55); color: #1d1607; letter-spacing: .04em; }
.tf input:focus { outline: none; border-color: #3b2f12; background: #fffaf0; box-shadow: 0 0 0 3px rgba(59, 47, 18, .15); }
.btn-gold { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--deep); color: #f3dc9a; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; transition: background .2s, transform .2s; }
.btn-gold:hover { background: var(--n-4); }
.btn-gold:disabled { opacity: .6; cursor: wait; }
.lookup-out { margin-top: 16px; }
.lookup-out dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding-top: 16px; border-top: 1px dashed rgba(59, 47, 18, .4); }
.lookup-out dt { color: #5c4b22; font-size: .9rem; }
.lookup-out dd { margin: 0; font-weight: 600; color: #1d1607; }
.lookup-out .err { color: #8a1c14; font-weight: 600; margin: 0; }

/* التذييل */
.foot { background: var(--deep); color: #f1e8d2; border-top: 0; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand b { display: block; font-weight: 600; }
.foot-brand span { color: #b9c9bd; font-size: .9rem; }
.foot .contact a { color: #f1e8d2 !important; border-color: rgba(227, 201, 131, .35); }
.foot .contact a:hover { background: rgba(227, 201, 131, .1); }
.foot .contact svg { stroke: #e3c983; }
.contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .35em 1em; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink) !important; text-decoration: none; font-size: .92rem; transition: border-color .2s, background .2s; }
.contact a:hover { border-color: var(--g-2); background: rgba(214, 172, 83, .08); }
.contact svg { width: 18px; height: 18px; fill: none; stroke: var(--g-1); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* الحركة: المحتوى ظاهر افتراضيًا، ويُخفى للكشف فقط حين يعمل JS ولا يُطلب تقليل الحركة */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 1s cubic-bezier(.16, 1, .3, 1) forwards; }
  .js .hero-copy > :nth-child(1) { animation-delay: .9s; } .js .hero-copy > :nth-child(2) { animation-delay: 1.05s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 1.25s; } .js .hero-copy > :nth-child(4) { animation-delay: 1.35s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 1.5s; } .js .hero-copy > :nth-child(6) { animation-delay: 1.6s; }
  .js .m-dots { animation: spin 140s linear infinite; transform-origin: 0 0; }
  .js .medal-center { animation: fadein 1.2s .7s both; }
  .js .stage-light { animation: sweep 9s ease-in-out infinite alternate; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { transform: rotate(-6deg); opacity: .7; } to { transform: rotate(6deg); opacity: 1; } }

@media (max-width: 959px) {
  .hero { padding-top: 92px; }
  .medal { width: min(440px, 100%); }
  .medal-hint { font-size: .78rem; }
}

@media (max-width: 600px) {
  .prizes { gap: 6px; }
  .prize { flex-direction: column; align-items: flex-start; gap: 6px; }
  .medal-dot { width: 24px; height: 24px; font-size: .68rem; }
}

/* ضبط الجوال */
@media (max-width: 600px) {
  .night { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .top-in { min-height: 60px; gap: 12px; }
  .brand img { height: 34px; }
  .cta-mini { padding: .45em 1em; font-size: .9rem; min-height: 42px; }
  .hero { padding: 84px 0 48px; min-height: auto; }
  .hero-grid { gap: 28px; }
  .edition { margin-bottom: 14px; font-size: .88rem; }
  .title .t1 { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .title .t2 { font-size: clamp(1.45rem, 6.4vw, 1.8rem); }
  .motto { font-size: 1.2rem; }
  .credit { font-size: .92rem; margin-bottom: 22px; }
  .actions { display: grid; gap: 10px; }
  .act { width: 100%; min-height: 58px; padding: .6em 1.1em; border-radius: 14px; }
  .act b { font-size: 1rem; }
  .demo-note { margin-top: 12px; }
  .medal { width: min(100%, 400px); }
  .medal-hint { font-size: .78rem; }
  .homes, .board-sec, .about-sec, .path-sec, .results-sec, .last-sec, .photos-sec { padding-block: 64px; }
  .h2 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); margin-bottom: 12px; }
  .lede { margin-bottom: 20px; font-size: .95rem; }
  .big-count b { font-size: 4rem; }
  .big-count span { font-size: 1.05rem; }
  .homes-grid { gap: 28px; }
  .past { margin-top: 36px; }
  .track-tabs button { min-height: 44px; padding: .35em 1em; font-size: .92rem; }
  .board { border-radius: 18px; }
  .board-top { padding: 18px 16px; }
  .board-top .act { width: auto; }
  .row { padding: 16px; }
  .row-name .bp { font-size: 1.5rem; }
  .prize b { font-size: 1rem; }
  .about-text { font-size: 1.05rem; }
  .path li { width: 148px; }
  .moon { width: 70px; height: 70px; }
  .path li::before { top: 35px; }
  .path h3 { font-size: .98rem; }
  .ticket { padding: 24px 18px 20px; }
  details.q summary { font-size: 1rem; padding: 15px 0; }
  .foot-brand img { width: 46px; height: 46px; }
}
