/* Focus & Mind Exercises — Adham Therapy. Scoped to .fme; uses the site's colour variables when present. */
.fme{--f-gold:var(--gold,#C7C1A5);--f-gold-hi:var(--gold-hi,#E6D7BE);--f-ink:var(--ink,#14161A);--f-line:var(--line,#2C3038);--f-ivory:var(--ivory,#ECEAE1);--f-muted:var(--muted,#A29D8C);
  --f-red:#E5675F;--f-green:#6FBF73;--f-blue:#5FA8E5;--f-yellow:#E8D36A;
  color:var(--f-ivory);font-family:var(--sans,Inter,-apple-system,"Segoe UI",sans-serif);line-height:1.55}
.fme[dir=rtl]{font-family:Tajawal,var(--sans,Inter),sans-serif}
.fme *{box-sizing:border-box}
.fme h2,.fme h3{font-family:var(--serif,"Cormorant Garamond",Georgia,serif);color:var(--f-ivory);font-weight:600;margin:0 0 .4em}
.fme[dir=rtl] h2,.fme[dir=rtl] h3{font-family:Amiri,Tajawal,serif}
.fme .fme-eyebrow{color:var(--f-gold);letter-spacing:.14em;text-transform:uppercase;font-size:.78rem;font-weight:600}
.fme[dir=rtl] .fme-eyebrow{letter-spacing:0}
.fme .fme-muted{color:var(--f-muted)}
.fme .fme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:22px 0}
.fme .fme-card{background:rgba(199,193,165,.05);border:1px solid var(--f-line);border-radius:18px;padding:24px;display:flex;flex-direction:column;gap:10px;text-align:start}
.fme .fme-card .fme-ico{width:52px;height:52px;border-radius:50%;border:1px solid var(--f-gold);display:grid;place-items:center;color:var(--f-gold)}
.fme .fme-card h3{font-size:1.5rem;margin:4px 0 0}
.fme .fme-card .fme-tag{color:var(--f-gold);font-size:.9rem;font-weight:600}
.fme .fme-card p{margin:0;color:var(--f-muted);font-size:.95rem}
.fme .fme-card .fme-best{font-size:.85rem;color:var(--f-gold-hi);min-height:1.2em}
.fme button{font:inherit;cursor:pointer}
.fme .fme-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;border-radius:999px;border:1px solid var(--f-gold);background:var(--f-gold);color:#14161A;font-weight:600}
.fme .fme-btn.line{background:transparent;color:var(--f-gold)}
.fme .fme-btn:focus-visible,.fme .fme-key:focus-visible,.fme .fme-color:focus-visible{outline:3px solid var(--f-gold-hi);outline-offset:3px}
.fme .fme-card .fme-btn{margin-top:auto;align-self:flex-start}
.fme .fme-stage{border:1px solid var(--f-line);border-radius:22px;padding:clamp(20px,4vw,40px);background:rgba(199,193,165,.04);margin:22px 0}
.fme .fme-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.fme .fme-steps{margin:10px 0 18px;padding-inline-start:1.2em}
.fme .fme-steps li{margin:6px 0}
.fme .fme-arena{min-height:220px;display:grid;place-items:center;text-align:center;margin:14px 0;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.fme .fme-word{font-size:clamp(3rem,11vw,5.5rem);font-weight:700;letter-spacing:.02em;font-family:var(--sans,Inter),Tajawal,sans-serif}
.fme .fme-digit{font-size:clamp(4rem,16vw,7rem);font-weight:700;color:var(--f-gold);font-variant-numeric:tabular-nums}
.fme .fme-progress{height:6px;border-radius:6px;background:var(--f-line);overflow:hidden}
.fme .fme-progress span{display:block;height:100%;width:0;background:var(--f-gold);transition:width .2s}
.fme .fme-colors{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.fme .fme-color{min-height:58px;border-radius:14px;border:2px solid transparent;font-weight:700;color:#14161A}
.fme .fme-color small{display:block;font-weight:500;opacity:.7;font-size:.72rem}
.fme .fme-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,92px));gap:10px;justify-content:center;margin-top:14px;direction:ltr}
.fme .fme-key{min-height:58px;border-radius:14px;border:1px solid var(--f-line);background:rgba(199,193,165,.08);color:var(--f-ivory);font-size:1.4rem;font-weight:600}
.fme .fme-key.act{background:transparent;color:var(--f-gold);border-color:var(--f-gold);font-size:1rem}
.fme .fme-entry{font-size:2.2rem;letter-spacing:.3em;min-height:1.6em;color:var(--f-ivory);direction:ltr;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--f-gold);padding:0 12px}
.fme .fme-shape{width:150px;height:150px}
.fme .fme-shape.go{border-radius:50%;background:var(--f-gold)}
.fme .fme-shape.nogo{border-radius:14px;background:var(--f-red)}
.fme .fme-tapzone{width:100%;min-height:240px;border-radius:18px;border:1px dashed var(--f-line);background:transparent;color:var(--f-muted);display:grid;place-items:center}
.fme .fme-feedback{min-height:1.6em;font-weight:600;text-align:center}
.fme .fme-feedback.ok{color:var(--f-green)}.fme .fme-feedback.no{color:var(--f-red)}
.fme .fme-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:18px 0}
.fme .fme-stat{border:1px solid var(--f-line);border-radius:14px;padding:14px;text-align:center}
.fme .fme-stat b{display:block;font-size:1.8rem;color:var(--f-gold);font-variant-numeric:tabular-nums}
.fme .fme-stat span{font-size:.85rem;color:var(--f-muted)}
.fme .fme-note{border-inline-start:3px solid var(--f-gold);padding:10px 16px;margin:16px 0;background:rgba(199,193,165,.06);border-radius:0 12px 12px 0}
.fme[dir=rtl] .fme-note{border-radius:12px 0 0 12px}
.fme .fme-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.fme .fme-fine{font-size:.82rem;color:var(--f-muted);margin-top:26px;border-top:1px solid var(--f-line);padding-top:14px}
.fme .fme-hide{display:none!important}
@media (max-width:520px){.fme .fme-colors{grid-template-columns:repeat(2,1fr)}.fme .fme-card .fme-btn{align-self:stretch}}
@media (prefers-reduced-motion:reduce){.fme *{transition:none!important}}
/* Colour words and shapes always sit on a dark panel so every ink colour stays readable on light site themes */
.fme .fme-arena.dark,.fme .fme-tapzone{background:#14161A;border-radius:18px;color:#A29D8C}
.fme a.fme-btn{text-decoration:none;color:#14161A}
.fme a.fme-btn:hover{filter:brightness(1.06)}
.fme{scroll-margin-top:120px}
.fme .fme-shape.go{background:#C7C1A5}
