/* =====================================================================
   جولة 73: «الأرشيف السري» — غرفة أرشيف داخل المنشأة: خزانة أدراج معدنية، ملفات مانيلا، ختم «سرّي»، ولمبة حمرا.
   جولة 74: نفس الهوية — أوضح وأمتع: تقدّم الأدراج، أوسمة المستويات، المكافأة الجاية بارزة، شريط هدف النسبة،
            حركات (سحب درج، ختم «تم»، الخردة تطير)، وقارئ صفحات بخط نسخ مقروء وصور بولارويد.
   كمبيوتر: الخزانة بالجنب والمحتوى بالوسط · جوال (عرض أو طول): الأدراج شريط فوق، وكل شي يتمرّر بدون سكرول جانبي.
   ===================================================================== */
#scr-archive, .ar-doc-back, .ar-doc-inline, .ar-reveal, .pf-arc, .ar-fly, .hs-arc { --ar-bg: #0a0c0f; --ar-metal: #2a2f36; --ar-metal2: #1b1f25; --ar-edge: #3c434c; --ar-paper: #e8dfc9; --ar-ink: #2a2117; --ar-red: #c8141f; --ar-gold: #ffd166; --ar-muted: #9aa3ad;
  --ar-naskh: 'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif; --ar-hand: 'Aref Ruqaa', 'Noto Naskh Arabic', serif; --ar-type: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --m-b1: #f0b47a; --m-b2: #8a5a2c; --m-s1: #f4f7fb; --m-s2: #6b7480; --m-g1: #ffe08a; --m-g2: #a8790f; --m-p1: #e6fbff; --m-p2: #5d8a96; --m-r1: #ff9aa3; --m-r2: #8d0f19; }
