/* صالون المكياج (نوفمبر 2026) — كل الأسماء تبدأ بـ hn- حتى ما تتداخل مع باقي الموقع */
.hn{--ink:#3A1E10;--sub:#7A5136;--pink:#C2611F;--pink2:#F2C18E;--lilac:#E9A23B;--cream:#FFF8EF;--line:#F1DCC2;
    position:relative;max-width:980px;margin:0 auto;direction:rtl;padding-bottom:112px;color:var(--ink);-webkit-tap-highlight-color:transparent}
.hn [hidden]{display:none!important}
.hn button{font-family:inherit;-webkit-user-select:none;user-select:none}

/* الشاشات */
.hn-panel{position:relative;max-width:560px;margin:0 auto;border-radius:26px;padding:22px 16px 26px;text-align:center;overflow:hidden;
    background:radial-gradient(120% 80% at 50% 0%,#FFFFFF 0%,#FDEBD3 55%,#F3D2AE 100%);box-shadow:0 14px 34px rgba(140,70,20,.16)}
.hn-hero{width:190px;height:190px;margin:0 auto 4px}
.hn-hero svg{width:100%;height:100%;display:block}
.hn-title{font-size:36px;font-weight:900;margin:0;color:#8A3412;letter-spacing:.3px}
.hn-tag{margin:4px auto 16px;color:var(--sub);font-weight:800;font-size:15px;max-width:340px;line-height:1.7}
.hn-btn{display:block;width:100%;max-width:330px;margin:0 auto 10px;border:0;border-radius:16px;padding:14px 10px;font-weight:900;font-size:17px;cursor:pointer;color:var(--ink);background:#fff;box-shadow:0 3px 0 #E7C9A6}
.hn-btn:active{transform:translateY(2px);box-shadow:0 1px 0 #E7C9A6}
.hn-main{color:#fff;background:linear-gradient(180deg,#E0843A,#B4532A);box-shadow:0 5px 0 #7E3514,0 10px 18px rgba(126,53,20,.25);font-size:19px;padding:16px 10px}
.hn-main:active{box-shadow:0 2px 0 #7E3514}
.hn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:330px;margin:0 auto 10px}
.hn-row .hn-btn{margin:0;font-size:15px}
.hn-link{border:0;background:none;color:#7E3514;font-weight:900;font-size:15px;cursor:pointer;padding:8px;text-decoration:underline;text-underline-offset:4px}
.hn-bestline{margin:6px 0 4px;font-weight:800;color:var(--sub);font-size:14px;min-height:20px}
.hn-corner{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:14px;background:rgba(255,255,255,.85);font-size:20px;cursor:pointer;box-shadow:0 2px 0 #E7C9A6;z-index:2}
.hn-h{font-size:24px;font-weight:900;margin:4px 0 14px;color:#8A3412}
.hn-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:460px;margin:0 auto 8px}
.hn-lv{position:relative;border:0;border-radius:18px;padding:10px 4px 8px;cursor:pointer;background:#fff;box-shadow:0 3px 0 #E7C9A6;text-align:center;color:var(--ink)}
.hn-lv .face{display:block;width:64px;height:64px;margin:0 auto;border-radius:50%;overflow:hidden;background:#FDEBD3}
.hn-lv .face svg{display:block;width:100%;height:100%}
.hn-lv b{display:block;font-size:14px;font-weight:900;margin-top:2px}
.hn-lv small{display:block;font-size:14px;letter-spacing:1px;color:#E9A23B;min-height:17px}
.hn-lv.next{box-shadow:0 0 0 3px #E0843A,0 3px 0 #E7C9A6}
.hn-lv:disabled{background:rgba(255,255,255,.5);cursor:default;color:#A8927E}
.hn-lv:disabled .face{filter:grayscale(1);opacity:.45}

/* ساحة اللعب */
.hn-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-areas:"hud" "order" "scene" "tools";gap:8px;padding:8px;border-radius:24px;
    background:linear-gradient(180deg,#FCEFDF,#F5DFC4);box-shadow:0 14px 34px rgba(140,70,20,.16);height:min(860px,calc(100vh - 120px));min-height:600px}
.hn-hud{grid-area:hud;display:flex;align-items:center;gap:8px;padding-left:52px}
.hn-order{grid-area:order}.hn-scene{grid-area:scene}.hn-tools{grid-area:tools}
.hn-ico{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:14px;background:#fff;font-size:19px;cursor:pointer;box-shadow:0 2px 0 #E3C29E}
.hn-mid{flex:1;min-width:0;text-align:center;line-height:1.25}
.hn-mid b{display:block;font-size:16px;font-weight:900;color:#8A3412;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hn-mid small{display:block;font-size:12px;font-weight:800;color:var(--sub);min-height:15px}
.hn-time{min-width:58px;text-align:center;background:#fff;border-radius:14px;padding:8px 6px;font-weight:900;font-size:15px;font-variant-numeric:tabular-nums;box-shadow:0 2px 0 #E3C29E;direction:ltr}
.hn-order{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;background:#fff;border-radius:16px;padding:7px 8px;box-shadow:0 2px 0 #E3C29E}
.hn-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 10px 4px 8px;background:#FFF4E8;border:2px solid #EFD2B0;font-size:13px;font-weight:900;color:var(--ink);line-height:1.3}
.hn-chip i{display:inline-block;width:14px;height:14px;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.18);flex:0 0 14px}
.hn-chip.ok{background:#E9FBEF;border-color:#7ED39A;color:#14532D}
.hn-chip.ok::after{content:'✓';font-weight:900;color:#15803D}
.hn-scene{position:relative;min-height:0;border-radius:20px;overflow:hidden;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
    background:radial-gradient(90% 80% at 50% 40%,#FFFFFF 0%,#FFF1E0 60%,#F4DDC0 100%)}
#hn-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
#hn-svg .hn-noop{transform-box:fill-box;transform-origin:50% 60%;animation:hn-noop 5.5s infinite}
@keyframes hn-noop{0%,95%,100%{transform:scaleY(1)}97.5%{transform:scaleY(.12)}}
.hn-scene.sponge{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ctext y='34' font-size='34'%3E%F0%9F%A7%BD%3C/text%3E%3C/svg%3E") 22 22,pointer}
.hn-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.hn-brush{position:absolute;font-size:34px;line-height:1;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 4px rgba(0,0,0,.2));will-change:transform,left,top}
.hn-spark{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#fff;box-shadow:0 0 8px 3px rgba(255,230,190,.95);animation:hn-spark .7s ease-out forwards}
.hn-spark.star{width:auto;height:auto;background:none;box-shadow:none;font-size:16px;margin:-8px 0 0 -8px;color:#F59E0B}
@keyframes hn-spark{0%{transform:translate(0,0) scale(.4);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1.1);opacity:0}}
.hn-bub{position:absolute;border-radius:50%;border:2px solid rgba(255,255,255,.95);background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.95),rgba(186,230,253,.5) 60%,rgba(255,255,255,.1));animation:hn-bub .8s ease-out forwards}
@keyframes hn-bub{0%{transform:scale(.3);opacity:1}100%{transform:translateY(-40px) scale(1.2);opacity:0}}
.hn-toast{position:absolute;left:50%;top:10px;transform:translateX(-50%);background:rgba(58,30,16,.92);color:#fff;font-weight:900;font-size:15px;padding:8px 16px;border-radius:999px;white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis;animation:hn-toast 1.8s ease forwards}
@keyframes hn-toast{0%{opacity:0;transform:translate(-50%,-8px)}12%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0}}
.hn-say-bub{position:absolute;left:50%;top:6%;transform:translateX(-50%);background:#fff;color:var(--ink);border-radius:18px;padding:8px 14px;font-weight:900;font-size:16px;box-shadow:0 8px 18px rgba(0,0,0,.15);white-space:nowrap;animation:hn-pop .3s ease-out}
@keyframes hn-pop{0%{transform:translateX(-50%) scale(.6);opacity:0}100%{transform:translateX(-50%) scale(1);opacity:1}}

/* الأدوات */
.hn-tools{display:flex;flex-direction:column;gap:6px;min-width:0}
.hn-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 4px;scroll-snap-type:x proximity}
.hn-tabs::-webkit-scrollbar{display:none}
.hn-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:62px;border:0;border-radius:14px;padding:6px 8px;background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 2px 0 #E3C29E;scroll-snap-align:start}
.hn-tab span{font-size:21px;line-height:1.1}
.hn-tab b{font-size:12px;font-weight:900;white-space:nowrap}
.hn-tab.on{background:linear-gradient(180deg,#E0843A,#B4532A);color:#fff;box-shadow:0 3px 0 #7E3514}
.hn-pal{display:flex;gap:8px;overflow-x:auto;padding:6px 4px 8px;scrollbar-width:thin;min-height:66px;align-items:center;background:rgba(255,255,255,.6);border-radius:16px}
.hn-sw{flex:0 0 auto;position:relative;width:48px;height:48px;border-radius:50%;border:3px solid #fff;cursor:pointer;box-shadow:0 2px 6px rgba(110,60,20,.25);padding:0}
.hn-sw.on{box-shadow:0 0 0 3px #B4532A,0 2px 6px rgba(110,60,20,.25)}
.hn-sw.on::after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-weight:900;font-size:20px;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.hn-sw.none{background:#fff repeating-linear-gradient(45deg,transparent 0 6px,#F1DCC2 6px 8px)!important}
.hn-sw.none::before{content:'✕';position:absolute;inset:0;display:grid;place-items:center;color:#A0522D;font-weight:900;font-size:18px}
.hn-sw.none.on::after{content:''}
.hn-it{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;width:70px;border:0;border-radius:14px;padding:6px 2px 5px;background:#fff;cursor:pointer;color:var(--ink);box-shadow:0 2px 0 #E3C29E}
.hn-it svg{width:56px;height:34px;display:block}
.hn-it .em{font-size:26px;line-height:34px;height:34px}
.hn-it b{font-size:11.5px;font-weight:900;white-space:nowrap}
.hn-it.on{box-shadow:0 0 0 3px #B4532A,0 2px 0 #E3C29E;background:#FFF4E8}
.hn-pal-hint{font-size:13px;font-weight:800;color:var(--sub);padding:0 6px;white-space:nowrap}
.hn-acts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.hn-act{border:0;border-radius:14px;background:#fff;padding:6px 2px;font-size:20px;line-height:1.1;cursor:pointer;box-shadow:0 2px 0 #E3C29E;color:var(--ink)}
.hn-act small{display:block;font-size:11.5px;font-weight:900}
.hn-act:disabled{opacity:.45;cursor:default}
.hn-done{background:linear-gradient(180deg,#34D17A,#16A34A);color:#fff;box-shadow:0 3px 0 #0E7A35}
.hn.challenge .hn-acts{grid-template-columns:repeat(3,1fr)}

/* كمبيوتر: الأدوات على اليمين والوجه على اليسار */
@media (min-width:860px){
    .hn-stage{grid-template-columns:340px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);grid-template-areas:"hud hud" "order order" "tools scene";height:min(760px,calc(100vh - 110px))}
    .hn-tools{overflow:hidden}
    .hn-tabs{flex-wrap:wrap;overflow:visible}
    .hn-tab{min-width:0;flex:1 0 76px}
    .hn-pal{flex-wrap:wrap;overflow-y:auto;align-content:flex-start;flex:1;min-height:0}
}

/* ملء الشاشة على الجوال */
.game-focus-shell.is-focus .hn{padding-bottom:0}
.game-focus-shell.is-focus .hn-stage{height:100%!important;min-height:0;border-radius:0;padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))}

/* النوافذ */
.hn-modal{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(58,30,16,.45);border-radius:24px}
.game-focus-shell.is-focus .hn-modal{position:fixed;border-radius:0;z-index:100004}
.hn-card{width:100%;max-width:380px;max-height:100%;overflow-y:auto;background:#fff;border-radius:22px;padding:18px 16px 14px;text-align:center;box-shadow:0 20px 40px rgba(0,0,0,.25)}
.hn-card-h{font-size:21px;font-weight:900;color:#8A3412;margin:0 0 10px}
.hn-card-e{font-size:42px;line-height:1.1;margin-bottom:4px}
.hn-how{list-style:none;margin:0 0 12px;padding:0;text-align:right}
.hn-how li{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px;font-size:14.5px;line-height:1.7;font-weight:700}
.hn-how li span{font-size:22px;line-height:1.3}
.hn-intro-t{margin:0 0 6px;font-weight:900;color:var(--sub)}
.hn-intro-list{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}
.hn-intro-list .hn-chip{justify-content:flex-start;font-size:16px;padding:8px 12px;border-radius:14px}
.hn-intro-list .hn-chip i{width:20px;height:20px;flex-basis:20px}
.hn-stars{font-size:44px;letter-spacing:6px;line-height:1;margin:2px 0 6px}
.hn-stars i{font-style:normal;color:#A08B78}
.hn-stars i.on{color:#F5B301;text-shadow:0 2px 0 #C98A00}
.hn-say{font-size:19px;font-weight:900;margin:0 0 6px;line-height:1.6}
.hn-big{font-size:46px;font-weight:900;color:#B4532A;line-height:1.1}
.hn-sub2{font-size:13px;font-weight:800;color:var(--sub);margin-bottom:6px}
.hn-record{font-weight:900;color:#B45309;margin-bottom:6px}
.hn-stat{font-size:13.5px;font-weight:700;color:var(--sub);margin-bottom:12px;line-height:1.8}
.hn-photo-prev{min-height:220px;display:flex;align-items:center;justify-content:center;margin:0 0 12px;color:var(--sub);font-weight:800}
.hn-photo-prev img{display:block;max-width:100%;max-height:min(50vh,420px);border-radius:16px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.hn-note{font-size:12px;font-weight:700;color:var(--sub);margin:2px 0 4px}

@media (prefers-reduced-motion:reduce){.hn-spark,.hn-bub,.hn-toast{animation-duration:.01s}#hn-svg .hn-noop{animation:none}}

/* جوال: الطلبات أصغر عشان يبقى مكان للرسمة */
@media (max-width:859px){
    .hn-order{gap:4px;padding:5px 6px}
    .hn-order .hn-chip{font-size:12px;padding:2px 8px 2px 6px;border-width:1.5px}
    .hn-order .hn-chip i{width:11px;height:11px;flex-basis:11px}
    .hn-pal{min-height:60px;padding:4px 4px 6px}
    .hn-sw{width:42px;height:42px}
    .hn-it{width:64px}
}

/* ===== خاص بالحناء ===== */
.hn-scene{background:radial-gradient(90% 80% at 50% 40%,#FFFFFF 0%,#FFF1E0 60%,#F4DDC0 100%)}
.hn-scene::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:radial-gradient(circle at 8% 10%,rgba(107,142,35,.18) 0 22px,transparent 23px),radial-gradient(circle at 92% 88%,rgba(107,142,35,.16) 0 30px,transparent 31px)}
.hn[data-phase="draw"] .hn-scene{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M3 37 L13 19 L21 27 Z' fill='%235B3A22'/%3E%3Cpath d='M13 19 L31 3 L37 9 L21 27 Z' fill='%23D9A15B' stroke='%237E3514' stroke-width='1.5'/%3E%3C/svg%3E") 3 37,crosshair}
.hn-prog{grid-area:order;display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:7px 10px;box-shadow:0 2px 0 #E3C29E;font-weight:900;font-size:13px}
.hn-prog-track{flex:1;height:12px;border-radius:999px;background:#F6E6D2;overflow:hidden}
.hn-prog-bar{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#E0843A,#B4532A);transition:width .15s}
.hn-prog.ok .hn-prog-bar{background:linear-gradient(90deg,#34D17A,#16A34A)}
.hn-prog-t{min-width:76px;color:#8A3412;font-variant-numeric:tabular-nums}
.hn-prog-o{color:#B45309;font-size:12px;white-space:nowrap}
.hn-it svg{width:56px;height:34px}
.hn-mini{display:block;width:56px;height:40px;overflow:hidden;border-radius:10px;background:#FFF1E0}
.hn-mini svg{width:100%!important;height:100%!important}
.hn-lv .face{border-radius:16px;background:#FFF1E0}
.hn-intro-prev{width:150px;height:190px;margin:0 auto 10px;border-radius:18px;overflow:hidden;background:#FFF1E0;box-shadow:inset 0 0 0 2px #F1DCC2}
.hn-intro-prev svg{width:100%;height:100%;display:block}
.hn-hero{width:190px;height:210px}
.hn-phase{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center;padding:6px 4px 8px;background:rgba(255,255,255,.6);border-radius:16px;min-height:66px}
.hn-phase-h{width:100%;margin:0;text-align:center;font-weight:900;font-size:14px;color:#7A5136;line-height:1.6}
.hn-phase-h:empty{display:none}
.hn-pbtn{flex:1 1 140px;max-width:260px;border:0;border-radius:16px;padding:12px 10px;font-size:16px;font-weight:900;cursor:pointer;color:var(--ink);background:#fff;box-shadow:0 3px 0 #E3C29E;line-height:1.3}
.hn-pbtn small{display:block;font-size:11.5px;font-weight:800;color:var(--sub)}
.hn-pbtn.hn-main{color:#fff;background:linear-gradient(180deg,#E0843A,#B4532A);box-shadow:0 4px 0 #7E3514}
.hn-pbtn.hn-lemon.on{background:#FEF9C3;box-shadow:0 0 0 3px #EAB308,0 3px 0 #E3C29E}
.hn-pbtn.hn-back{flex:0 1 auto;background:none;box-shadow:none;color:#8A3412;text-decoration:underline;text-underline-offset:4px;font-size:14px}
.hn-pbtn:disabled{opacity:.55;cursor:default}
.hn-dry{width:100%;height:10px;border-radius:999px;background:#F6E6D2;overflow:hidden}
.hn-dry i{display:block;height:100%;width:0;background:linear-gradient(90deg,#BAE6FD,#38BDF8);transition:width 2.1s linear}
.hn-flake{position:absolute;width:6px;height:4px;margin:-2px 0 0 -3px;border-radius:2px;background:#4E3424;opacity:0;animation:hn-flake 1.1s ease-in forwards}
@keyframes hn-flake{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--r))}}
.hn-wind{position:absolute;right:-40px;font-size:26px;opacity:.75;animation:hn-wind 1.4s linear forwards}
@keyframes hn-wind{from{transform:translateX(0)}to{transform:translateX(calc(-100vw - 80px))}}
@media (prefers-reduced-motion:reduce){.hn-flake,.hn-wind{animation-duration:.01s}.hn-dry i{transition:none}}
