/* Hamed's World v2 · the classic activities in the new look (round 11). Owner: builder B2.
   Linked on /activities/mission-today|back-to-story|draw-feather under window (after compat.css), and on /discover and /passport.
   Part 1 = the engines' layout, ported verbatim from the classic site.css l.290-299 and l.504-602 (the wrapped page does not load it).
   Part 2 = the new look over it (CD rules: scene head, white .card tiles, one navy primary, labelled toolbar, no gold text, one passport mark). */
.draw-pad{position:relative;aspect-ratio:4/3;max-height:70svh;background:#FFFCF5;border-radius:16px;box-shadow:inset 0 0 0 2px var(--ivory-3);overflow:hidden}
.draw-pad::after{content:"";position:absolute;inset:8px;border:1.5px dashed color-mix(in srgb,var(--gold) 70%,transparent);border-radius:12px;pointer-events:none}
.draw-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.draw-hint{position:absolute;inset:0;display:grid;place-items:center;font:700 34px/1 var(--display);color:color-mix(in srgb,var(--gold-text) 55%,transparent);pointer-events:none;transition:opacity .2s ease}
.draw.has-ink .draw-hint{opacity:0}
.draw-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block-start:14px}
.swatches{display:flex;gap:8px;margin-inline-end:auto}
.swatch{width:44px;height:44px;border-radius:50%;border:0;background:var(--c);box-shadow:inset 0 0 0 3px var(--ivory),0 0 0 1.5px var(--ivory-3);cursor:pointer;transition:transform 120ms ease-out}
.swatch[aria-checked=true]{box-shadow:inset 0 0 0 3px var(--ivory),0 0 0 3px var(--gold)}
.swatch:active,.tool:active{transform:scale(.95)}
.deck-wrap{display:grid;justify-items:center;gap:10px}
.deck-compass{width:72px;height:72px}
.dc-svg{width:100%;height:100%;display:block}
.dc-needle{transform-box:view-box;transform-origin:40px 40px;transition:transform .8s var(--ease-peek)}
.deck{display:grid;width:min(300px,78vw);aspect-ratio:3/4;margin-block:2px 18px}
.qcard{grid-area:1/1;--k:min(var(--d),3);perspective:1100px;transform:translate(calc(var(--k) * var(--dir) * -8px),calc(var(--k) * 8px)) rotate(calc(var(--k) * var(--dir) * -2.6deg));transition:transform .42s var(--ease-out),opacity .3s var(--ease-out)}
.qcard.is-away{transform:translate(calc(var(--dir) * 118%),-14px) rotate(calc(var(--dir) * 16deg));opacity:0}
.qc{position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;border-radius:22px;transform-style:preserve-3d;transition:transform .5s var(--ease-door)}
.qc:focus-visible{outline:3px solid var(--gold-text);outline-offset:6px}
.qcard.is-flipped .qc{transform:rotateY(calc(var(--dir) * -180deg))}
.qc-face{position:absolute;inset:0;display:grid;place-items:center;border-radius:22px;-webkit-backface-visibility:hidden;backface-visibility:hidden}
.qc-front{grid-template-rows:1fr auto auto;gap:10px;padding:22px 18px 24px;background:linear-gradient(180deg,#7A4628,var(--wood) 45%,var(--wood-deep));box-shadow:inset 0 0 0 2px rgba(226,194,122,.6),inset 0 0 0 12px rgba(78,43,23,.28),0 22px 30px -20px rgba(78,43,23,.6)}
.qc-num{font:700 104px/1 var(--display);color:var(--gold-hi);padding-block-start:10px}
.qc-art{width:76px;height:76px;object-fit:contain}
.qc-flip{font:600 18px/1 var(--text);color:var(--ivory);border:1.5px solid rgba(226,194,122,.75);border-radius:999px;padding:11px 20px}
.qc-back{transform:rotateY(180deg);padding:30px 22px 70px;background:#FFFCF5;box-shadow:inset 0 0 0 2px var(--gold),inset 0 0 0 9px var(--ivory-2),0 22px 30px -20px rgba(78,43,23,.45)}
.qc-q{font:700 34px/1.35 var(--display);color:var(--ink);text-align:center;text-wrap:balance}
html[lang=en] .qc-q{font-size:32px}
.qc-peek{position:absolute;bottom:-26px;inset-inline-end:16px;width:96px;height:96px;object-fit:contain;transform:rotate(-8deg)}
.qc-peek--1{width:110px}
html[dir=rtl] .qc-peek--1{scale:-1 1}
.deck-foot{display:flex;align-items:center;justify-content:center;gap:18px}
.deck-dots{display:flex;gap:8px}
.deck-dots i{width:11px;height:11px;border-radius:50%;border:1.5px solid var(--gold);transition:background-color .3s var(--ease-out)}
.deck-dots i.on{background:var(--gold)}
.deck-next{min-height:48px;font-size:17px}
.deck-next:disabled{opacity:.45;cursor:default}
.no-js .deck{width:min(560px,100%);aspect-ratio:auto;gap:18px}
.no-js .qcard{grid-area:auto;transform:none;height:220px}
.no-js .qc-front{display:none}
.no-js .qc-back{transform:none}

/* 2 · Mission = drag the plane along the dotted path to the glowing door. Plain pointer events; the plane bobs to invite a
   touch (the independent `translate` property, so the drag transform never fights it). */
.fly{max-width:680px;margin-inline:auto}
.fly-sky{position:relative;height:310px;border-radius:24px;background:radial-gradient(120% 90% at 50% 100%,#FFF3D6,var(--ivory-2) 72%);box-shadow:inset 0 0 0 1px var(--ivory-3)}
.fly-path{position:absolute;inset:24px 0 40px;width:100%;height:calc(100% - 64px)}
html[dir=rtl] .fly-path{transform:scaleX(-1)}
.fly-plane{position:absolute;z-index:3;inset-inline-start:calc(20.6% - 52px);top:calc(24px + .75 * (100% - 64px) - 52px);width:104px;height:104px;padding:0;border:0;background:none;border-radius:50%;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;filter:drop-shadow(0 10px 8px rgba(78,43,23,.22))}
.fly-plane:focus-visible{outline:3px solid var(--gold-text);outline-offset:4px}
.fly-img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
html[dir=rtl] .fly-img{scale:-1 1}
.fly.is-live:not(.is-landed) .fly-plane:not(.is-held):not(.is-flying){animation:bob 1.8s ease-in-out infinite}
@keyframes bob{50%{translate:0 -7px}}
.fly-plane.is-held{cursor:grabbing}
.fly-plane.is-return{transition:transform .4s var(--ease-out)}
.fly-target{position:absolute;z-index:1;inset-inline-start:calc(79.3% - 65px);top:calc(24px + .56 * (100% - 64px) - 50px);width:130px;display:grid;justify-items:center;gap:8px}
.ft-door{position:relative;width:80px;height:100px;-webkit-mask:var(--tile-mask) center/100% 100% no-repeat;mask:var(--tile-mask) center/100% 100% no-repeat;background:linear-gradient(180deg,#E2CDA7,var(--ivory-3) 40%,#D9C29A);transition:transform .25s var(--ease-out)}
.ft-light{position:absolute;inset:8px 8px 0;-webkit-mask:var(--tile-mask) center/100% 100% no-repeat;mask:var(--tile-mask) center/100% 100% no-repeat;background:radial-gradient(closest-side,#FFFDF6,#FFE3A3);animation:ft-glow 2.4s ease-in-out infinite alternate}
@keyframes ft-glow{to{opacity:.72}}
.ft-label{font:600 15px/1.35 var(--text);color:var(--ink);text-align:center}
.fly.is-near .ft-door{transform:scale(1.1)}
.fly.is-near .ft-light,.fly.is-landed .ft-light{animation:none;opacity:1;background:radial-gradient(closest-side,#FFFFFF,#FFE3A3)}
.fly-note{margin-block-start:16px;background:var(--ivory-2);border-radius:6px 6px 18px 18px;border-top:3px solid var(--gold);padding:16px 20px;font:600 21px/1.6 var(--text);color:var(--ink);transition:opacity .35s var(--ease-out),transform .35s var(--ease-out)}
.js .fly:not(.is-landed) .fly-note{visibility:hidden;opacity:0;transform:translateY(10px)}
@media (max-width:420px){.fly-sky{height:290px}.fly-target{width:118px;inset-inline-start:calc(79.3% - 59px)}}

/* 3 · Draw = the sheet first and big; few, large tools. */
@media (max-width:600px){.draw-pad{aspect-ratio:1/1}}
.draw-tools{gap:12px;margin-block-start:16px}
.draw .swatches{gap:10px}
.draw .swatch{width:54px;height:54px}
.draw-tools .tool,.draw-tools .btn{min-height:54px;font-size:18px}

/* 4 · A friend joins the box: one full-width moment (gsap timeline in site.js; reduced motion = this still panel). */
.cele{position:fixed;inset:0;z-index:80;display:grid;place-content:center;justify-items:center;gap:22px;padding:24px;background:rgba(250,244,232,.95);cursor:pointer;overflow:hidden}
.cele-light{position:absolute;left:50%;top:50%;width:min(140vw,980px);aspect-ratio:1;margin:calc(min(140vw,980px) / -2 - 40px) 0 0 calc(min(140vw,980px) / -2);background:radial-gradient(closest-side,#FFF3D6,rgba(255,243,214,0));pointer-events:none}
.cele-coin{position:relative;width:220px;height:220px;border-radius:50%;display:grid;place-items:center;border:3px dashed color-mix(in srgb,var(--gold) 85%,transparent);background:var(--ivory)}
.cele-coin.is-got,.cele.is-still .cele-coin{border:3px solid var(--gold);background:radial-gradient(closest-side,#FFF3D6,var(--ivory-2));box-shadow:inset 0 0 0 8px var(--ivory-2),inset 0 0 0 10px color-mix(in srgb,var(--gold) 55%,transparent),0 26px 40px -26px rgba(78,43,23,.5)}
.cele-friend{position:relative;z-index:2;width:160px;height:160px;object-fit:contain}
.cele-friend svg{width:100%;height:100%}
.cele-clip{position:absolute;inset:0;z-index:3;border-radius:50%;overflow:hidden;pointer-events:none}
.cele-glint{position:absolute;top:-10%;bottom:-10%;left:28%;width:44%;opacity:0;background:linear-gradient(90deg,rgba(226,194,122,0),rgba(242,222,170,.7),rgba(226,194,122,0));transform:rotate(20deg)}
.cele-line{position:relative;font:700 clamp(34px,2vw + 28px,52px)/1.3 var(--display);color:var(--ink);text-align:center;max-width:15ch;text-wrap:balance}

/* Reviewer · «ارسم ريشتك الفضية» wrapped under the odd last door at 390: the label now has the full row, the door stays half. */
@media (max-width:899px){.door-grid>li:last-child:nth-child(odd){width:auto;justify-self:stretch}.door-grid>li:last-child:nth-child(odd) .dt-stand{width:calc(50% - 8px);margin-inline:auto}}

@media (prefers-reduced-motion:reduce){
  .qc,.qcard,.dc-needle,.fly-note,.ft-door,.deck-dots i{transition:none}
  .fly-plane,.ft-light{animation:none!important}
}
@media print{.deck-wrap,.fly,.act-grown{display:none!important}}
/* round 4 · fit the play inside the first screen at 390 */
.sec.activity{padding-block-start:14px}
.deck{width:min(264px,68vw);aspect-ratio:4/5;margin-block:0 14px}
.deck-compass{width:58px;height:58px}
.qc-num{font-size:84px;padding-block-start:4px}
.qc-art{width:62px;height:62px}
.qc-front{padding:16px 16px 20px;gap:8px}
.qc-back{padding:24px 18px 62px}
.qc-q{font-size:30px}
html[lang=en] .qc-q{font-size:28px}
.qc-peek{width:84px;height:84px;bottom:-22px}
.qc-peek--1{width:98px}
.js .fly{position:relative}
.js .fly-note{position:absolute;inset-inline:14px;bottom:14px;z-index:4;margin:0;box-shadow:0 14px 26px -16px rgba(78,43,23,.45)}
.fly.is-landed .ft-label{visibility:hidden}
.act-intro p{font-size:17px;line-height:1.8;color:var(--ink);margin-block-end:10px;max-width:46ch}

/* ---------- part 2: the new look ---------- */
.cl--acts .page-body { background: var(--c-ivory); }
.cl--acts .sec.activity { max-width: 760px; margin-inline: auto; padding: 8px 16px 140px; }
/* head = the scene page's head */
.act-head--v2 { background: var(--c-ivory); padding-block: 4px 12px; text-align: start; }
.act-head--v2 .sec-in { max-width: 760px; margin-inline: auto; padding-inline: 16px; }
.act-head--v2 .act-bar { min-height: 52px; margin: 0; }
.act-head--v2 .act-exit, .pp-head .act-exit { color: var(--c-navy); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; font-size: var(--fs-ui); }
.act-kicker { margin: 4px 0 2px; color: #7A5A22; font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.act-head--v2 h1, .pp-head h1 { margin: 0; color: var(--c-navy); font-size: var(--fs-page); font-weight: 700; line-height: 1.3; }
.act-head--v2 .act-do { margin: 6px 0 0; color: var(--c-body); font-size: var(--fs-kid); font-weight: 600; line-height: 1.6; }

/* fix round (CD 2): the activity head = B1's kids head exactly (css/v2/kids.css l.13–24, same classes and values) */
.cl--acts .crown { display: none; }
.cl--acts .kw-bar { max-width: 760px; margin: 8px auto 4px; padding-inline: 16px; justify-content: space-between; }
.cl--acts .act-exit { color: var(--c-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; font-size: var(--fs-ui); }
.cl--acts .kw-mute { margin-inline-start: auto; width: auto; height: auto; min-height: 48px; white-space: nowrap; }
.cl--acts .kw-mute .ki { width: 22px; height: 22px; color: var(--c-navy); --icon-gold: var(--c-gold); }
.cl--acts .kw-head { max-width: 760px; margin: 8px auto 16px; padding: 0 16px; text-align: start; background: none; }
.cl--acts .kw-head .ph-copy { padding: 0; text-align: start; max-width: var(--measure); }
.cl--acts .kw-kicker { margin: 0; color: var(--c-gold); font-weight: 700; font-size: var(--fs-small); }
.cl--acts .kw-head h1 { margin: 0; color: var(--c-navy); font-size: var(--fs-page); font-weight: var(--w-head); line-height: var(--lh-head); }
.cl--acts .kw-lead { margin: 4px 0 0; font-size: var(--fs-kid); color: var(--c-body); line-height: var(--lh-ar); font-weight: 400; }
html[lang="en"] .cl--acts .kw-lead { line-height: var(--lh-en); }
.cl--acts .act-head > .ksound:not(.kw-mute), .cl--acts .kick-row { display: none; }

/* fix round (CD 3): «بطاقتك الأولى هنا» = a white card slot, 1px line, radius 16, a navy plus. No dashes, no gold, no arch */
.cl--acts .ks-ghost { border: 1px solid var(--c-line); border-radius: 16px; background: #fff; color: var(--c-body); font: 600 .875rem/1.35 var(--font); }
.cl--acts .ks-plus { color: var(--c-navy); font: 700 1.75rem/1 var(--font); }
/* «للكبار» at the page foot, as on the kids pages */
.cl--acts .act-grown--foot { margin-block-start: 28px; padding-block-start: 12px; border-top: 1px solid var(--c-line); color: var(--c-body); }
.cl--acts .act-grown--foot summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--c-navy); }
/* desktop: the dock is the tool's bottom bar; the page keeps room under the passport so it never covers it */
@media (min-width: 900px) { .cl--acts .sec.activity { padding-block-end: 180px; } }

/* fix round (CD 4): the mission stage = the game's painted fareej lane, the painted carved door as the lit target, a navy caption pill */
.cl--acts .fly .fly-sky--v2 { height: 360px; overflow: hidden; background: linear-gradient(rgba(255,252,246,.28), rgba(255,252,246,.28)), url("/games/g1/art/place-fareej-780.webp") center 41% / 100% auto no-repeat, #F1E7D4; border: 1px solid var(--c-line); }
.cl--acts .fly-cap { position: absolute; z-index: 4; inset-inline: 0; top: 12px; margin: 0 auto; width: max-content; max-width: calc(100% - 24px); padding: 8px 16px; border-radius: 999px; background: var(--c-navy); color: #FAF7F0; font: 600 1rem/1.4 var(--font); text-align: center; box-shadow: 0 6px 16px -8px rgba(16,28,48,.5); }
.cl--acts .fly-sky--v2 .fly-target { top: calc(24px + .5 * (100% - 64px) - 70px); width: 140px; inset-inline-start: calc(79.3% - 70px); }
.cl--acts .fly-sky--v2 .ft-door { width: 112px; height: 132px; -webkit-mask: none; mask: none; border-radius: 56px 56px 10px 10px; background: url("/games/g1/art/place-fareej-780.webp") -78px -6px / 259px auto no-repeat; box-shadow: 0 0 0 3px #fff, 0 0 28px 10px rgba(255,214,140,.85); }
.cl--acts .fly-sky--v2 .ft-light { inset: 0; -webkit-mask: none; mask: none; border-radius: inherit; background: radial-gradient(60% 55% at 50% 62%, rgba(255,236,190,.75), rgba(255,236,190,0)); mix-blend-mode: screen; }
.cl--acts .fly-sky--v2 .ft-label { padding: 4px 10px; border-radius: 10px; background: #fff; color: var(--c-navy); font: 600 .875rem/1.35 var(--font); box-shadow: var(--shadow); }
.cl--acts .fly-sky--v2 .fly-path path { stroke: #fff; opacity: .95; stroke-width: 4; }
@media (max-width: 520px) { .cl--acts .fly-sky--v2 .fly-target { inset-inline-start: calc(76% - 70px); } }

/* the question deck: navy front, white back with a navy ring; no wood, no gold rings */
.cl--acts .qc-front { background: var(--c-navy); box-shadow: var(--shadow); border-radius: var(--radius-card); }
.cl--acts .qc-num { color: #F3E7CC; font-family: var(--font); }
.cl--acts .qc-flip { color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 12px; font-family: var(--font); }
.cl--acts .qc-back { background: #fff; border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--c-line), 0 0 0 3px var(--c-navy), var(--shadow); }
.cl--acts .qc-q { color: var(--c-navy); font-family: var(--font); }
.cl--acts .deck-dots i { border-color: var(--c-navy); }
.cl--acts .deck-dots i.on { background: var(--c-navy); }

/* the mission sky: a white card, the dotted path in navy */
.cl--acts .fly-sky { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.cl--acts .fly-path path { stroke: var(--c-navy); opacity: .5; }
.cl--acts .ft-label { color: var(--c-navy); font-family: var(--font); }
.cl--acts .fly-note { background: #fff; border: 1px solid var(--c-line); border-top: 0; border-radius: 12px; box-shadow: var(--shadow); font-family: var(--font); color: var(--c-navy); }

/* the drawing pad + tools: white pad, labelled white toolbar */
.cl--acts .draw-pad { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.cl--acts .draw-pad::after { border-color: var(--c-line); }
.cl--acts .draw-hint { color: color-mix(in srgb, var(--c-navy) 30%, transparent); font-family: var(--font); }
.cl--acts .draw-tools { background: #fff; border-top: 1px solid var(--c-line); padding: 12px 8px; }
.cl--acts .swatch { box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--c-line); }
.cl--acts .swatch[aria-checked=true] { box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--c-navy); }
.cl--acts .kcoins { display: flex; flex-wrap: wrap; gap: 8px; }
.cl--acts .kcoin { width: auto; min-width: 48px; height: auto; min-height: 48px; padding: 4px 10px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); color: var(--c-navy); box-shadow: none; }
.cl--acts .kcoin small { position: static; font: 600 .875rem/1.2 var(--font); color: var(--c-navy); }
.cl--acts .kcoin[aria-pressed=true] { background: var(--c-navy); color: #FAF7F0; border-color: var(--c-navy); box-shadow: none; }
.cl--acts .kcoin[aria-pressed=true] small { color: #FAF7F0; }
.cl--acts .kcoin.ksize i { background: currentColor; }

/* the bottom dock = a white toolbar; one navy primary (the step's main button) */
.cl--acts .kdock { background: #fff; border: 0; border-top: 1px solid var(--c-line); border-radius: 0; box-shadow: 0 -6px 18px -14px rgba(16,28,48,.3); }
.cl--acts .kbtn, .cl--acts .btn.kbig { background: var(--c-navy); color: #FAF7F0; border-radius: 12px; box-shadow: none; font-family: var(--font); min-height: 52px; }
.cl--acts .kbtn .ki { color: #FAF7F0; --icon-gold: #FAF7F0; }
.cl--acts .kbtn2 { background: #fff; color: var(--c-navy); border: 1px solid var(--c-line); border-radius: 12px; font-family: var(--font); min-height: 48px; }
.cl--acts .kbtn2 .ki { color: var(--c-navy); }
/* fix 2 (CD r11 items 2–3): the dock = B1's kids dock exactly (css/v2/kids.css l.69–81, same values): white bar, her line on top;
   side buttons = icon over its word at every width (12 px at 390, 13 px wider), 48 px+; the grid mark for «اكتشف والعب» */
.cl--acts .kdock { background: var(--c-card); border-top: 1px solid var(--c-line); box-shadow: 0 -6px 20px -16px rgba(16, 28, 48, .25); padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.cl--acts .kdock::before { display: none; }
.cl--acts .kd-main .kbtn { min-height: 52px; }
.cl--acts .guide-slot { height: 52px; }
.cl--acts .kdock .kd-back, .cl--acts .kdock .kd-cards { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; min-width: 64px; padding: 4px 8px; }
.cl--acts .kdock .kd-back > span:not(.ki), .cl--acts .kdock .kd-cards > span:not(.ki) { display: block; font: var(--w-ui) 12px/1.25 var(--font); color: var(--c-navy); white-space: nowrap; }
.cl--acts .kdock .kw-grid { width: 24px; height: 24px; color: var(--c-navy); flex: none; }
.cl--acts .kd-count { background: var(--c-navy); color: #fff; font-family: var(--font); }
@media (max-width: 420px) { .cl--acts .kdock .kd-back, .cl--acts .kdock .kd-cards { width: auto; padding: 4px 6px; } .cl--acts .kdock { gap: 6px; } }
@media (min-width: 421px) { .cl--acts .kdock .kd-back > span:not(.ki), .cl--acts .kdock .kd-cards > span:not(.ki) { font-size: 13px; } }
/* the stage moved into .act-tool: keep the editing rules of css/kids.css l.118–119 working one level down */
.kediting > .act-tool > :is(.fly, .deck-wrap, .draw) { display: none !important; }
.kediting > .act-tool > .khost { margin-block-start: 0; }
/* desktop: the bar is the tool's own bottom bar, sticky inside .act-tool; past the tool it rests under the stage, so the passport
   box below is never covered. The page keeps a normal foot. (Phones keep the fixed bar + the 140 px room under the section.) */
@media (min-width: 900px) {
  .cl--acts .act-tool > .kdock { position: sticky; z-index: 40; inset-inline: auto; bottom: 16px; margin-block-start: 16px; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-card); }
  .cl--acts .sec.activity { padding-block-end: 64px; }
  body:has(.act--v2) { padding-bottom: 0; }
  /* kids.js draws the 3 s glow as position:fixed for anything in the dock; the in-flow bar scrolls, so keep only the button's own ring */
  body:has(.act--v2) .kglow[style*="position: fixed"] { display: none; }
}
.cl--acts .khint { background: #fff; border: 1px solid var(--c-line); border-radius: 12px; }
.cl--acts .tool { border-radius: 12px; border: 1px solid var(--c-line); background: #fff; color: var(--c-navy); min-height: 48px; font-family: var(--font); font-weight: 600; }

/* the little ones' shelf: a quiet white card */
.cl--acts .kshelf { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px; margin-block-start: 24px; }
.cl--acts .ks-h { color: var(--c-navy); font: 700 1.25rem/1.4 var(--font); }
.cl--acts .ks-line { display: none; }

/* ---------- the passport on the activity page (the box drawn as «جواز مغامراتي») ---------- */
.pp-svg { display: block; width: 100%; height: 100%; }
.tbox--pp { margin-block-start: 28px; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.tbox--pp .tb-head { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; }
.tbox--pp .pp-mark { grid-row: span 2; width: 40px; height: 50px; }
.tbox--pp .tb-h { margin: 0; font: 700 1.25rem/1.4 var(--font); }
.tbox--pp .tb-h a { color: var(--c-navy); }
.tbox--pp .tb-count { margin: 0; color: var(--c-muted); font-weight: 600; }
.tbox--pp .tb-say { margin: 10px 0; color: var(--c-body); font-size: 1.0625rem; }
.tbox--pp .tb-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tbox--pp .tb-slot { padding: 10px 6px; display: grid; justify-items: center; gap: 4px; text-align: center; box-shadow: none; }
.tbox--pp .tb-coin { position: relative; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; }
.tbox--pp .tb-img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .45; }
.tbox--pp .tb-slot.is-got .tb-img { filter: none; opacity: 1; }
.tbox--pp .tb-glint { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.8) 50%, transparent 70%); opacity: 0; }
.pp-star { display: block; width: 18px; height: 18px; color: var(--c-line); }
.pp-star svg, .pp-st svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.tbox--pp .tb-slot.is-got { box-shadow: 0 0 0 3px var(--c-navy); }
.tbox--pp .tb-slot.is-got .pp-star { color: var(--c-gold); }
.tbox--pp .pp-name { font-size: .875rem; font-weight: 600; color: var(--c-navy); line-height: 1.35; }
.tbox--pp .pp-open { margin: 14px 0 0; }
.tbox--pp .tb-grown { margin-block-start: 12px; color: var(--c-body); }
.tbox--pp .tb-grown summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--c-navy); }

/* ---------- /discover: the hub ---------- */
.dc-pp { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; margin-block-end: 28px; text-decoration: none; color: inherit; }
.dc-pp-mark { width: 56px; height: 70px; }
.dc-pp-stars { display: flex; gap: 4px; color: var(--c-gold); }
.dc-pp-stars svg { width: 16px; height: 16px; fill: currentColor; }
.dc-pp-n { display: inline-block; margin-block-start: 4px; font-weight: 700; color: var(--c-navy); }
.dc-pp-n[hidden] { display: none; }
.dc-grp { margin-block-end: 36px; }
.dc-h { margin: 0 0 4px; }
.dc-lead { margin: 0 0 16px; color: var(--c-body); font-size: var(--fs-kid); }
.dc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .dc--wide { grid-column: span 2; } }
.card.dc { padding: 0; }
.dc-a { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.dc-pic { display: block; aspect-ratio: 4 / 3; background: var(--c-sand); overflow: hidden; }
.dc-pic img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.dc-pic img[src*="teaser"], .dc-pic img[src*="cockpit"], .dc-pic img[src*="/words/"] { object-fit: cover; padding: 0; }
.dc-txt { display: grid; align-content: start; gap: 4px; padding: 12px 14px 16px; }
.dc-t { display: block; color: var(--c-navy); font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.dc-l { display: block; color: var(--c-body); font-size: .9375rem; line-height: 1.6; }
.card.dc:hover, .dc-pp:hover { box-shadow: var(--shadow-hover); }
.card.dc:focus-within, .dc-pp:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 3px; }
/* fix round (CD 5): one picture language. Painted tiles fill the frame; fallbacks sit on the same warm ground */
.dc-pic { background: #F1E7D4; }
.dc-pic--art img, .dc-pic--cover img { object-fit: cover; padding: 0; }
.dc-pic--cards { display: grid; place-items: center; }
.dc-pic--cards .dc-mark { width: 72px; height: 90px; }
.dc-pic--cards.has-card { background: #F1E7D4; }
.dc-pic--cards .dc-thumb { width: auto; height: 86%; max-width: 86%; object-fit: contain; padding: 0; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.dc-head { padding-block-end: 20px; }
.dc-head .act-do { max-width: 46ch; }
.dc-pp-n { color: var(--c-navy); }

/* ---------- /passport ---------- */
.pp-head { background: var(--c-ivory); padding-block: 4px 8px; }
.pp-title { display: flex; align-items: center; gap: 16px; margin-block-start: 6px; }
.pp-big { flex: none; width: 64px; height: 80px; }
.pp-count { margin: 4px 0 0; color: var(--c-navy); font-weight: 700; }
.pp-lead { margin: 12px 0 0; color: var(--c-body); font-size: var(--fs-kid); }
.pp-h { margin: 28px 0 12px; font-size: 1.375rem; }
.pp-stamps, .pp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .pp-stamps, .pp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card.pp-slot, .card.pp-card { padding: 0; }
.pp-slot-a, .pp-card-a { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; text-align: center; color: inherit; text-decoration: none; }
.pp-slot-pic { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; }
.pp-slot-pic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .45; }
.pp-slot-pic img[src*="teaser"] { object-fit: cover; }
.pp-slot.is-got .pp-slot-pic img { filter: none; opacity: 1; }
.pp-slot.is-got { box-shadow: 0 0 0 3px var(--c-navy), var(--shadow); }
.pp-slot-t { color: var(--c-navy); font-weight: 700; line-height: 1.4; }
.pp-slot-s { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: .875rem; font-weight: 600; }
.pp-st { display: block; width: 16px; height: 16px; color: var(--c-line); }
.pp-slot.is-got .pp-st { color: var(--c-gold); }
.pp-slot.is-got .pp-slot-s { color: var(--c-navy); }
.pp-stars { margin: 0; font-size: 1.5rem; color: var(--c-gold); letter-spacing: 2px; }
.pp-card-a img { width: 100%; max-width: 160px; height: auto; border-radius: 12px; border: 1px solid var(--c-line); }
.pp-card-t { color: var(--c-navy); font-weight: 600; font-size: .9375rem; }
.pp-none { grid-column: 1 / -1; color: var(--c-muted); }
.pp-empty { margin: 24px 0 0; padding: 16px; background: #fff; border: 1px dashed var(--c-line); border-radius: 12px; color: var(--c-body); }
.pp-empty[hidden], .pp-clear[hidden] { display: none; }
.pp-empty a { color: var(--c-navy); font-weight: 600; }
.pp-foot { margin-block-start: 32px; padding-block-start: 16px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pp-foot .meta { margin: 0; color: var(--c-muted); }