#scr-archive { background: radial-gradient(120% 80% at 80% -10%, #3a0b10 0%, transparent 55%), radial-gradient(90% 70% at 10% 110%, #11202b 0%, transparent 60%), var(--ar-bg); padding: 0; overflow: hidden; }
#scr-archive.active { display: flex; }
#scr-archive > .ar-page { margin: 0 auto; width: min(1180px, 100%) !important; max-width: 100% !important; height: 100%; }
.ar-room { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 64px); }
.ar-room::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 40%, transparent 40%, #000c 100%); }
.ar-lamp { position: absolute; top: -40px; inset-inline-end: 14%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #ff3b4a33 0%, #ff3b4a10 40%, transparent 70%); animation: arLamp 6s ease-in-out infinite; }
.ar-dust { position: absolute; inset: 0; background-image: radial-gradient(#ffffff22 1px, transparent 1.5px); background-size: 120px 90px; opacity: .25; animation: arDust 30s linear infinite; }
@keyframes arLamp { 0%, 100% { opacity: .85 } 48% { opacity: 1 } 50% { opacity: .55 } 52% { opacity: 1 } }
@keyframes arDust { to { background-position: 120px 360px } }

/* التخطيط: رأس · هدف النسبة · الأدراج بالجنب · المحتوى */
.ar-page { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto auto 1fr; gap: 12px 18px; width: min(1180px, 100%); height: 100%; max-height: 100%; margin: 0 auto; padding: 16px; box-sizing: border-box; background: transparent; border: 0; box-shadow: none; }
.ar-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; position: relative; padding: 4px 4px 12px; border-bottom: 1px solid #ffffff14; }
.ar-h h2 { display: flex; flex-direction: column; margin: 0; font-size: 1.55rem; letter-spacing: .5px; color: #f3ede2; text-shadow: 0 2px 18px #000; }
.ar-kick { font-size: .72rem; font-weight: 600; color: var(--ar-muted); letter-spacing: 3px; }
.ar-stamp { margin-inline-start: 6px; padding: 3px 12px; border: 2px solid var(--ar-red); color: var(--ar-red); font-weight: 900; font-size: 1rem; transform: rotate(-8deg); border-radius: 4px; opacity: .85;
  box-shadow: 0 0 0 1px #c8141f33 inset; background: #c8141f0d; mask-image: radial-gradient(circle at 30% 40%, #000 60%, #0008 61%, #000 75%); }
.ar-scrap { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #0007; border: 1px solid #e9c76a44; color: #ffe7a6; font-variant-numeric: tabular-nums; }
.ar-scrap .ar-i { color: #e9c76a; } .ar-scrap.bump { animation: arBump .35s ease; }
@keyframes arBump { 40% { transform: scale(1.18); box-shadow: 0 0 22px #ffd16688 } }
.ar-goalbox { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 20px; padding: 12px 16px 14px; border-radius: 12px; background: linear-gradient(180deg, #ffffff0a, #ffffff04); border: 1px solid #ffffff14; }
.ar-goalbox:empty { display: none; }
.ar-goal-t { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.ar-goal-t b { color: #f2ede4; font-size: 1.02rem; } .ar-goal-t em { font-style: normal; color: var(--ar-gold); font-size: 1.35rem; font-variant-numeric: tabular-nums; } .ar-goal-t small { color: var(--ar-muted); font-size: .78rem; }
.ar-goal-tr { position: relative; height: 54px; margin: 0 26px 0 18px; }
.ar-goal-bar { position: absolute; inset-inline: 0; top: 13px; height: 10px; border-radius: 6px; background: #0008; box-shadow: inset 0 1px 3px #000c; overflow: hidden; }
.ar-goal-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; background: linear-gradient(90deg, #ffd166, #ff9f43); box-shadow: 0 0 10px #ffd16699; transition: width .7s ease; }
.ar-ms { position: absolute; top: 0; inset-inline-start: var(--x); transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: 0; padding: 0; font: inherit; color: var(--ar-muted); cursor: default; }
.ar-ms-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #15181d; border: 2px solid #ffffff22; color: #7d8590; box-shadow: 0 3px 10px #0009; }
.ar-ms b { font-size: .72rem; color: #cfd5dc; } .ar-ms small { font-size: .62rem; white-space: nowrap; max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
.ar-ms.ok { cursor: pointer; } .ar-ms.ok .ar-ms-ic { border-color: var(--ar-gold); color: var(--ar-gold); background: #3a2c0b; animation: arGlow 1.4s ease-in-out infinite; } .ar-ms.ok small { color: var(--ar-gold); font-weight: 800; }
.ar-ms.got .ar-ms-ic { border-color: #7bd389; color: #7bd389; background: #12291c; } .ar-ms.got small { color: #7bd389; }
@keyframes arGlow { 50% { box-shadow: 0 0 0 4px #ffd16633, 0 0 18px #ffd16699 } }

/* الخزانة: أدراج معدنية بلوحة اسم ورقية وتقدّم */
.ar-drawers { grid-column: 1; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: linear-gradient(180deg, #343a42, #1d2127); border: 1px solid var(--ar-edge); box-shadow: inset 0 1px 0 #ffffff12, 0 18px 40px #000a; align-self: start; }
.ar-drawer { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px 9px; border-radius: 6px; cursor: pointer; text-align: start; font: inherit; color: inherit;
  background: linear-gradient(180deg, var(--ar-metal), var(--ar-metal2)); border: 1px solid #0006; box-shadow: inset 0 1px 0 #ffffff14, inset 0 -2px 0 #0005; transition: transform .18s ease, box-shadow .18s ease; }
.ar-drawer::after { content: ''; position: absolute; inset-inline-end: 8px; top: 50%; width: 5px; height: 26px; margin-top: -13px; border-radius: 3px; background: linear-gradient(90deg, #8b939d, #4b525a); box-shadow: 0 1px 0 #0008; opacity: .9; }
.ar-drawer:hover { transform: translateX(-3px); }
.ar-drawer.on { transform: translateX(-9px); box-shadow: inset 0 1px 0 #ffffff22, 0 6px 16px #000a, 0 0 0 1px #ffd16655; }
.ar-drawer.pull { animation: arPull .32s ease; }
@keyframes arPull { 0% { transform: translateX(0) } 60% { transform: translateX(-16px) } 100% { transform: translateX(-9px) } }
.ar-label { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 8px; margin-inline-end: 12px; border-radius: 3px; background: var(--ar-paper); color: var(--ar-ink); box-shadow: inset 0 0 0 1px #0002; min-width: 0; }
.ar-label .ar-i { grid-row: 1 / span 2; width: 20px; height: 20px; stroke: #6b4e2a; }
.ar-label b { font-size: .92rem; line-height: 1.2; } .ar-label small { font-size: .68rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-drawer.on .ar-label { background: #fff3d6; }
.ar-dprog { display: flex; align-items: center; gap: 8px; margin-inline-end: 12px; }
.ar-dbar { flex: 1; height: 5px; border-radius: 3px; background: #0009; overflow: hidden; } .ar-dbar i { display: block; height: 100%; background: linear-gradient(90deg, #c9a24d, #ffd166); border-radius: 3px; }
.ar-dprog em { font-style: normal; font-size: .7rem; color: #cfd5dc; font-variant-numeric: tabular-nums; min-width: 34px; text-align: end; }
.ar-new { position: absolute; top: -4px; inset-inline-start: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--ar-red); border: 2px solid #1b1f25; box-shadow: 0 0 10px #ff3b4a; animation: arPulse 1.6s ease-in-out infinite; }
@keyframes arPulse { 50% { transform: scale(1.18) } }

.ar-body { grid-column: 2; grid-row: 3; overflow-y: auto; overflow-x: hidden; min-height: 0; padding: 2px 4px 24px; scrollbar-width: thin; }
.ar-body.ar-slide { animation: arSlide .34s cubic-bezier(.2, .8, .3, 1); }
@keyframes arSlide { from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 60% 0) } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0) } }
.ar-empty { color: var(--ar-muted); text-align: center; padding: 40px 10px; }
.ar-note { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #cfd5dc; font-size: .9rem; }
.ar-i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ar-i.sm { width: 17px; height: 17px; } .ar-i.xs { width: 13px; height: 13px; }

/* كرت الإنجاز */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.ar-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1c2026, #13161a); border: 1px solid #ffffff12; box-shadow: 0 10px 26px #0007; }
.ar-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #ffffff18; }
.ar-card.ready { border-color: #ffd16666; box-shadow: 0 0 0 1px #ffd16633, 0 10px 30px #0008, 0 0 24px #ffd16622; }
.ar-card.ready::before { background: var(--ar-gold); } .ar-card.done::before { background: #7bd389; }
.ar-c-top { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.ar-medal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; position: relative; color: #6c7480;
  background: radial-gradient(circle at 35% 30%, #3a4048, #1a1d22 70%); box-shadow: inset 0 2px 0 #ffffff14, inset 0 -3px 6px #0008, 0 4px 10px #0008; }
.ar-medal .ar-i { width: 27px; height: 27px; }
.ar-medal.lit.m-b { color: var(--m-b1); background: radial-gradient(circle at 35% 30%, #8a5a2c, #3b2412 72%); }
.ar-medal.lit.m-s { color: var(--m-s1); background: radial-gradient(circle at 35% 30%, #9aa4b1, #3a414b 72%); }
.ar-medal.lit.m-g { color: #fff4c9; background: radial-gradient(circle at 35% 30%, #d9a93a, #5b3f0b 72%); box-shadow: inset 0 2px 0 #fff4, 0 0 18px #ffd16655; }
.ar-medal.lit.m-p { color: var(--m-p1); background: radial-gradient(circle at 35% 30%, #9fd3df, #2b4b54 72%); box-shadow: inset 0 2px 0 #fff4, 0 0 18px #9fe8ff55; }
.ar-medal.lit.m-r { color: var(--m-r1); background: radial-gradient(circle at 35% 30%, #c0242c, #3d070b 72%); box-shadow: inset 0 2px 0 #fff3, 0 0 18px #ff3b4a66; }
.ar-c-h { min-width: 0; } .ar-c-h h4 { margin: 0 0 3px; font-size: 1.05rem; color: #f2ede4; }
.ar-goal { margin: 0; color: #d6dbe1; font-size: .9rem; line-height: 1.5; }
.ar-prog { display: flex; align-items: center; gap: 10px; }
.ar-bar { flex: 1; height: 10px; border-radius: 6px; background: #0007; box-shadow: inset 0 1px 2px #000a; overflow: hidden; }
.ar-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffd166, #ff9f43); box-shadow: 0 0 8px #ffd16688; transition: width .5s ease; }
.ar-card.done .ar-bar i { background: linear-gradient(90deg, #7bd389, #3fb37f); box-shadow: none; }
.ar-num { font-size: .82rem; color: var(--ar-muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .ar-num b { color: #fff; font-size: .95rem; }
/* أوسمة المستويات: مقفل · جاهز (يلمع) · مستلم (صح) */
.ar-tiers { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ar-tm { display: inline-grid; justify-items: center; width: 52px; color: var(--ar-muted); }
.ar-tm svg { width: 30px; height: 36px; overflow: visible; }
.ar-tm .rb { fill: #2b3038; } .ar-tm .md { fill: #23272e; stroke: #3a4048; stroke-width: 1.5; } .ar-tm .in { fill: #1a1d22; } .ar-tm .gl { fill: none; stroke: #5b636e; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ar-tm small { font-size: .62rem; line-height: 1.1; margin-top: 1px; } .ar-tm b { font-size: .7rem; color: #cfd5dc; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ar-tm.ok svg, .ar-tm.got svg { filter: drop-shadow(0 2px 4px #0009); }
.ar-tm.ok .gl, .ar-tm.got .gl { stroke: #1b1206; }
.ar-tm.ok small, .ar-tm.got small { color: #f2ede4; font-weight: 700; }
.ar-tm.t-b:not(.lk) .rb { fill: #7a2a22; } .ar-tm.t-b:not(.lk) .md { fill: var(--m-b2); stroke: var(--m-b1); } .ar-tm.t-b:not(.lk) .in { fill: #c98b4a; }
.ar-tm.t-s:not(.lk) .rb { fill: #2a4a7a; } .ar-tm.t-s:not(.lk) .md { fill: var(--m-s2); stroke: var(--m-s1); } .ar-tm.t-s:not(.lk) .in { fill: #c9d1db; }
.ar-tm.t-g:not(.lk) .rb { fill: #7a1b22; } .ar-tm.t-g:not(.lk) .md { fill: var(--m-g2); stroke: var(--m-g1); } .ar-tm.t-g:not(.lk) .in { fill: #e8b93f; }
.ar-tm.t-p:not(.lk) .rb { fill: #1f3e4a; } .ar-tm.t-p:not(.lk) .md { fill: var(--m-p2); stroke: var(--m-p1); } .ar-tm.t-p:not(.lk) .in { fill: #bfe9f2; }
.ar-tm.t-r:not(.lk) .rb { fill: #1d1d1d; } .ar-tm.t-r:not(.lk) .md { fill: var(--m-r2); stroke: var(--m-r1); } .ar-tm.t-r:not(.lk) .in { fill: #e0323c; }
.ar-tm.ok svg { animation: arMedal 1.5s ease-in-out infinite; }
@keyframes arMedal { 50% { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 7px #ffd166cc) } }
.ar-tm.lk { opacity: .7; }
/* المكافأة: شرائح بأيقونات */
.ar-rw { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: #ffffff10; color: #e9e3d8; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.ar-rw.scrap { background: #e9c76a1f; color: #ffe7a6; } .ar-rw.scrap .ar-i { color: #e9c76a; } .ar-rw.cards { background: #5cc8ff1a; color: #bfe9ff; } .ar-rw.badge { background: #ffffff12; }
.ar-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 9px 10px; border-radius: 9px; background: #0005; border: 1px dashed #ffffff1c; }
.ar-next-k { font-size: .74rem; color: var(--ar-muted); width: 100%; } .ar-next-rw { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-next.all { color: #7bd389; font-weight: 700; font-size: .86rem; border-style: solid; border-color: #7bd38933; }
.ar-claims { display: flex; flex-direction: column; gap: 6px; }
.ar-claim { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; width: 100%; padding: 10px 12px; border-radius: 10px; cursor: pointer; font: inherit; text-align: start;
  color: #1b1206; background: linear-gradient(180deg, #ffd166, #e3a83c); border: 0; box-shadow: 0 4px 0 #8a5a12, 0 8px 18px #0008; transition: transform .1s ease; }
.ar-claim:hover { transform: translateY(-1px); } .ar-claim:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a12; }
.ar-claim:disabled { filter: grayscale(.5) brightness(.8); cursor: wait; }
.ar-claim.t-b { background: linear-gradient(180deg, #f0b47a, #c07a3e); box-shadow: 0 4px 0 #6b3e16, 0 8px 18px #0008; }
.ar-claim.t-s { background: linear-gradient(180deg, #f4f7fb, #aeb8c4); box-shadow: 0 4px 0 #59626e, 0 8px 18px #0008; }
.ar-claim.t-p { background: linear-gradient(180deg, #e6fbff, #8fc6d2); box-shadow: 0 4px 0 #3d6b76, 0 8px 18px #0008; }
.ar-claim.t-r { background: linear-gradient(180deg, #ff6b74, #c0242c); color: #fff; box-shadow: 0 4px 0 #5d0a10, 0 8px 18px #0008; }
.ar-claim-k { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: .95rem; }
.ar-claim-rw { display: flex; flex-wrap: wrap; gap: 5px; } .ar-claim .ar-rw { background: #0002; color: inherit; } .ar-claim .ar-rw .ar-i { color: inherit; }
/* ختم «تم» */
.ar-donestamp, .ar-stampfx { position: absolute; bottom: 14px; inset-inline-end: 14px; padding: 2px 14px; border: 3px solid #7bd389; color: #7bd389; font-weight: 900; font-size: 1.25rem; border-radius: 6px; transform: rotate(-12deg); opacity: .8; pointer-events: none;
  mask-image: radial-gradient(circle at 30% 40%, #000 62%, #0009 63%, #000 78%); }
.ar-stampfx { bottom: auto; inset-inline-end: auto; top: 44%; left: 50%; translate: -50% -50%; border-color: var(--ar-red); color: var(--ar-red); font-size: 1.9rem; background: #13161ad0; z-index: 3; animation: arStamp .9s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.ar-stampfx.still { animation: none; opacity: .9; }
@keyframes arStamp { 0% { transform: rotate(-30deg) scale(2.6); opacity: 0 } 35% { transform: rotate(-12deg) scale(.92); opacity: 1 } 50% { transform: rotate(-12deg) scale(1) } 85% { opacity: 1 } 100% { transform: rotate(-12deg) scale(1); opacity: .85 } }
.ar-fly { position: fixed; top: 0; left: 0; z-index: 900; opacity: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; color: #e9c76a; pointer-events: none; filter: drop-shadow(0 0 6px #ffd166); }

/* الملفات السرية: مجلدات مانيلا */
.ar-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 14px; padding-top: 10px; }
.ar-folder { position: relative; display: block; min-height: 150px; padding: 26px 14px 14px; border: 0; border-radius: 4px 10px 10px 10px; cursor: pointer; text-align: start; font: inherit; color: var(--ar-ink);
  background: linear-gradient(170deg, #d8b679, #b8934f); box-shadow: inset 0 1px 0 #fff6, 0 12px 26px #0009; transition: transform .18s ease; overflow: visible; }
.ar-folder:hover { transform: translateY(-3px) rotate(-.4deg); }
.ar-folder.pulled { transform: translateY(-10px) rotate(-1deg); }
.ar-tab { position: absolute; top: -12px; inset-inline-start: 0; padding: 3px 12px 2px; border-radius: 6px 6px 0 0; background: #c9a463; font-size: .74rem; font-weight: 800; letter-spacing: .5px; }
.ar-f-stamp { position: absolute; top: 12px; inset-inline-end: 10px; padding: 1px 8px; border: 2px solid var(--ar-red); color: var(--ar-red); font-weight: 900; font-size: .78rem; transform: rotate(9deg); opacity: .8; }
.ar-f-body { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.ar-f-body b { font-size: 1.02rem; } .ar-f-body small { font-size: .8rem; opacity: .75; line-height: 1.5; }
.ar-f-kind, .ar-f-req { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; margin-top: 4px; }
.ar-f-req { color: #6a1a14; }
.ar-folder.locked { filter: saturate(.55) brightness(.75); cursor: default; }
.ar-folder.locked .ar-f-stamp { border-color: #333; color: #333; }
.ar-f-blur { position: absolute; inset: 42% 12px 12px; border-radius: 4px; background: repeating-linear-gradient(0deg, #2a2117 0 7px, transparent 7px 13px); opacity: .55; filter: blur(1.5px); }

/* ===================== القارئ: ورقة رسمية بصفحات ===================== */
.ar-doc-back, .ar-reveal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: #000c; opacity: 0; transition: opacity .2s ease; backdrop-filter: blur(3px); }
.ar-doc-back.on, .ar-reveal.on { opacity: 1; }
.ar-doc-inline { display: grid; place-items: center; width: 100%; height: 100%; }
.ar-doc { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); height: min(860px, calc(100dvh - 32px)); padding: 22px 26px 14px; border-radius: 3px; color: var(--ar-ink); box-sizing: border-box;
  background: #efe6d2; background-image: radial-gradient(#00000008 1px, transparent 1px), linear-gradient(180deg, #f3ebd9, #e9dfc8); background-size: 4px 4px, 100% 100%; box-shadow: 0 30px 80px #000, inset 0 0 60px #b9a27a55; transform: translateY(10px) rotate(-.6deg); transition: transform .25s ease; }
.ar-doc-back.on .ar-doc, .ar-doc-inline .ar-doc { transform: none; }
.ar-doc-inline .ar-doc { height: 100%; width: 100%; box-shadow: 0 10px 30px #0008, inset 0 0 60px #b9a27a55; }
.ar-doc-x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #0003; background: #fff8; color: var(--ar-ink); cursor: pointer; display: grid; place-items: center; }
.ar-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline-end: 44px; border-bottom: 1px dashed #0004; padding-bottom: 8px; }
.ar-doc-no { font-family: var(--ar-type); font-size: .86rem; letter-spacing: 2px; direction: ltr; unicode-bidi: isolate; color: #4a3b2a; }
.ar-doc-stamp { color: var(--ar-red); border: 2px solid var(--ar-red); padding: 1px 10px; font-weight: 900; transform: rotate(-6deg); }
.ar-doc-t { margin: 12px 0 6px; font-family: var(--ar-naskh); font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
.ar-sheets { position: relative; flex: 1; min-height: 0; perspective: 1600px; }
.ar-sheet { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 2px 10px; scrollbar-width: thin; backface-visibility: hidden; transform-origin: right center; }
.ar-sheet.in.fw { animation: arPageIn .5s ease both; } .ar-sheet.out.fw { animation: arPageOut .5s ease both; }
.ar-sheet.in.bw { animation: arPageInB .5s ease both; } .ar-sheet.out.bw { animation: arPageOutB .5s ease both; }
@keyframes arPageOut { to { transform: rotateY(-85deg); opacity: 0 } } @keyframes arPageIn { from { transform: translateX(-14px); opacity: 0 } 40% { opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes arPageOutB { to { transform: translateX(-24px); opacity: 0 } } @keyframes arPageInB { from { transform: rotateY(-85deg); opacity: 0 } to { transform: none; opacity: 1 } }
/* النص: خط نسخ مقروء، حجم أكبر، أسطر مريحة، وبدون تباعد حروف على العربي */
.ar-txt { font-family: var(--ar-naskh); font-size: 1.16rem; line-height: 2.05; letter-spacing: normal; word-spacing: .04em; color: #24190f; text-align: start; }
.ar-txt p { margin: 0 0 .35em; } .ar-txt p.sp { height: .7em; margin: 0; }
/* صورة مع نص (فوق أو جنب) — بمشبك ورق */
.ar-pg-ti { display: grid; gap: 14px; }
.ar-pg-ti.lay-side { grid-template-columns: minmax(180px, 44%) 1fr; align-items: start; }
.ar-photo { position: relative; margin: 6px 4px 4px; padding: 8px 8px 8px; background: #fff; box-shadow: 0 8px 18px #0004; transform: rotate(-.8deg); cursor: zoom-in; display: flex; flex-direction: column; align-items: stretch; }
.ar-photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; background: #1d1813; user-select: none; -webkit-user-drag: none; }
.ar-photo figcaption { font-family: var(--ar-hand); font-size: 1.05rem; text-align: center; margin-top: 6px; color: #3a2c1c; }
.ar-clip { position: absolute; top: -10px; inset-inline-end: 22px; width: 14px; height: 34px; border: 3px solid #9aa3ad; border-radius: 8px; border-bottom-color: transparent; box-shadow: 1px 1px 0 #0003; }
.ar-ph-load { display: grid; place-items: center; min-height: 140px; color: #d8cdb5; background: #2a2117; font-size: .85rem; padding: 18px; }
/* صور بس: بولارويد بإطار أبيض، ميلان خفيف، وشريط لاصق أو دبوس */
.ar-pols { display: grid; gap: 22px 18px; padding: 16px 8px 8px; justify-items: center; align-items: start; }
.ar-pols { justify-content: center; }
.ar-pols.n1 { grid-template-columns: minmax(0, 340px); }
.ar-pols.n2 { grid-template-columns: repeat(2, minmax(0, 270px)); }
.ar-pols.n3 { grid-template-columns: repeat(3, minmax(0, 230px)); }
.ar-pols.n4 { grid-template-columns: repeat(2, minmax(0, 190px)); }
.ar-pols.n5, .ar-pols.n6 { grid-template-columns: repeat(3, minmax(0, 180px)); }
.ar-pols.n5 .ar-pol:nth-child(n+4) { transform: translateX(-50%) rotate(var(--r)); }
.ar-pol { position: relative; margin: 0; width: 100%; padding: 9px 9px 0; background: #fbfaf6; box-shadow: 0 10px 22px #0005, 0 1px 0 #0002; transform: rotate(var(--r, 0deg)); cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; animation: arPol .5s ease backwards; animation-delay: var(--d, 0ms); }
.ar-pol:hover, .ar-pol:focus-visible { transform: rotate(0) scale(1.03); box-shadow: 0 16px 30px #0006; z-index: 2; outline: none; }
@keyframes arPol { from { opacity: 0; transform: translateY(-14px) rotate(calc(var(--r, 0deg) * 3)) } to { opacity: 1; transform: rotate(var(--r, 0deg)) } }
.ar-pol-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #1d1813; }
.ar-pol-img img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; filter: sepia(.15) contrast(1.03); }
.ar-pol-img .ar-ph-load { min-height: 0; height: 100%; }
.ar-pol figcaption { min-height: 38px; display: grid; place-items: center; padding: 4px 4px 6px; font-family: var(--ar-hand); font-size: 1.02rem; line-height: 1.3; color: #2c2218; text-align: center; }
.ar-tape { position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: #e8dcb4b8; box-shadow: 0 1px 2px #0002; transform: rotate(calc(var(--r, 0deg) * -2)); }
.ar-pin2 { position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a82, #a10f18 70%); box-shadow: 0 3px 4px #0006; }
.ar-doc-nav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 0 2px; }
.ar-nb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #0003; background: #fff9; color: var(--ar-ink); cursor: pointer; display: grid; place-items: center; }
.ar-nb:disabled { opacity: .3; cursor: default; }
.ar-pgn { font-family: var(--ar-type); font-size: .95rem; direction: ltr; unicode-bidi: isolate; letter-spacing: 1px; min-width: 64px; text-align: center; }
.ar-doc-foot { padding-top: 6px; border-top: 1px dashed #0004; font-size: .72rem; opacity: .6; text-align: center; }
.ar-lb { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 50px 16px 20px; background: #0d0a07f2; opacity: 0; transition: opacity .18s ease; }
.ar-lb.on { opacity: 1; } .ar-lb[hidden] { display: none; }
.ar-lb img { max-width: 100%; max-height: calc(100% - 60px); object-fit: contain; box-shadow: 0 0 0 8px #fbfaf6, 0 20px 50px #000; }
.ar-lb p { margin: 0; font-family: var(--ar-hand); font-size: 1.2rem; color: #f2ead8; text-align: center; }
.ar-lb-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff2; color: #fff; cursor: pointer; display: grid; place-items: center; }

/* كشف الاستلام: الملف يطلع من الدرج */
.ar-rv-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(380px, 100%); padding: 28px 22px 18px; border-radius: 12px; text-align: center; color: #f3ede2;
  background: linear-gradient(170deg, #22272e, #121418); border: 1px solid #ffd16655; box-shadow: 0 30px 80px #000, 0 0 40px #ffd16622; transform: scale(.92); transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.ar-reveal.on .ar-rv-card { transform: none; }
.ar-rv-stamp { position: absolute; top: -14px; padding: 2px 14px; background: var(--ar-red); color: #fff; font-weight: 900; border-radius: 4px; transform: rotate(-4deg); box-shadow: 0 6px 14px #0009; }
.ar-rv-rw { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--ar-gold); font-weight: 700; }
.ar-rv-file { width: 100%; justify-content: center; gap: 6px; }
.ar-rv-dr { position: relative; width: 220px; height: 150px; margin: 4px 0; }
.ar-rv-cab { position: absolute; inset-inline: 0; bottom: 0; height: 58px; border-radius: 6px; background: linear-gradient(180deg, #343a42, #1d2127); border: 1px solid var(--ar-edge); box-shadow: inset 0 1px 0 #ffffff14; z-index: 2; }
.ar-rv-cab::after { content: ''; position: absolute; left: 50%; top: 22px; width: 50px; height: 8px; margin-left: -25px; border-radius: 4px; background: linear-gradient(180deg, #8b939d, #4b525a); }
.ar-rv-folder { position: absolute; inset-inline: 22px; bottom: 30px; height: 110px; padding: 18px 12px 10px; border-radius: 4px 9px 9px 9px; background: linear-gradient(170deg, #d8b679, #b8934f); color: var(--ar-ink); text-align: start; box-shadow: 0 10px 20px #0009; z-index: 1;
  display: flex; flex-direction: column; gap: 3px; animation: arOut .7s .15s cubic-bezier(.2, .9, .3, 1.2) both; }
.ar-rv-folder em { font-style: normal; font-size: .72rem; font-weight: 800; } .ar-rv-folder b { font-size: .95rem; }
.ar-rv-fst { position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 1px 8px; border: 2px solid var(--ar-red); color: var(--ar-red); font-style: normal; font-weight: 900; font-size: .78rem; transform: rotate(-10deg); animation: arStamp .6s .8s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes arOut { from { transform: translateY(60px) } to { transform: translateY(-14px) rotate(-2deg) } }
/* رسالة الترحيب */
.ar-wl-paper { position: relative; width: min(440px, 100%); padding: 26px 24px 20px; border-radius: 3px; color: var(--ar-ink); background: #efe6d2; background-image: radial-gradient(#00000008 1px, transparent 1px); background-size: 4px 4px;
  box-shadow: 0 30px 80px #000, inset 0 0 50px #b9a27a55; transform: rotate(-1deg) translateY(10px); transition: transform .3s ease; }
.ar-reveal.on .ar-wl-paper { transform: rotate(-1deg); }
.ar-wl-paper .ar-doc-stamp { position: absolute; top: 14px; inset-inline-end: 16px; }
.ar-wl-paper h3 { margin: 0 0 12px; font-family: var(--ar-naskh); font-size: 1.4rem; }
.ar-wl-paper p { margin: 0 0 8px; font-family: var(--ar-naskh); font-size: 1.08rem; line-height: 1.95; }
.ar-wl-go { width: 100%; margin-top: 10px; justify-content: center; }

/* الشارات */
.ar-badge { --c: #ffd166; width: 48px; height: 48px; display: grid; place-items: center; color: var(--c); flex: none;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: radial-gradient(circle at 40% 30%, #3a414b, #15181c 75%); position: relative; }
.ar-badge::before { content: ''; position: absolute; inset: 2px; clip-path: inherit; border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--c); opacity: .5; }
.ar-badge .ar-i { width: 24px; height: 24px; filter: drop-shadow(0 0 4px var(--c)); }
.ar-badge.m-g { background: radial-gradient(circle at 40% 30%, #6b4f12, #1d1606 75%); } .ar-badge.m-s { background: radial-gradient(circle at 40% 30%, #59626e, #1a1e24 75%); }
.ar-badge.m-b { background: radial-gradient(circle at 40% 30%, #5e3a1b, #1d1209 75%); } .ar-badge.m-r { background: radial-gradient(circle at 40% 30%, #6a0f17, #1d0407 75%); }
.ar-badge.big { width: 84px; height: 84px; } .ar-badge.big .ar-i { width: 40px; height: 40px; }
.ar-badge.sm { width: 28px; height: 28px; } .ar-badge.sm .ar-i { width: 15px; height: 15px; }
.ar-badge.xs { width: 22px; height: 22px; } .ar-badge.xs .ar-i { width: 12px; height: 12px; filter: none; }
.ar-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ar-bcell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 10px; border-radius: 12px; cursor: pointer; font: inherit; color: #ece6db;
  background: #ffffff08; border: 1px solid #ffffff14; transition: transform .15s ease, border-color .15s ease; }
.ar-bcell:hover { transform: translateY(-2px); } .ar-bcell.on { border-color: var(--ar-gold); background: #ffd16612; box-shadow: 0 0 18px #ffd16622; }
.ar-bcell b { font-size: .85rem; text-align: center; } .ar-bcell small { font-size: .7rem; color: var(--ar-muted); }
.ar-pin { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ar-gold); color: #111; display: grid; place-items: center; }

/* البروفايل */
.pf-arc { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pf-arc-add { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; border: 1px dashed #ffffff33; background: transparent; color: #cfd5dc; font: inherit; font-size: .74rem; cursor: pointer; }
.ar-dot { position: absolute; top: 6px; inset-inline-start: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ar-red, #c8141f); box-shadow: 0 0 8px #ff3b4a; }

/* الجوال: الأدراج شريط فوق (بالعرض وبالطول) */
@media (max-width: 860px), (max-height: 520px) {
  .ar-page { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; gap: 8px; padding: 8px max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
  .ar-h { padding: 2px 2px 8px; gap: 10px; } .ar-h h2 { font-size: 1.15rem; } .ar-kick { display: none; } .ar-stamp { font-size: .8rem; padding: 2px 8px; }
  .ar-scrap { padding: 4px 10px; font-size: .85rem; }
  .ar-goalbox { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; gap: 4px; padding: 8px 12px 6px; }
  .ar-goal-t { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; } .ar-goal-t em { font-size: 1.1rem; } .ar-goal-t small { font-size: .72rem; }
  .ar-goal-tr { height: 48px; margin: 0 22px 0 18px; } .ar-ms-ic { width: 30px; height: 30px; } .ar-goal-bar { top: 10px; height: 8px; }
  .ar-drawers { grid-column: 1; grid-row: 3; flex-direction: row; overflow-x: auto; overflow-y: visible; padding: 8px 6px 6px; gap: 6px; scrollbar-width: none; scroll-snap-type: x proximity; border-radius: 8px; }
  .ar-drawers::-webkit-scrollbar { display: none; }
  .ar-drawer { flex: none; gap: 4px; padding: 5px 7px 6px; scroll-snap-align: start; } .ar-drawer::after { display: none; }
  .ar-drawer:hover, .ar-drawer.on { transform: translateY(-2px); } .ar-drawer.pull { animation: none; }
  .ar-label { margin-inline-end: 0; } .ar-label small { display: none; } .ar-label { grid-template-rows: auto; padding: 4px 8px; } .ar-label .ar-i { grid-row: auto; width: 17px; height: 17px; } .ar-label b { font-size: .84rem; white-space: nowrap; }
  .ar-dprog { margin-inline-end: 0; } .ar-dprog em { font-size: .64rem; min-width: 0; }
  .ar-new { top: -5px; inset-inline-start: -5px; width: 12px; height: 12px; }
  .ar-body { grid-column: 1; grid-row: 4; }
  .ar-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 9px; }
  .ar-card { padding: 11px; gap: 8px; } .ar-c-top { grid-template-columns: 46px 1fr; gap: 10px; } .ar-medal { width: 46px; height: 46px; } .ar-medal .ar-i { width: 22px; height: 22px; }
  .ar-files { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .ar-doc { padding: 16px 14px 10px; height: calc(100dvh - 20px); } .ar-doc-back { padding: 10px; }
  .ar-doc-t { font-size: 1.25rem; margin: 8px 0 4px; } .ar-txt { font-size: 1.08rem; line-height: 1.95; }
  .ar-pg-ti.lay-side { grid-template-columns: minmax(150px, 42%) 1fr; }
  .ar-pols { gap: 18px 12px; padding-top: 12px; }
}
/* جوال بالعرض (قصير): المحتوى أعرض، والقارئ أقصر */
@media (max-height: 520px) and (min-width: 600px) {
  .ar-page { grid-template-columns: 200px 1fr; grid-template-rows: auto auto 1fr; }
  .ar-goalbox { grid-column: 2; grid-row: 2; grid-template-columns: auto 1fr; } .ar-goal-t { flex-direction: column; gap: 0; }
  .ar-drawers { grid-column: 1; grid-row: 2 / span 2; flex-direction: column; overflow-x: hidden; overflow-y: auto; align-self: stretch; padding: 6px; gap: 5px; }
  .ar-drawer { padding: 4px 6px 5px; } .ar-body { grid-column: 2; grid-row: 3; }
  .ar-pols.n4, .ar-pols.n6 { grid-template-columns: repeat(3, minmax(0, 118px)); } .ar-pols.n5 { grid-template-columns: repeat(5, minmax(0, 110px)); } .ar-pols.n5 .ar-pol:nth-child(n+4) { transform: rotate(var(--r)); }
  .ar-pols.n3 { grid-template-columns: repeat(3, minmax(0, 135px)); }
  .ar-pols.n1 { grid-template-columns: minmax(0, 150px); } .ar-pols.n2 { grid-template-columns: repeat(2, minmax(0, 140px)); }
  .ar-pols { gap: 14px 14px; padding-top: 12px; } .ar-pol { padding: 6px 6px 0; } .ar-pol figcaption { min-height: 28px; font-size: .86rem; }
  .ar-doc-t { margin: 4px 0 2px; font-size: 1.1rem; } .ar-doc-head { padding-bottom: 4px; } .ar-nb { width: 38px; height: 38px; } .ar-doc-nav { padding-top: 4px; } .ar-doc-foot { display: none; }
  .ar-photo img { max-height: 190px; }
  .ar-pg-ti.lay-top { grid-template-columns: minmax(150px, 40%) 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .ar-grid, .ar-files { grid-template-columns: 1fr; }
  .ar-pg-ti.lay-side { grid-template-columns: 1fr; }
  .ar-pols.n3, .ar-pols.n5, .ar-pols.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-pols.n1 { grid-template-columns: minmax(0, 260px); }
  .ar-pols.n2, .ar-pols.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-pols.n3 .ar-pol:nth-child(3) { grid-column: 1 / -1; width: min(100%, 200px); }
  .ar-pols.n5 .ar-pol:nth-child(n+4) { transform: rotate(var(--r)); } .ar-pols.n5 .ar-pol:nth-child(5) { grid-column: 1 / -1; width: min(100%, 200px); }
  .ar-pol figcaption { font-size: .92rem; min-height: 32px; }
  .ar-tm { width: 46px; }
}
/* تقليل الحركة: كل الحركات تختفي، والمحتوى يطلع مباشرة */
@media (prefers-reduced-motion: reduce) {
  .ar-lamp, .ar-dust, .ar-new, .ar-tm.ok svg, .ar-ms.ok .ar-ms-ic, .ar-pol, .ar-rv-folder, .ar-rv-fst, .ar-stampfx, .ar-body.ar-slide, .ar-drawer.pull, .ar-scrap.bump, .ar-sheet { animation: none !important; }
  .ar-drawer, .ar-folder, .ar-claim, .ar-pol, .ar-doc, .ar-rv-card, .ar-wl-paper { transition: none !important; }
}

/* ===== جولة 76: مشهد «كيف تلعب» — الأرشيف بواجهته الحقيقية مصغّرة (howto-anim.js: S.archive) ===== */
.hs-arcw { position: relative; width: 100%; overflow: hidden; background: #0a0c0f; direction: rtl; aspect-ratio: 16 / 9; }
.hs-arc { position: absolute; top: 0; right: 0; width: 480px; height: 270px; transform-origin: top right; overflow: hidden; font-family: Cairo, system-ui, sans-serif; color: #e9e3d8;
  background: radial-gradient(120% 80% at 80% -10%, #3a0b10 0%, transparent 55%), radial-gradient(90% 70% at 10% 110%, #11202b 0%, transparent 60%), var(--ar-bg); }
.hs-arc .hsa-wait { margin: 120px 0 0; text-align: center; color: #6c7480; }
.hs-arc .ar-lamp { width: 180px; height: 180px; }
.hsa-top { position: absolute; top: 8px; inset-inline: 12px; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #ffffff12; z-index: 1; }
.hsa-top h2 { display: flex; flex-direction: column; margin: 0; font-size: 1rem; line-height: 1.15; color: #f3ede2; }
.hsa-top .ar-kick { font-size: .5rem; letter-spacing: 2px; } .hsa-top .ar-stamp { font-size: .62rem; padding: 1px 7px; }
.hsa-top .ar-scrap { margin-inline-start: auto; padding: 3px 9px; font-size: .74rem; }
.hsa-main { position: absolute; top: 50px; bottom: 26px; inset-inline: 12px; display: grid; grid-template-columns: 128px 1fr; gap: 10px; z-index: 1; }
.hs-arc .ar-drawers { grid-column: auto; grid-row: auto; gap: 5px; padding: 6px; align-self: start; }
.hs-arc .ar-drawer { padding: 5px 6px 6px; gap: 4px; cursor: default; } .hs-arc .ar-drawer:hover { transform: none; } .hs-arc .ar-drawer.on { transform: translateX(-6px); }
.hs-arc .ar-label { padding: 3px 5px; column-gap: 5px; } .hs-arc .ar-label .ar-i { width: 14px; height: 14px; } .hs-arc .ar-label b { font-size: .64rem; } .hs-arc .ar-label small { font-size: .46rem; }
.hs-arc .ar-dprog { margin-inline-end: 8px; gap: 5px; } .hs-arc .ar-dprog em { font-size: .5rem; min-width: 20px; } .hs-arc .ar-dbar { height: 3px; }
.hs-arc .ar-drawer::after { height: 16px; margin-top: -8px; width: 4px; }
.hsa-body { min-width: 0; }
.hsa-card { width: 300px; }
.hs-arc .ar-card { gap: 7px; padding: 10px 11px; border-radius: 10px; font-size: 12px; }
.hs-arc .ar-c-top { grid-template-columns: 40px 1fr; gap: 9px; } .hs-arc .ar-medal { width: 40px; height: 40px; } .hs-arc .ar-medal .ar-i { width: 20px; height: 20px; }
.hs-arc .ar-c-h h4 { font-size: .86rem; } .hs-arc .ar-goal { font-size: .7rem; line-height: 1.4; }
.hs-arc .ar-bar { height: 8px; } .hs-arc .ar-bar i { transition: none; } .hs-arc .ar-num { font-size: .66rem; } .hs-arc .ar-num b { font-size: .8rem; }
.hs-arc .ar-tm { width: 44px; } .hs-arc .ar-tm svg { width: 24px; height: 29px; } .hs-arc .ar-tm small { font-size: .5rem; } .hs-arc .ar-tm b { font-size: .56rem; }
.hs-arc .ar-next { padding: 6px 8px; } .hs-arc .ar-next-k { font-size: .56rem; } .hs-arc .ar-rw { font-size: .62rem; padding: 2px 7px; }
.hs-arc .ar-claim { padding: 7px 9px; cursor: default; } .hs-arc .ar-claim-k { font-size: .74rem; } .hs-arc .ar-claim:hover { transform: none; }
.hs-arc .ar-claim.hsa-press { transform: translateY(2px); box-shadow: 0 2px 0 #6b3e16; filter: brightness(1.08); }
.hs-arc .ar-donestamp { font-size: .9rem; bottom: 10px; inset-inline-end: 10px; border-width: 2px; animation: arStamp .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.hsa-files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding-top: 14px; }
.hs-arc .ar-folder { min-height: 104px; padding: 18px 9px 9px; cursor: default; font-size: 12px; }
.hs-arc .ar-tab { top: -9px; font-size: .58rem; padding: 2px 8px 1px; } .hs-arc .ar-f-stamp { top: 8px; font-size: .56rem; padding: 0 6px; }
.hs-arc .ar-f-body b { font-size: .78rem; } .hs-arc .ar-f-body small { font-size: .58rem; } .hs-arc .ar-f-kind, .hs-arc .ar-f-req { font-size: .54rem; }
.hs-arc .ar-folder.hsa-unlock { animation: hsaUnlock .7s ease both; }
@keyframes hsaUnlock { 0% { filter: saturate(.55) brightness(.75) } 40% { filter: brightness(1.5) drop-shadow(0 0 12px #ffd166) } 100% { filter: none } }
.hsa-doc { position: absolute; inset: 40px 150px 24px 40px; z-index: 3; opacity: 0; transform: translateY(30px) scale(.7) rotate(-3deg); }
.hsa-doc.on { animation: hsaDoc .55s cubic-bezier(.2, .9, .3, 1.1) forwards; }
@keyframes hsaDoc { to { opacity: 1; transform: none } }
.hsa-doc .ar-doc { width: 100%; height: 100%; padding: 10px 14px 6px; transform: rotate(-.8deg); box-shadow: 0 16px 40px #000e, inset 0 0 40px #b9a27a55; }
.hsa-doc .ar-doc-no { font-size: .56rem; } .hsa-doc .ar-doc-head { padding-bottom: 4px; padding-inline-end: 0; }
.hsa-doc .ar-doc-t { font-size: .92rem; margin: 6px 0 2px; } .hsa-doc .ar-txt { font-size: .7rem; line-height: 1.85; flex: 1; } .hsa-doc .ar-txt p { min-height: 1.3em; margin: 0; }
.hsa-doc .ar-doc-foot { font-size: .48rem; padding-top: 3px; } .hsa-doc .ar-stampfx { font-size: 1.05rem; border-width: 2px; padding: 1px 9px; top: 58%; }
.hsa-tap { position: absolute; z-index: 6; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; }
.hsa-tap.on { animation: hsaTap .55s ease-out; }
@keyframes hsaTap { 0% { opacity: .95; transform: scale(.4); background: #ffffff55 } 100% { opacity: 0; transform: scale(1.6); background: transparent } }
.hsa-chip { position: absolute; z-index: 6; left: 0; top: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: #2b2410; border: 1px solid #e9c76a; color: #ffe7a6; font-size: .62rem; font-weight: 800; opacity: 0; pointer-events: none; }
.hsa-chip.on { animation: hsaFly .75s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes hsaFly { 0% { opacity: 1; transform: translate(calc(var(--fx) - 50%), calc(var(--fy) - 50%)) scale(1.2) } 80% { opacity: 1 } 100% { opacity: 0; transform: translate(calc(var(--tx) - 50%), calc(var(--ty) - 50%)) scale(.7) } }
.hsa-head { position: absolute; top: 12px; left: 50%; transform: translateX(-42%); z-index: 5; max-width: 46%; white-space: nowrap; padding: 3px 8px; background: #000b; border-inline-start: 2px solid #e2342e; font-size: .64rem; font-weight: 700; color: #f3e9d2; }
.hsa-cap { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 5; padding: 2px 10px; border-radius: 99px; background: #000a; font-size: .58rem; font-weight: 700; color: #d9c9a8; white-space: nowrap; }
.hsa-fade { position: absolute; inset: 0; z-index: 9; background: #000; opacity: 0; pointer-events: none; }

/* =====================================================================
   جولة 77: ثلاث أقسام كبيرة — الإنجازات (خزانة معدن) · التحديات (لوحة مهام) · القصة (غرفة أدلة + حاسوب)
   كمبيوتر وجوال بالعرض: الأقسام عمود بالجنب · شاشة ضيقة: صف فوق. كل شي يتمرر بالطول بس.
   ===================================================================== */
#scr-archive .ar-page { grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; }
#scr-archive .ar-secs { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 10px; align-self: start; min-height: 0; }
#scr-archive .ar-body { grid-column: 2; grid-row: 2; }
.ar-sec { position: relative; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; padding: 12px 12px 12px 10px; border-radius: 10px; border: 1px solid #ffffff1c; cursor: pointer; text-align: start; font: inherit; color: #eef0f3;
  background: linear-gradient(160deg, #262b33, #15181d); box-shadow: inset 0 1px 0 #ffffff12, 0 10px 24px #0008; transition: transform .18s ease, box-shadow .18s ease, border-color .18s; overflow: hidden; }
.ar-sec::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--sc, #ffffff33); }
.ar-sec:hover { transform: translateX(-3px); }
.ar-sec.on { transform: translateX(-8px); border-color: var(--sc); box-shadow: inset 0 1px 0 #ffffff1a, 0 12px 28px #000a, 0 0 0 1px var(--sc), 0 0 26px color-mix(in srgb, var(--sc) 30%, transparent); }
.ar-sec-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #0006; border: 1px solid #ffffff1f; color: var(--sc); }
.ar-sec-ic .ar-i { width: 26px; height: 26px; }
.ar-sec-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ar-sec-t b { font-size: 1.12rem; letter-spacing: .3px; } .ar-sec-t small { font-size: .7rem; color: var(--ar-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-sec-t em { font-style: normal; font-size: .74rem; color: #cfd5dc; margin-top: 3px; } .ar-sec-t em.hot { color: var(--ar-gold); font-weight: 800; }
.ar-sec.s-ach { --sc: #e9c76a; background: linear-gradient(160deg, #3a4048, #1d2127 70%); }
.ar-sec.s-ach::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 3px); pointer-events: none; }
.ar-sec.s-chl { --sc: #ffb020; background: linear-gradient(160deg, #23262b, #121417 70%); }
.ar-sec.s-chl::before { width: 7px; background: repeating-linear-gradient(-45deg, #ffb020 0 6px, #111 6px 12px); }
.ar-sec.s-story { --sc: #ff4b57; background: linear-gradient(160deg, #3a2a1c, #1a120b 70%); }
.ar-sec.s-story .ar-sec-ic { background: #e8dfc9; color: #7a1c14; border-color: #0005; }
.ar-sec .ar-new { top: 6px; inset-inline-start: auto; inset-inline-end: 8px; }
/* الإنجازات: هدف النسبة + أدراج أفقية */
#scr-archive .ar-body .ar-goalbox { margin-bottom: 12px; }
.ar-dtabs { display: flex; gap: 8px; padding: 8px; margin-bottom: 12px; border-radius: 10px; background: linear-gradient(180deg, #343a42, #1d2127); border: 1px solid var(--ar-edge); box-shadow: inset 0 1px 0 #ffffff12; overflow-x: auto; overscroll-behavior-x: contain; }
.ar-dtabs .ar-drawer { flex: 1 0 150px; }
.ar-dtabs .ar-drawer:hover { transform: translateY(-2px); } .ar-dtabs .ar-drawer.on { transform: translateY(-4px); }
.ar-dtabs .ar-drawer.pull { animation: none; }
/* التحديات: لوحة المهام */
.ar-board { display: flex; flex-direction: column; gap: 14px; }
.ar-board-h { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 12px 16px; border-radius: 10px; background: #15171a; border: 1px solid #ffb02033; overflow: hidden; }
.ar-board-h b { font-size: 1.15rem; color: #ffe2a6; letter-spacing: .5px; } .ar-board-h small { color: var(--ar-muted); font-size: .78rem; }
.ar-hz { position: absolute; inset-inline: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, #ffb020 0 10px, #15171a 10px 20px); }
.ar-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ar-col { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 12px; background: linear-gradient(180deg, #1b1e23, #121418); border: 1px solid #ffffff12; box-shadow: inset 0 1px 0 #ffffff0d; }
.ar-col > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed #ffffff22; }
.ar-col-t { display: flex; align-items: center; gap: 7px; } .ar-col-t b { font-size: 1rem; } .ar-col-t small { color: var(--ar-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.ar-col.p-d .ar-col-t .ar-i { color: #7fc8ff; } .ar-col.p-w .ar-col-t .ar-i { color: var(--ar-gold); }
.ar-led b { font-weight: 700; } .ar-led bdi { unicode-bidi: isolate; }
.ar-led { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; background: #000; border: 1px solid #ff3b4a55; color: #ff5a64; font: 700 .82rem/1.2 'Courier Prime', ui-monospace, monospace; text-shadow: 0 0 8px #ff3b4a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-tk { position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #f1e9d6, #e2d6bb); color: var(--ar-ink); box-shadow: 0 4px 12px #0007; border-inline-start: 4px solid #b9a37a; }
.ar-tk::after { content: ''; position: absolute; inset-block: 6px; inset-inline-end: 112px; border-inline-end: 2px dashed #0002; pointer-events: none; }
.ar-tk-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #2a211722; color: #6b4e2a; }
.ar-tk-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .ar-tk-b b { font-size: .92rem; line-height: 1.3; } .ar-tk-b small { font-size: .72rem; color: #5b4a33; } .ar-tk-b em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.ar-tk-bar { height: 7px; border-radius: 4px; background: #2a211726; overflow: hidden; } .ar-tk-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #8a5a2c, #c48b3d); transition: width .6s ease; }
.ar-tk-r { min-width: 100px; display: flex; justify-content: center; } .ar-tk-r .ar-rw { color: #4d3b22; background: #2a211714; border-color: #2a211722; }
.ar-tk.done { border-inline-start-color: var(--ar-gold); box-shadow: 0 0 0 1px #ffd16688, 0 6px 18px #0008, 0 0 18px #ffd16633; } .ar-tk.done .ar-tk-bar i { background: linear-gradient(90deg, #d79a1f, #ffd166); }
.ar-tk.got { filter: saturate(.75); border-inline-start-color: #3c8a4a; } .ar-tk.got .ar-tk-bar i { background: #3c8a4a; }
.ar-tk-got { display: inline-flex; align-items: center; gap: 4px; color: #2f7a3c; font-weight: 800; font-size: .82rem; }
.ar-tk-stamp { position: absolute; left: 42%; top: 50%; transform: translateY(-50%) rotate(-12deg); padding: 1px 10px; border: 3px solid #2f7a3caa; color: #2f7a3caa; font-weight: 900; font-size: 1.2rem; border-radius: 4px; pointer-events: none; }
.ar-tk .ar-claim { padding: 6px 10px; }
.ar-lgs { padding: 12px; border-radius: 12px; background: #ffffff07; border: 1px solid #ffffff12; } .ar-lgs h5 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: .95rem; color: #e7ebef; }
.ar-lgrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ar-lg { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #ffffff18; background: linear-gradient(160deg, #1f232a, #15181c); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ar-lg.ready { border-color: #ffd16677; box-shadow: 0 0 18px #ffd16633; }
.ar-lg-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #0006; color: var(--ar-gold); }
.ar-lg-t { display: flex; flex-direction: column; min-width: 0; } .ar-lg-t small { font-size: .74rem; color: var(--ar-muted); } .ar-lg.ready .ar-lg-t small { color: var(--ar-gold); font-weight: 700; }
.ar-lg-n { display: flex; flex-direction: column; align-items: flex-end; font-size: .76rem; color: #cfd5dc; font-variant-numeric: tabular-nums; } .ar-lg-n small { color: var(--ar-muted); font-size: .68rem; }
.ar-empty.sm { padding: 12px; font-size: .85rem; }
/* القصة: غرفة الأدلة */
#scr-archive .ar-body.sec-story { border-radius: 12px; background: radial-gradient(120% 70% at 50% 0%, #3a2616aa, transparent 70%), repeating-linear-gradient(0deg, #ffffff04 0 2px, transparent 2px 9px), #160f0aa8; padding: 12px 14px 24px; border: 1px solid #ffffff10; }
.ar-ev { display: flex; flex-direction: column; gap: 12px; }
.ar-ev-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid #ffffff1a; }
.ar-ev-h b { display: flex; align-items: center; gap: 7px; font-size: 1.05rem; color: #f3e6cf; } .ar-ev-h small { color: #c8b89e; font-size: .78rem; }
.ar-ev-h.pc { margin-top: 10px; }
.ar-folder.fresh { box-shadow: 0 0 0 2px #ffd166, 0 12px 26px #0009; }
.ar-f-nw { margin-inline-start: 6px; padding: 0 6px; border-radius: 8px; background: var(--ar-red); color: #fff; font-style: normal; font-size: .62rem; }
.ar-f-why { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ar-folder.locked .ar-f-why .ar-why { background: #f1e9d6; box-shadow: 0 1px 3px #0004; }
.ar-why { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 10px; background: #2a21171f; color: #5a2a18; font-size: .7rem; font-weight: 700; line-height: 1.5; }
.ar-why em { font-style: normal; color: #8a3b14; font-variant-numeric: tabular-nums; } .ar-why.k-pass { background: #7a1c1422; color: #7a1c14; }
.ar-f-cd { direction: ltr; font-family: 'Courier Prime', ui-monospace, monospace; margin-inline-start: 3px; }
.ar-pcl-t .ar-why { background: #ffffff12; color: #e8dfc9; } .ar-pcl-t .ar-why em { color: var(--ar-gold); }
/* لانشر الحاسوب: شاشة CRT */
.ar-pcl { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #20262e, #0f1216); border: 1px solid #ffffff14; box-shadow: 0 14px 32px #000a; }
.ar-crt { position: relative; aspect-ratio: 4 / 3; padding: 14px 14px 22px; border-radius: 14px 14px 18px 18px; border: 0; cursor: pointer; background: linear-gradient(180deg, #d9d2bf, #b3aa93); box-shadow: inset 0 2px 0 #fff7, inset 0 -4px 0 #0002, 0 10px 22px #0009; }
.ar-crt-scr { position: absolute; inset: 14px 14px 24px; border-radius: 12px / 16px; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 26px #000c, 0 0 0 3px #3a372f; background: #050608; }
.ar-crt-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 3px); pointer-events: none; animation: arScan 6s linear infinite; }
@keyframes arScan { to { background-position: 0 60px } }
.ar-crt-txt { position: relative; color: #dff3ff; font-size: .82rem; text-shadow: 0 0 8px #4fb4ff; padding: 4px 10px; border-radius: 4px; background: #0006; }
.ar-pcl.off .ar-crt-txt { color: #ffd1d1; text-shadow: 0 0 8px #ff3b4a; }
.ar-crt-led { position: absolute; bottom: 8px; inset-inline-end: 18px; width: 8px; height: 8px; border-radius: 50%; background: #4cd964; box-shadow: 0 0 8px #4cd964; } .ar-pcl.off .ar-crt-led { background: #ff9f1a; box-shadow: 0 0 8px #ff9f1a; }
.ar-crt:hover .ar-crt-scr { box-shadow: inset 0 0 18px #000a, 0 0 0 3px #3a372f, 0 0 22px #4fb4ff55; }
.p7w-aurora { background: radial-gradient(60% 50% at 30% 30%, #4fb4ff66, transparent 70%), radial-gradient(70% 60% at 75% 70%, #1ee3c255, transparent 70%), linear-gradient(160deg, #0b4c8c, #072a55 55%, #04172f); }
.p7w-night { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 40%, #fff, transparent), radial-gradient(80% 60% at 50% 110%, #1a3b6b, transparent), #050b18; }
.p7w-facility { background: radial-gradient(60% 55% at 50% 45%, #3a0a0f, #120305 70%, #050102); }
.p7w-static { background: repeating-radial-gradient(circle at 30% 40%, #ffffff22 0 1px, transparent 1px 3px), #1a1d22; }
.p7w-img { background: linear-gradient(160deg, #26303c, #0b0f14); }
.ar-pcl-t h4 { margin: 0 0 6px; font-size: 1.15rem; color: #eef0f3; } .ar-pcl-t p { margin: 0 0 8px; color: #c9cfd6; font-size: .88rem; line-height: 1.7; }
.ar-pcgo { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
/* حوار كلمة السر */
.ar-pw .ar-wl-paper { max-width: 380px; } .ar-pw .ar-pw-in { width: 100%; margin: 6px 0; padding: 8px 10px !important; border-radius: 6px !important; border: 1px solid #2a211766 !important; background: #fffaf0 !important; font: inherit; color: var(--ar-ink) !important; }
.ar-pw-err { margin: 0 0 6px; color: #a3151d; font-weight: 700; font-size: .85rem; } .ar-pw-b { display: flex; gap: 8px; justify-content: center; }

@media (max-width: 860px), (max-height: 520px) {
  #scr-archive .ar-page { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  #scr-archive .ar-secs { grid-column: 1; grid-row: 2; flex-direction: row; gap: 6px; }
  #scr-archive .ar-body { grid-column: 1; grid-row: 3; }
  .ar-sec { flex: 1; grid-template-columns: 32px 1fr; gap: 7px; padding: 7px 8px; border-radius: 8px; }
  .ar-sec:hover, .ar-sec.on { transform: translateY(-2px); } .ar-sec-ic { width: 32px; height: 32px; border-radius: 8px; } .ar-sec-ic .ar-i { width: 19px; height: 19px; }
  .ar-sec-t b { font-size: .92rem; } .ar-sec-t small { display: none; } .ar-sec-t em { font-size: .66rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ar-cols { grid-template-columns: 1fr; }
  .ar-pcl { grid-template-columns: 170px 1fr; gap: 12px; padding: 10px; }
  #scr-archive .ar-body.sec-story { padding: 10px 10px 20px; }
}
@media (max-height: 520px) and (min-width: 600px) and (min-width: 1100px) { .ar-cols { grid-template-columns: 1fr 1fr !important; } }
@media (max-height: 520px) and (min-width: 600px) {
  #scr-archive .ar-page { grid-template-columns: 172px 1fr; grid-template-rows: auto 1fr; }
  #scr-archive .ar-secs { grid-row: 2; flex-direction: column; gap: 6px; overflow-y: auto; align-self: stretch; }
  #scr-archive .ar-body { grid-column: 2; grid-row: 2; }
  .ar-sec { flex: none; } .ar-sec:hover { transform: translateX(-2px); } .ar-sec.on { transform: translateX(-5px); }
  .ar-cols { grid-template-columns: 1fr; gap: 10px; }
  .ar-files { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 10px; } .ar-folder { min-height: 118px; padding: 22px 10px 10px; }
  .ar-folder .ar-f-body b { font-size: .9rem; } .ar-folder .ar-f-body small { font-size: .7rem; }
  .ar-tk { padding: 8px 10px; gap: 8px; } .ar-board-h { padding: 10px 12px; } .ar-col { padding: 10px; }
  .ar-dtabs { padding: 6px; gap: 6px; margin-bottom: 8px; } .ar-dtabs .ar-drawer { flex: 1 0 118px; padding: 5px 7px 6px; }
  #scr-archive .ar-body .ar-goalbox { margin-bottom: 8px; }
}
@media (max-width: 640px) { .ar-tk { grid-template-columns: 34px 1fr; } .ar-tk-ic { width: 34px; height: 34px; } .ar-tk-r { grid-column: 1 / -1; justify-content: flex-end; } .ar-tk::after { display: none; } .ar-pcl { grid-template-columns: 1fr; } .ar-crt { max-width: 240px; justify-self: center; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ar-crt-scan { animation: none !important; } .ar-sec, .ar-tk-bar i { transition: none !important; } }

/* ============ جولة 79: «حاسوب المنشأة» بالقصة = سطح مكتب ويندوز 7 مصغّر (arc-pc.js → FZArcPC.mini) ============ */
.ar-w7 { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, #1b2027, #0d1014); border: 1px solid #ffffff14; box-shadow: 0 14px 32px #000a; }
.ar-w7-host { position: relative; min-height: 200px; border-radius: 8px; background: #050102; }
.ar-w7-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; }
.ar-w7-f p { margin: 0; flex: 1 1 260px; color: #cfd6df; font-size: .86rem; line-height: 1.6; }
.ar-w7-f .ar-f-why { flex: 1 1 100%; }
.ar-w7-f .ar-why { background: #ffffff12; color: #e8dfc9; }
/* جولة 79: «حط شاراتك من الأرشيف» — منطقة لمس أكبر بالجوال */
@media (pointer: coarse) { .pf-arc-add { position: relative } .pf-arc-add::after { content: ''; position: absolute; inset: -7px -4px } }
/* جولة 83: شارة بصورة من المحرك */
.ar-badge .ar-bim { width: 72%; height: 72%; object-fit: contain; image-rendering: auto; display: block; pointer-events: none; }

/* ---------- جولة 84: بطاقة «الكمبيوتر» (ويندوز 7) — بدل سطح المكتب المصغّر والزر الأحمر ---------- */
.ar-pcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 440px)); gap: 14px; padding-top: 4px; }
.ar-pc7 { position: relative; display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 14px 16px; border-radius: 8px; cursor: pointer; text-align: start; font: inherit; color: #1e1e1e;
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
  background: linear-gradient(#fdfdfd, #eef2f7 48%, #e3e9f1 52%, #edf1f6); border: 1px solid #a9b7c9; box-shadow: inset 0 1px 0 #fff, 0 10px 24px #0008; transition: border-color .15s, box-shadow .15s, transform .12s; }
.ar-pc7::before { content: ''; position: absolute; inset: 0; border-radius: 7px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(#e5f3fb, #d4ebfa 48%, #c4e3f8 52%, #d7ecfa); box-shadow: inset 0 0 0 1px #fff9; }
.ar-pc7:hover::before, .ar-pc7:focus-visible::before { opacity: 1; }
.ar-pc7:hover, .ar-pc7:focus-visible { border-color: #7eb4ea; outline: none; transform: translateY(-1px); }
.ar-pc7:active { transform: translateY(0); }
.ar-pc7 > * { position: relative; }
.ar-pc7-ic { flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; filter: drop-shadow(0 3px 3px #0004); }
.ar-pc7-ic svg { width: 100%; height: 100%; }
.ar-pc7-b { display: grid; gap: 4px; min-width: 0; }
.ar-pc7-b b { font-size: 1.1rem; color: #1e395b; }
.ar-pc7-b small { color: #4a5563; font-size: .84rem; line-height: 1.55; }
.ar-pc7-st { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #3d4a59; }
.ar-pc7-st i { width: 8px; height: 8px; border-radius: 50%; background: #9aa4b1; box-shadow: inset 0 -1px 1px #0003; }
.ar-pc7-st i.ok { background: #3cb44b; } .ar-pc7-st i.pw { background: #e8a33a; }
.ar-pc7 .ar-why { background: #dde5ef; color: #2a3a4f; }
.ar-pc7.locked .ar-pc7-ic { filter: grayscale(.7) drop-shadow(0 3px 3px #0004); opacity: .85; }
@media (max-width: 560px) { .ar-pcs { grid-template-columns: 1fr; } .ar-pc7-ic { width: 58px; height: 58px; } }

/* ===================== جولة 85: حاسوب المنشأة = ملفات بشكل ويندوز 7 + زر مخفي بالزخرفة ===================== */
/* الزخرفة بين القسمين: سكة حديد ببراغي — واحد منها «مفتاح» يفتح الجهاز الكامل */
.ar-div { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; color: #8f8370; font-family: var(--ar-type); font-size: .72rem; letter-spacing: 2px; direction: rtl; user-select: none; }
.ar-div-l { flex: 1; height: 6px; background: repeating-linear-gradient(-45deg, #2a241c 0 6px, #1a1610 6px 12px); border-top: 1px solid #ffffff14; border-bottom: 1px solid #00000080; border-radius: 2px; }
.ar-div-t { white-space: nowrap; opacity: .7; }
.ar-div-rv, .ar-div-pw { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8f8a80, #3a352d 70%); box-shadow: inset 0 0 0 1px #0008, 0 1px 0 #ffffff12; position: relative; }
.ar-div-rv::after { content: ''; position: absolute; inset: 5px 2px; background: #1a1610; border-radius: 1px; transform: rotate(35deg); }
.ar-div-pw { padding: 0; border: 0; cursor: pointer; }
.ar-div-pw i { position: absolute; inset: 3px; border-radius: 50%; background: #2c0d0b; box-shadow: inset 0 0 2px #000; }
.ar-div-pw.live i { background: #6a1410; animation: arPw 3.4s ease-in-out infinite; }
.ar-div-pw:hover i, .ar-div-pw:focus-visible i { background: #e2342e; box-shadow: 0 0 8px #e2342e; }
.ar-div-pw:focus-visible { outline: 1px dashed #e2342e66; outline-offset: 4px; }
.ar-div-pw.hit { transform: scale(.85); }
@keyframes arPw { 0%, 86%, 100% { opacity: .55; } 90% { opacity: 1; box-shadow: 0 0 6px #e2342e; } 94% { opacity: .4; } }
@media (pointer: coarse) { .ar-div-pw { width: 16px; height: 16px; } .ar-div-pw::before { content: ''; position: absolute; inset: -12px; } }

/* بطاقات ملفات الحاسوب: نفس فكرة «الملفات السرية» بشكل مستكشف ويندوز 7 */
/* ===== جولة 86: ملفات حاسوب المنشأة — نافذة «مستكشف ويندوز 7» ===== */
.ar-x7 { position: relative; container-type: inline-size; margin-top: 6px; border: 1px solid #5f7fa6; border-radius: 7px 7px 4px 4px; overflow: hidden; color: #1e1e1e; font-family: "Segoe UI", Tahoma, var(--font, sans-serif);
  background: #fff; box-shadow: 0 0 0 1px #ffffff55 inset, 0 14px 34px -12px #000c, 0 0 0 4px #0b0c1180; }
.ar-x7::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: repeating-linear-gradient(0deg, #00000008 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 40%, transparent 60%, #0000002e); mix-blend-mode: multiply; }
.x7-tb { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 8px; color: #10233d;
  background: linear-gradient(180deg, #d7e6f7 0%, #bed3ec 48%, #a9c3e3 52%, #b9d0ec 100%); border-bottom: 1px solid #8ea9cb; }
.x7-ti { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .8rem; text-shadow: 0 1px 0 #ffffffb0; } .x7-ti svg { width: 18px; height: 18px; flex: none; } .x7-ti b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x7-wb { display: flex; direction: ltr; } .x7-wb i { width: 26px; height: 18px; display: grid; place-items: center; font: 600 .7rem/1 sans-serif; font-style: normal; color: #20354f; border: 1px solid #6f8db2; margin-inline-start: -1px; background: linear-gradient(#eef4fb, #c9daee); }
.x7-wb i.x { width: 42px; color: #fff; background: linear-gradient(#e8a493, #c8452c 50%, #b5301a); border-color: #7d2a1d; }
.x7-nav { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: linear-gradient(#f2f6fb, #e1eaf5); border-bottom: 1px solid #c3d0e1; }
.x7-ar { display: flex; gap: 2px; flex: none; direction: ltr; } .x7-ar i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #e8f2ff, #8fb3dc 60%, #5a83b5); border: 1px solid #4f74a3; position: relative; }
.x7-ar i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border: 5px solid transparent; border-right-color: #fff; transform: translateX(-2px); } .x7-ar i + i::after { border-right-color: transparent; border-left-color: #fff; transform: translateX(2px); } .x7-ar i + i { opacity: .55; }
.x7-ad { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; height: 22px; padding: 0 6px; background: #fff; border: 1px solid #a5b7cd; font-size: .74rem; color: #333; white-space: nowrap; overflow: hidden; }
.x7-ad em svg { width: 14px; height: 14px; vertical-align: -2px; } .x7-ad u { width: 0; height: 0; border: 3.5px solid transparent; border-inline-start-color: #6a7a8e; text-decoration: none; } .x7-ad b { font-weight: 600; color: #10233d; }
.x7-sr { flex: 0 0 auto; width: 150px; height: 22px; padding: 0 8px; display: flex; align-items: center; font-size: .72rem; color: #8a96a5; font-style: italic; background: #fff; border: 1px solid #a5b7cd; }
.x7-cmd { display: flex; align-items: center; gap: 2px; padding: 3px 6px; font-size: .74rem; color: #1e395b; background: linear-gradient(#f9fbfe, #dfe9f5 50%, #d3e0f0 51%, #dde8f5); border-bottom: 1px solid #a8bdd8; }
.x7-cmd span { padding: 3px 9px; border: 1px solid transparent; border-radius: 2px; } .x7-cmd span:hover { border-color: #95b4d9; background: linear-gradient(#fbfdff, #dde9f7); }
.x7-cmd-r { margin-inline-start: auto; display: flex; align-items: center; gap: 5px; color: #b12a1e !important; font: 700 .64rem/1 ui-monospace, monospace !important; letter-spacing: 1px; }
.x7-rec { width: 7px; height: 7px; border-radius: 50%; background: #e2342e; box-shadow: 0 0 6px #e2342e; animation: x7Blink 1.3s steps(2) infinite; }
@keyframes x7Blink { 50% { opacity: .2 } }
.x7-main { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; min-height: 190px; background: #fff; }
.x7-side { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; font-size: .72rem; color: #1e395b; background: linear-gradient(90deg, #f3f7fc, #e9f0f9); border-inline-end: 1px solid #d5e0ee; }
.x7-side b { margin-top: 6px; font-weight: 600; color: #0e2a50; } .x7-side b:first-child { margin-top: 0; } .x7-side span { padding: 2px 8px 2px 4px; border-radius: 2px; } .x7-side span.on { background: linear-gradient(#e6f0fb, #cfe2f8); border: 1px solid #a6c3e6; } .x7-side .dim { opacity: .45; }
.x7-disk { height: 8px; margin: 2px 8px 0 4px; padding: 0 !important; border: 1px solid #8aa0bb; background: #e7e7e7; border-radius: 1px !important; } .x7-disk i { display: block; height: 100%; background: linear-gradient(#5ec0ff, #2a7fd4); }
.x7-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); align-content: start; gap: 4px; padding: 10px; }
.ar-w7i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; min-height: 0; text-align: center; cursor: pointer; color: #1e1e1e; font: inherit;
  background: transparent; border: 1px solid transparent; border-radius: 3px; transition: background .12s, border-color .12s, transform .12s; }
.ar-w7i:hover, .ar-w7i:focus-visible { border-color: #b8d6fb; background: linear-gradient(#f2f8fe, #dcebfc); outline: none; }
.ar-w7i.sel, .ar-w7i:active { border-color: #7da2ce; background: linear-gradient(#dcebfc, #c1dbfc); transform: scale(.98); }
.ar-w7i-ic { position: relative; width: 56px; height: 56px; flex: none; filter: drop-shadow(0 2px 2px #0003); transition: transform .18s; }
.ar-w7i:hover .ar-w7i-ic { transform: translateY(-2px); }
.ar-w7i-ic svg { width: 100%; height: 100%; }
.ar-w7i-lk { position: absolute; inset-inline-start: -2px; bottom: -2px; width: 20px; height: 18px; border-radius: 4px; background: linear-gradient(#f9e08a, #d9b24a); border: 1px solid #a8862a; box-shadow: 0 1px 2px #0005; }
.ar-w7i-lk::before { content: ''; position: absolute; left: 5px; top: -7px; width: 7px; height: 8px; border: 2px solid #8a8f99; border-bottom: 0; border-radius: 5px 5px 0 0; }
.ar-w7i-gl { position: absolute; inset: 6px 4px; pointer-events: none; background: linear-gradient(transparent 40%, #ff3b3055 42%, transparent 46%, transparent 70%, #3ad4ff44 72%, transparent 75%); mix-blend-mode: multiply; opacity: 0; animation: x7Gl 4.2s steps(1) infinite; }
@keyframes x7Gl { 0%, 86%, 100% { opacity: 0; transform: none } 88% { opacity: 1; transform: translateX(3px) } 91% { opacity: .7; transform: translateX(-2px) skewX(8deg) } 94% { opacity: 0 } }
.ar-w7i.locked .ar-w7i-ic svg { filter: grayscale(1) contrast(.8); opacity: .55; }
.ar-w7i.locked .ar-w7i-b b { color: #6b7380; letter-spacing: .3px; }
.ar-w7i-nw { position: absolute; top: -6px; inset-inline-end: -14px; padding: 1px 6px; font: 700 .58rem/1.5 inherit; font-style: normal; color: #fff; border-radius: 8px; background: linear-gradient(#5aa8ff, #1f6fd1); border: 1px solid #1a5bb0; box-shadow: 0 0 0 0 #3d8fff99; animation: x7Pulse 1.6s ease-out infinite; }
@keyframes x7Pulse { 0% { box-shadow: 0 0 0 0 #3d8fff99 } 100% { box-shadow: 0 0 0 9px #3d8fff00 } }
.ar-w7i.fresh .ar-w7i-b b { color: #0b4fa8; }
.ar-w7i-b { display: grid; gap: 2px; min-width: 0; width: 100%; }
.ar-w7i-b b { font-size: .8rem; font-weight: 600; color: #1e1e1e; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-w7i-b small { color: #6a7484; font-size: .66rem; }
.ar-w7i .ar-f-why { justify-content: center; } .ar-w7i .ar-why { background: #eef2f7; color: #384a63; border: 1px solid #d3dce8; font-size: .62rem; }
.x7-det { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; text-align: center; background: linear-gradient(#f8fbfe, #edf3fa); border-inline-start: 1px solid #d5e0ee; font-size: .72rem; color: #3b4a5e; }
.x7-det-ic { position: relative; width: 64px; height: 64px; filter: drop-shadow(0 3px 4px #0003); } .x7-det-ic svg { width: 100%; height: 100%; }
.x7-det b { font-size: .86rem; color: #10233d; font-weight: 600; word-break: break-word; } .x7-det-k { color: #6a7484; }
.x7-st { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 26px; padding: 3px 10px; font-size: .7rem; color: #333; background: linear-gradient(#f4f6f9, #dde3ea); border-top: 1px solid #b8c3d0; }
.x7-st-t b { color: #0b4fa8; } .x7-st-t.gh { color: #b0170f; font-weight: 700; letter-spacing: .5px; animation: x7Shk .12s steps(2) 5; }
@keyframes x7Shk { 50% { transform: translateX(1px) } }
.x7-pg { display: flex; align-items: center; gap: 6px; } .x7-pg small { color: #555; }
.x7-bar { position: relative; width: 120px; height: 12px; border: 1px solid #8d97a3; border-radius: 2px; background: linear-gradient(#e9e9e9, #d2d2d2); overflow: hidden; }
.x7-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: linear-gradient(#a6f39b, #37c024 50%, #23a612 51%, #4fd23a); transition: width .8s ease; }
.x7-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffffa0, transparent); width: 40%; animation: x7Shine 2.2s linear infinite; }
@keyframes x7Shine { from { transform: translateX(-120%) } to { transform: translateX(320%) } }
.x7-nx { color: #4a5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; } .x7-nx b { color: #8a1f17; } .x7-nx.done { color: #1d7a12; font-weight: 700; }
.x7-hdd { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: #3fd12f; box-shadow: 0 0 5px #3fd12f; animation: x7Hdd 3.1s steps(1) infinite; }
@keyframes x7Hdd { 0%, 12%, 30%, 33%, 70%, 74% { opacity: 1 } 6%, 20%, 31%, 50%, 72% { opacity: .15 } }
@container (max-width: 700px) { .x7-main { grid-template-columns: minmax(0, 1fr) 150px; } .x7-side { display: none; } .x7-sr { display: none; } }
@container (max-width: 520px) { .x7-main { grid-template-columns: minmax(0, 1fr); } .x7-det { display: none; } .x7-files { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); padding: 8px; } .x7-cmd span:nth-child(3) { display: none; } .x7-nx { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ar-w7i-gl, .x7-rec, .x7-hdd, .ar-w7i-nw, .x7-bar i::after { animation: none; } }

/* النافذة: ويندوز 7 (Aero) */
.ar-doc.w7 { padding: 0; border-radius: 7px 7px 3px 3px; color: #111; background: #fff; border: 1px solid #5f7ea6; width: min(820px, 100%);
  font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif; box-shadow: 0 0 0 1px #ffffff40 inset, 0 20px 60px #000c; overflow: hidden; }
.w7-tb { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 32px; padding: 0 0 0 0; padding-inline-start: 10px;
  background: linear-gradient(#bcd5f1, #94b8e3 48%, #84acdc 52%, #a2c3ea); border-bottom: 1px solid #6f8fb8; color: #0d1a2b; }
.w7-tt { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 8px #ffffffcc; }
.w7-btns { display: flex; align-self: flex-start; }
.w7-b { position: relative; display: block; width: 28px; height: 20px; border: 1px solid #5c7ba3; border-top: 0; background: linear-gradient(#e7f0fb, #b9cfe9); margin: 0; padding: 0; }
.w7-b + .w7-b { border-inline-start: 0; }
.w7-b.mn::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: #33445a; }
.w7-b.mx::after { content: ''; position: absolute; inset: 5px 9px; border: 1px solid #33445a; border-top-width: 2px; }
.w7-b.x { width: 46px; background: linear-gradient(#e8a493, #c7462b 50%, #b5301b 51%, #d26a4d); border-color: #7a2414; cursor: pointer; }
.w7-b.x::before, .w7-b.x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: #fff; box-shadow: 0 0 2px #0008; }
.w7-b.x::before { transform: translate(-50%, -50%) rotate(45deg); } .w7-b.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ar-doc.w7 .ar-doc-x { position: relative; inset: auto; border-radius: 0 0 5px 0; border-top: 0; color: transparent; }
.w7-menu { display: flex; gap: 2px; padding: 2px 6px; font-size: .78rem; background: #f6f8fb; border-bottom: 1px solid #dbe2ea; color: #333; }
.w7-menu span { padding: 2px 8px; border-radius: 2px; } .w7-menu span:hover { background: #dbe8f7; }
.w7-addr { display: flex; align-items: center; gap: 6px; margin: 6px 8px; padding: 3px 8px; font-size: .78rem; color: #333; border: 1px solid #a9b7c9; border-radius: 2px; background: #fff; }
.w7-addr i { width: 14px; height: 12px; background: #e9c35a; border: 1px solid #b8902e; border-radius: 1px; }
.ar-doc.w7 .ar-sheets { margin: 0 8px; border: 1px solid #c3cfdd; background: #fff; }
.ar-doc.w7 .ar-sheet { padding: 12px 14px; }
.ar-doc.w7 .ar-txt { font-family: 'Segoe UI', Tahoma, var(--font, sans-serif); letter-spacing: normal; word-spacing: normal;   /* جولة 86: خط عربي متصل (المونو كان يفكك الحروف) */ font-size: 1rem; line-height: 1.9; color: #111; }
.ar-doc.w7 .ar-photo, .ar-doc.w7 .ar-pol { background: #fff; border: 1px solid #c3cfdd; box-shadow: 0 2px 6px #0002; transform: none; padding: 6px; }
.ar-doc.w7 .ar-photo figcaption, .ar-doc.w7 .ar-pol figcaption { font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; font-size: .82rem; color: #333; }
.ar-doc.w7 .ar-pin2, .ar-doc.w7 .ar-clip { display: none; }
.ar-doc.w7 .ar-pol-img img, .ar-doc.w7 .ar-photo img { filter: none; background: #000; }
.ar-doc.w7 .ar-doc-nav { margin: 6px 8px 0; }
.ar-doc.w7 .ar-nb { background: linear-gradient(#fdfdfd, #e3e9f1); border: 1px solid #8ea4bf; color: #1e395b; border-radius: 3px; }
.w7-st { display: flex; gap: 0; margin-top: 6px; font-size: .74rem; color: #333; background: linear-gradient(#f2f5f9, #e1e7ef); border-top: 1px solid #c3cfdd; }
.w7-st span { padding: 3px 10px; border-inline-start: 1px solid #c3cfdd; } .w7-st span:first-child { flex: 1; border: 0; }
.ar-doc-back.w7 { backdrop-filter: none; background: #000b; }
.ar-doc-back.w7 .ar-doc { transform: scale(.97); transition: transform .18s ease; }
.ar-doc-back.w7.on .ar-doc { transform: none; }
@media (max-height: 520px) { .ar-doc.w7 { height: calc(100dvh - 20px); } .w7-menu { display: none; } }
