/* =========================================================
   من سيربح التيلفون | تنسيقات المسابقة
   الهوية المشتركة في ../assets/athar.css
   ========================================================= */

/* ---------- أساسيات ---------- */
*{box-sizing:border-box; margin:0; padding:0;}
html{-webkit-text-size-adjust:100%;}
body{
  --ok:#1FA971; --bad:#E8554E;
  min-height:100vh; min-height:100dvh;
  background:var(--bg-paint); background-attachment:fixed;
  color:var(--text);
  font-family:"Thmanyah Sans","IBM Plex Sans Arabic",system-ui,sans-serif;
  font-weight:500; font-size:16px; line-height:1.7;
  display:flex; flex-direction:column; overflow-x:hidden;
}
h1,h2,h3,h4,strong,b{font-weight:700;}
button,input{font:inherit; color:inherit;}
button{cursor:pointer; -webkit-tap-highlight-color:transparent;}
[hidden]{display:none !important;}
:focus-visible{outline:3px solid var(--hl); outline-offset:2px;}
.muted{color:var(--text-2); font-size:.86rem;}

/* ---------- الشريط العلوي ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px clamp(14px,3vw,28px); border-bottom:1px solid var(--line);
}
.brand{display:flex; align-items:center; gap:10px; min-width:0; text-decoration:none; color:inherit;}
.brand .logo{height:52px; width:auto; flex:none;}
.brand-text{display:flex; flex-direction:column; min-width:0; line-height:1.35;}
.brand-text strong{font-size:1.15rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.brand-text small{color:var(--text-2); font-size:.8rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.top-tools{display:flex; align-items:center; gap:8px; flex:none;}

.icon-btn{
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line);
  transition:transform .15s ease, background .2s ease;
}
.icon-btn:hover{background:var(--surface-2);}
.icon-btn:active{transform:scale(.92);}
.icon-btn svg{width:22px; height:22px; fill:var(--text);}
.icon-btn .wave{stroke:var(--text);}
.icon-btn .ico-off{display:none;}
.icon-btn[aria-pressed="false"] .ico-on{display:none;}
.icon-btn[aria-pressed="false"] .ico-off{display:block; opacity:.6;}

/* ---------- الأزرار ---------- */
.btn{
  min-height:48px; padding:10px 20px;
  border-radius:14px; border:1px solid var(--line);
  background:var(--surface); color:var(--text);
  font-weight:700; font-size:1rem;
  transition:transform .15s ease, background .2s ease, filter .2s ease, opacity .2s;
}
.btn:hover{background:var(--surface-2); transform:translateY(-2px);}
.btn:active{transform:translateY(0) scale(.97);}
.btn-primary{background:var(--accent); color:var(--on-accent); border-color:transparent; box-shadow:0 8px 22px rgba(30,111,224,.28);}
.btn-primary:hover{background:var(--accent-hover);}
.btn-big{width:100%; min-height:58px; font-size:1.15rem; border-radius:18px;}
.btn-ghost{background:transparent; border-color:transparent; color:var(--text-2);}

/* ---------- الشاشات ---------- */
main{flex:1; padding:clamp(14px,3vw,28px);}
.screen{display:none;}
.screen.active{display:block; animation:screenIn .45s ease both;}
@keyframes screenIn{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;}}

/* ---------- ١) البداية ---------- */
.setup{max-width:640px; margin:0 auto;}
.setup-hero{text-align:center; margin-bottom:20px;}
.hero-logo{width:clamp(120px,22vw,170px); height:auto; margin:0 auto; animation:floaty 5s ease-in-out infinite;}
@keyframes floaty{50%{transform:translateY(-8px);}}
.setup-hero h1{font-size:clamp(2rem,7.5vw,3.2rem); line-height:1.35; overflow-wrap:anywhere;}
.lead{color:var(--text-2); font-size:clamp(1rem,2.4vw,1.15rem); max-width:44ch; margin:4px auto 0;}

.card{
  background:var(--surface); border:1px solid var(--line); border-radius:20px;
  padding:18px; margin-bottom:14px; box-shadow:var(--shadow);
}
.card-head{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px;}
.card-head h2{font-size:1.15rem;}

.field{display:block; margin-bottom:10px;}
.field:last-child{margin-bottom:0;}
.field span{display:block; font-size:.88rem; color:var(--text-2); margin-bottom:4px;}
input[type="text"]{
  width:100%; height:48px; padding:0 14px;
  border-radius:13px; border:1px solid var(--line);
  background:var(--solid); color:var(--text); font-weight:700;
}
input[type="text"]::placeholder{color:var(--text-2); opacity:.6; font-weight:500;}

.counts{display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin-bottom:12px;}
.chip{
  min-height:46px; border-radius:13px; border:1px solid var(--line);
  background:var(--solid); font-weight:700; font-size:1.1rem;
  transition:transform .15s ease, background .2s, color .2s;
}
.chip:hover{transform:translateY(-2px);}
.chip[aria-pressed="true"]{background:var(--accent); color:var(--on-accent); border-color:transparent;}

.team-inputs{display:flex; flex-direction:column; gap:8px;}
.team-row{display:flex; align-items:center; gap:8px; animation:screenIn .3s ease both;}
.team-no{
  flex:none; width:46px; height:46px; border-radius:13px;
  display:grid; place-items:center; background:var(--c); color:#fff;
  font-weight:700; font-size:1.15rem; border:2px solid rgba(255,255,255,.5);
}

.rules summary{font-weight:700; cursor:pointer; list-style-position:inside;}
.rules ul{margin-top:10px; padding-inline-start:20px; color:var(--text-2); font-size:.95rem;}
.rules li{margin-bottom:6px;}
.rules strong{color:var(--text);}

.home-link{display:block; width:max-content; margin:12px auto 0; color:var(--text-2); font-weight:700; text-decoration:none; padding:6px 10px; border-radius:10px;}
.home-link:hover{background:var(--surface);}

/* ---------- ٢) الاستوديو ---------- */
.game{max-width:1180px; margin:0 auto; display:flex; flex-direction:column; gap:14px;}

.hostbar{
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--line); border-radius:22px;
  padding:14px 18px; box-shadow:var(--shadow);
}
.mic{
  flex:none; width:54px; height:54px; border-radius:16px;
  display:grid; place-items:center; background:var(--accent);
}
.mic svg{width:28px; height:28px; fill:var(--on-accent); stroke:var(--on-accent);}
.host-text{flex:1; min-width:0;}
.host-text strong{display:block; font-size:1.05rem;}
.host-text p{color:var(--text-2); font-size:.95rem;}
.round-pill{
  flex:none; padding:6px 14px; border-radius:999px;
  background:var(--surface-2); border:1px solid var(--line); font-size:.9rem; white-space:nowrap;
}
.round-pill b{font-size:1.15rem;}

.desks{display:grid; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); gap:12px;}
.desk{
  position:relative; text-align:start;
  background:var(--surface); border:1px solid var(--line); border-top:8px solid var(--c);
  border-radius:20px; padding:12px 14px 14px;
  opacity:.78;
  transition:transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s ease, opacity .3s ease;
}
.desk:hover{opacity:1;}
.desk.active{opacity:1; transform:translateY(-5px); box-shadow:0 0 0 3px var(--c), var(--shadow); animation:deskIn .5s cubic-bezier(.3,1.6,.5,1);}
@keyframes deskIn{0%{transform:translateY(6px) scale(.96);} 100%{transform:translateY(-5px);}}
.desk-top{display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:26px;}
.desk-no{font-size:.78rem; color:var(--text-2);}
.desk-live{
  display:none; font-size:.72rem; font-weight:700; color:#fff;
  background:var(--c); padding:1px 10px; border-radius:999px;
  animation:live 1.2s ease-in-out infinite alternate;
}
.desk.active .desk-live{display:inline-block;}
@keyframes live{to{opacity:.55;}}
.desk-name{font-size:1.1rem; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.desk-score{font-size:2rem; font-weight:700; line-height:1.3;}
.desk-score small{font-size:.8rem; font-weight:500; color:var(--text-2); margin-inline-start:4px;}
.desk-score.bump{animation:bump .5s cubic-bezier(.3,1.6,.5,1);}
@keyframes bump{40%{transform:scale(1.25);}}
.desk-meta{display:flex; flex-direction:column; font-size:.82rem; color:var(--text-2); border-top:1px solid var(--line); margin-top:6px; padding-top:6px;}
.desk-meta b{color:var(--text);}
.hint{text-align:center; font-size:.85rem; color:var(--text-2); margin-top:-4px;}

.panels{display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:14px; align-items:start;}
.panel{
  background:var(--surface); border:1px solid var(--line); border-radius:22px;
  padding:clamp(14px,2.4vw,24px); box-shadow:var(--shadow);
}
.panel h3{font-size:1.1rem;}

.value-row{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.value-row > span{font-weight:700;}
.stepper{display:flex; align-items:center; gap:8px; background:var(--solid); border:1px solid var(--line); border-radius:14px; padding:6px;}
.stepper output{min-width:4.2ch; text-align:center; font-weight:700; font-size:1.6rem; line-height:1.2;}
.step-btn{
  width:40px; height:40px; border-radius:10px; border:1px solid var(--line);
  background:var(--surface); font-weight:700; font-size:1.3rem; line-height:1;
}
.step-btn:hover{background:var(--surface-2);}

.ladder{display:flex; flex-wrap:wrap; gap:6px;}
.rung{
  flex:1 0 auto; text-align:center; padding:2px 10px; border-radius:999px;
  background:var(--cell); color:var(--text-2); font-size:.85rem; font-weight:700;
  transition:background .3s ease, color .3s ease, transform .3s cubic-bezier(.3,1.6,.5,1);
}
.rung.done{background:color-mix(in srgb, var(--c) 30%, transparent); color:var(--text);}
.rung.now{background:var(--c); color:#fff; transform:scale(1.12);}
.ladder-note{margin-top:6px;}

.eval-title{text-align:center; font-size:clamp(1.3rem,3.6vw,1.7rem); margin:18px 0 12px; overflow-wrap:anywhere;}
.eval-title span{text-decoration:underline; text-decoration-color:var(--c); text-decoration-thickness:.14em; text-underline-offset:.2em;}
.eval{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.btn-correct,.btn-wrong{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-height:110px; border:none; color:#fff; font-size:1.2rem; border-radius:18px;
}
.btn-correct{background:var(--ok);}
.btn-wrong{background:var(--bad);}
.btn-correct:hover{background:var(--ok); filter:brightness(1.08);}
.btn-wrong:hover{background:var(--bad); filter:brightness(1.08);}
.eval svg{width:34px; height:34px; stroke:#fff;}
.eval small{font-weight:500; font-size:.8rem; opacity:.9;}

.lifelines{display:flex; flex-direction:column; gap:8px; margin:12px 0;}
.life{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  min-height:48px; padding:8px 14px; border-radius:14px;
  border:1px solid var(--line); background:var(--solid); font-weight:700; text-align:start;
  transition:transform .15s ease, opacity .2s;
}
.life:hover:not(:disabled){transform:translateY(-2px);}
.life em{font-style:normal; font-size:.75rem; padding:1px 10px; border-radius:999px; background:var(--accent); color:var(--on-accent); white-space:nowrap;}
.life:disabled{opacity:.5; cursor:not-allowed;}
.life:disabled em{background:var(--surface-2); color:var(--text-2);}
.audience-note{font-size:.88rem; color:var(--text-2); background:var(--surface-2); border-radius:12px; padding:8px 12px; margin-bottom:12px;}

.btn-bank{
  width:100%; display:flex; align-items:center; justify-content:center; gap:8px;
  border-color:var(--ok); color:var(--text); margin-bottom:6px;
}
.btn-bank svg{width:22px; height:22px; fill:var(--ok); stroke:var(--ok);}
.panel-side .btn-ghost{width:100%;}

/* ---------- ٣) الفوز ---------- */
#confetti{position:fixed; inset:0; width:100%; height:100%; pointer-events:none; z-index:5;}
.victory{position:relative; max-width:640px; margin:0 auto; text-align:center;}
.trophy{width:96px; height:96px; fill:var(--win,var(--accent)); stroke:var(--win,var(--accent)); filter:drop-shadow(0 8px 18px rgba(0,0,0,.2)); animation:floaty 2.4s ease-in-out infinite;}
.kicker{color:var(--text-2); font-weight:700; font-size:1.15rem;}
.victory h1{
  font-size:clamp(2.2rem,9vw,4rem); line-height:1.35; overflow-wrap:anywhere;
  text-decoration:underline; text-decoration-color:var(--win,var(--accent));
  text-decoration-thickness:.14em; text-underline-offset:.22em;
  animation:winnerIn .9s cubic-bezier(.2,1.7,.4,1) both;
}
@keyframes winnerIn{0%{opacity:0; transform:scale(.2) rotate(-12deg);} 100%{opacity:1; transform:none;}}
.victory .lead{margin:14px auto 22px;}
.final{display:flex; flex-direction:column; gap:8px; margin-bottom:22px; text-align:start;}
.final-row{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--line); border-inline-start:8px solid var(--c);
  border-radius:16px; padding:10px 14px; animation:screenIn .5s ease both;
}
.final-row.win{box-shadow:0 0 0 3px var(--c);}
.final-rank{font-weight:700; font-size:1.2rem; color:var(--text-2);}
.final-name{font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.final-pts{text-align:end; font-weight:700; font-size:1.25rem; line-height:1.3;}
.final-pts small{display:block; font-size:.72rem; font-weight:500; color:var(--text-2);}

/* ---------- النوافذ ---------- */
.modal{
  position:fixed; inset:0; z-index:80;
  display:grid; place-items:center; padding:20px;
  background:var(--scrim); backdrop-filter:blur(4px);
  animation:fade .2s ease both;
}
.modal-card{
  width:min(100%,440px); text-align:center;
  background:var(--solid); color:var(--text);
  border:1px solid var(--line); border-radius:24px; padding:26px 22px 22px;
  box-shadow:0 30px 60px rgba(0,0,0,.3);
  animation:modalIn .35s cubic-bezier(.3,1.5,.5,1) both;
}
.modal-icon{
  width:64px; height:64px; margin:0 auto 10px; border-radius:50%;
  display:grid; place-items:center; background:var(--surface-2);
}
.modal-icon svg{width:34px; height:34px; fill:none; stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;}
.modal-icon.ok{background:var(--ok);} .modal-icon.bad{background:var(--bad);}
.modal-icon.ok svg,.modal-icon.bad svg{stroke:#fff;}
.modal-card h3{font-size:1.4rem; line-height:1.5; margin-bottom:6px;}
.modal-card p{color:var(--text-2); margin-bottom:20px;}
.modal-card > .btn{width:100%;}
.modal-actions{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
@keyframes fade{from{opacity:0;}}
@keyframes modalIn{from{opacity:0; transform:scale(.85) translateY(20px);}}

/* =========================================================
   هوية «من سيربح التيلفون» الخاصة: استوديو مسابقة كلاسيكي، والجائزة تيلفون أبو قرص
   بنفسجي ملكي وذهبي، دوائر أرضية الاستوديو، سُلّم نقاط بشكل أشرطة إشارة
   ========================================================= */
:root,[data-theme="light"]{
  --royal:#6D28D9; --royal-2:#8B5CF6; --royal-glow:rgba(139,92,246,.24); --ring:rgba(109,40,217,.09);
  --gold:#F5B820; --gold-deep:#B7791F; --gold-ink:#0A2463;
  --press:#C6D8F1; --press-accent:#0F4FB0; --pattern:.05;
}
[data-theme="navy"]{--royal-glow:rgba(167,139,250,.26); --ring:rgba(196,181,253,.10); --press:rgba(0,0,0,.4); --press-accent:#4C9FD8; --pattern:.06;}
[data-theme="blue"]{--royal-glow:rgba(255,255,255,.2); --ring:rgba(255,255,255,.12); --press:rgba(10,36,99,.32); --press-accent:#9CCBF3; --pattern:.08;}

/* ---------- الاستوديو ---------- */
html,body{overflow-x:clip;}
body{background:transparent;}
.topbar, main{position:relative; z-index:1;}

/* ---------- خلفية «أضواء الاستوديو»: مسرح من الأعلى، حزمتا ضوء، أرضية متوهجة، وأشكال الهاتف عائمة ---------- */
.studio-bg{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; color:var(--deco);}
:root,[data-theme="light"]{--deco:#6D28D9; --deco-op:.13; --beam:rgba(139,92,246,.30); --beam-2:rgba(245,184,32,.30); --floor:rgba(139,92,246,.30); --stage:#EADFFF;}
[data-theme="navy"]{--deco:#C4B5FD; --deco-op:.17; --beam:rgba(167,139,250,.34); --beam-2:rgba(245,184,32,.24); --floor:rgba(139,92,246,.5); --stage:#241670;}
[data-theme="blue"]{--deco:#FFFFFF; --deco-op:.2; --beam:rgba(255,255,255,.3); --beam-2:rgba(252,211,77,.34); --floor:rgba(255,255,255,.3); --stage:#4B5FE0;}
.studio-bg i{position:absolute; display:none;}
.studio-bg .shapes{position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; opacity:var(--deco-op);}
.studio-bg .fl{transform-box:fill-box; transform-origin:center; animation:drift 9s ease-in-out infinite;}
.studio-bg .f2{animation-duration:11s; animation-delay:-3s;} .studio-bg .f3{animation-duration:13s; animation-delay:-6s;} .studio-bg .f4{animation-duration:10s; animation-delay:-2s;}
@keyframes drift{50%{transform:translateY(-16px) rotate(3deg);}}

html{background-color:var(--bg); background:linear-gradient(180deg, var(--stage), transparent 55%), var(--bg-paint); background-attachment:fixed;}
.studio-bg .beam{display:block; top:-10vh; width:42vw; height:120vh; filter:blur(2px);}
.studio-bg .b1{left:4vw; background:linear-gradient(180deg, var(--beam), transparent 85%); clip-path:polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform:rotate(-18deg); transform-origin:50% 0; animation:sweep 9s ease-in-out infinite alternate;}
.studio-bg .b2{right:4vw; background:linear-gradient(180deg, var(--beam-2), transparent 85%); clip-path:polygon(40% 0, 60% 0, 100% 100%, 0 100%); transform:rotate(18deg); transform-origin:50% 0; animation:sweep2 11s ease-in-out infinite alternate;}
@keyframes sweep{to{transform:rotate(-8deg);}} @keyframes sweep2{to{transform:rotate(8deg);}}
/* ---------- المسرح بالأسفل ---------- */
:root,[data-theme="light"]{--stage-top:#E4D8FF; --stage-top-2:#C4B0F7; --stage-ring:rgba(109,40,217,.16); --stage-edge:#4C1D95; --stage-edge-2:#2E1065;}
[data-theme="navy"]{--stage-top:#3B1E8F; --stage-top-2:#24125F; --stage-ring:rgba(196,181,253,.18); --stage-edge:#1C0D4A; --stage-edge-2:#0E0630;}
[data-theme="blue"]{--stage-top:#6D5BF0; --stage-top-2:#4A3BCB; --stage-ring:rgba(255,255,255,.2); --stage-edge:#2E1E8A; --stage-edge-2:#1A0F5C;}
.stage-floor{position:relative; z-index:1; flex:none; height:clamp(96px,18vh,180px); overflow:hidden; pointer-events:none; margin-top:8px;}
.stage-floor > span{position:absolute; left:-12vw; right:-12vw; display:block;}
/* سطح المسرح: قوس عريض بدوائر متحدة المركز ولمعة */
.stage-top{
  top:0; bottom:26px; border-radius:50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 45%),
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 26px, var(--stage-ring) 26px 28px),
    linear-gradient(180deg, var(--stage-top), var(--stage-top-2));
  box-shadow:inset 0 3px 0 rgba(255,255,255,.4);
}
/* الحافة الأمامية بخط ذهبي وأضواء أرضية */
.stage-edge{
  bottom:0; height:26px;
  background:
    radial-gradient(circle at 50% 50%, #FFF3C4 0 3px, #F5B820 4px, rgba(245,184,32,.35) 6px, transparent 9px) 0 0 / 54px 26px repeat-x,
    linear-gradient(180deg, var(--stage-edge), var(--stage-edge-2));
  border-top:3px solid var(--gold);
}
/* توهّج الأضواء الأرضية للأعلى */
.stage-glow{
  bottom:26px; height:70px;
  background:repeating-linear-gradient(90deg, rgba(245,184,32,.28) 0 2px, transparent 2px 54px);
  -webkit-mask:linear-gradient(0deg, #000, transparent); mask:linear-gradient(0deg, #000, transparent);
  filter:blur(6px); opacity:.8; animation:footGlow 3s ease-in-out infinite alternate;
}
@keyframes footGlow{to{opacity:.45;}}

/* ---------- إطفاء الأنوار ---------- */
html[data-lights="off"] .studio-bg .beam,
html[data-lights="off"] .stage-glow{display:none;}
html[data-lights="off"] .stage-edge{background:
    radial-gradient(circle at 50% 50%, #8C7A3C 0 3px, transparent 4px) 0 0 / 54px 26px repeat-x,
    linear-gradient(180deg, var(--stage-edge), var(--stage-edge-2));}
html[data-lights="off"] .studio-bg .fl{animation:none;}
.lights-btn svg{width:26px; height:26px;}
.lights-btn .lamp{fill:var(--text); stroke:var(--text); stroke-width:1.2; stroke-linejoin:round;}
.lights-btn .slash{fill:none; stroke:var(--text); stroke-width:2.2; stroke-linecap:round; opacity:0;}
.lights-btn[aria-pressed="false"] .slash{opacity:.75;}
.lights-btn .stand{fill:none; stroke:var(--text); stroke-width:2; stroke-linecap:round;}
.lights-btn .ray{fill:var(--gold); opacity:.85;}
.lights-btn[aria-pressed="false"] .lamp{fill:none; opacity:.6;}
.lights-btn[aria-pressed="false"] .stand{opacity:.6;}
.lights-btn[aria-pressed="false"] .ray{fill:none; stroke:var(--text); stroke-width:1.2; stroke-dasharray:2 2; opacity:.5;}

.studio-bg .shapes{display:block;}

/* ---------- الهاتف أبو قرص (البطل، الفوز، الرئيسية) ---------- */
.phone{--phone:var(--royal); overflow:visible;}
.phone .ph-shadow{fill:var(--text); opacity:.14;}
.phone .ph-body{fill:var(--phone);}
.phone .ph-dark{fill:color-mix(in srgb, var(--phone) 72%, #000);}
.phone .ph-shine{fill:#fff; opacity:.18;}
.phone .ph-dial{fill:var(--gold); stroke:var(--gold-deep); stroke-width:2;}
.phone .ph-hole{fill:#FFF7DB; stroke:#C98A12; stroke-width:1.2;}
.phone .ph-center{fill:#fff;}
.phone .ph-stop{stroke:#fff; stroke-width:3.5; stroke-linecap:round;}
.phone .ph-cord circle{fill:none; stroke:color-mix(in srgb, var(--phone) 72%, #000); stroke-width:3;}
.phone .ph-waves path{fill:none; stroke:var(--gold); stroke-width:5; stroke-linecap:round; opacity:0;}
.phone .ph-handset{transform-origin:110px 64px; animation:ringing 2.8s ease-in-out infinite;}
.phone .ph-waves path{animation:waves 2.8s ease-out infinite;}
.phone .ph-waves path:nth-child(2n){animation-delay:.12s;}
@keyframes ringing{
  0%,42%,100%{transform:none;}
  3%{transform:translateY(-7px) rotate(-5deg);} 6%{transform:translateY(-7px) rotate(5deg);}
  9%{transform:translateY(-7px) rotate(-5deg);} 12%{transform:translateY(-7px) rotate(5deg);}
  15%{transform:translateY(-3px) rotate(0);}
  24%{transform:translateY(-7px) rotate(-5deg);} 27%{transform:translateY(-7px) rotate(5deg);}
  30%{transform:translateY(-7px) rotate(-5deg);} 33%{transform:translateY(-7px) rotate(5deg);}
  36%{transform:translateY(-3px) rotate(0);}
}
@keyframes waves{0%,100%{opacity:0;} 4%,12%,25%,33%{opacity:1;} 16%,38%{opacity:0;}}
.hero-phone{width:clamp(180px,34vw,240px); margin:0 auto -4px;}
.hero-phone svg{width:100%; height:auto; display:block;}

/* ---------- أزرار مجسّمة ---------- */
.btn{box-shadow:0 5px 0 var(--press); transition:transform .12s ease, box-shadow .12s ease, background .2s ease, filter .2s, opacity .2s;}
.btn:hover{transform:translateY(-1px);}
.btn:active{transform:translateY(5px); box-shadow:0 0 0 var(--press);}
.btn-primary{box-shadow:0 6px 0 var(--press-accent), 0 14px 24px rgba(10,36,99,.2);}
.btn-primary:active{transform:translateY(6px); box-shadow:0 0 0 var(--press-accent);}
.btn-ghost{box-shadow:none;}
.btn-ghost:active{transform:scale(.97); box-shadow:none;}
.chip{box-shadow:0 4px 0 var(--press); transition:transform .12s ease, box-shadow .12s ease, background .2s, color .2s;}
.chip:active{transform:translateY(4px); box-shadow:none;}
.chip[aria-pressed="true"]{box-shadow:0 4px 0 var(--press-accent);}
.team-no{box-shadow:0 4px 0 color-mix(in srgb, var(--c) 62%, #000);}
.step-btn{box-shadow:0 3px 0 var(--press);}
.step-btn:active{transform:translateY(3px); box-shadow:none;}

.btn-correct{box-shadow:0 7px 0 #137A50, 0 14px 26px rgba(31,169,113,.3);}
.btn-wrong{box-shadow:0 7px 0 #B23A34, 0 14px 26px rgba(232,85,78,.3);}
.btn-correct:active,.btn-wrong:active{transform:translateY(7px); box-shadow:none;}

/* الخزينة ذهبية */
.btn-bank{background:linear-gradient(180deg,#FCD34D,var(--gold)); color:var(--gold-ink); border:none; box-shadow:0 5px 0 var(--gold-deep), 0 12px 22px rgba(245,184,32,.3);}
.btn-bank:hover{background:linear-gradient(180deg,#FDE68A,var(--gold));}
.btn-bank:active{box-shadow:0 0 0 var(--gold-deep);}
.btn-bank svg{fill:var(--gold-ink); stroke:var(--gold-ink);}

/* ---------- طاولة المقدّم: مايك «على الهواء» ---------- */
.mic{position:relative; background:linear-gradient(160deg,var(--royal-2),var(--royal));}
.mic::after{content:""; position:absolute; inset:-5px; border-radius:20px; border:2px solid var(--royal-2); opacity:0; animation:onAir 2s ease-out infinite;}
@keyframes onAir{0%{transform:scale(.9); opacity:.8;} 100%{transform:scale(1.25); opacity:0;}}
.round-pill{border-color:var(--gold); box-shadow:0 3px 0 var(--gold-deep);}

/* طاولات الفرق مجسّمة */
.desk{box-shadow:0 5px 0 var(--press);}
.desk.active{box-shadow:0 0 0 3px var(--c), 0 7px 0 color-mix(in srgb, var(--c) 60%, #000), 0 0 40px color-mix(in srgb, var(--c) 30%, transparent);}

/* ---------- سُلّم النقاط: أشرطة إشارة ---------- */
.ladder{
  position:relative; display:flex; flex-wrap:nowrap; align-items:flex-end; gap:6px;
  height:124px; padding:6px 2px 0; border-bottom:3px solid var(--line);
}
.rung{
  flex:1 1 0; min-width:0; height:calc(30px + var(--i,0) * 10.5px);
  display:flex; align-items:flex-start; justify-content:center; padding:6px 0 0;
  border-radius:10px 10px 3px 3px; font-size:.8rem; white-space:nowrap; overflow:hidden;
  transform-origin:50% 100%;
}
.rung.now{transform:none; box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent), 0 0 24px color-mix(in srgb, var(--c) 55%, transparent);}
.rung.done{background:color-mix(in srgb, var(--c) 45%, transparent);}
/* إجابة صحيحة: الإشارة تقوى بالتتابع */
.ladder.surge .rung.done,.ladder.surge .rung.now{animation:surge .55s cubic-bezier(.3,1.5,.5,1) both; animation-delay:calc(var(--i,0) * 70ms);}
@keyframes surge{0%{transform:scaleY(.3); filter:brightness(1.6);} 70%{transform:scaleY(1.08); filter:brightness(1.3);} 100%{transform:none; filter:none;}}
/* إجابة خاطئة: انقطع الخط */
.ladder.cut .rung{animation:cut .9s steps(1,end) both; animation-delay:calc((8 - var(--i,0)) * 35ms);}
@keyframes cut{0%{opacity:1;} 15%{opacity:.15; transform:scaleY(.25);} 30%{opacity:.8;} 45%{opacity:.1;} 60%{opacity:.7; transform:scaleY(.6);} 100%{opacity:1; transform:none;}}
.ladder.cut::after{
  content:"انقطع الخط"; position:absolute; inset:0; display:grid; place-items:center;
  font-weight:700; font-size:1.3rem; color:#fff; text-shadow:0 2px 6px rgba(0,0,0,.4);
  background:repeating-linear-gradient(0deg, rgba(232,85,78,.55) 0 3px, rgba(10,36,99,.35) 3px 6px);
  border-radius:12px; animation:static 1.1s ease forwards;
}
@keyframes static{0%,70%{opacity:1;} 100%{opacity:0;}}

/* ---------- وسائل المساعدة: أشرطة الإجابات المدببة ---------- */
.life{
  position:relative; isolation:isolate; border:none; border-radius:0;
  padding:8px 28px; min-height:50px;
  background:linear-gradient(90deg, var(--gold-deep), var(--gold), #FCD34D, var(--gold), var(--gold-deep));
  clip-path:polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
}
.life::before{
  content:""; position:absolute; inset:2.5px; z-index:-1; background:var(--solid);
  clip-path:polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
}
.life:hover:not(:disabled)::before{background:color-mix(in srgb, var(--royal-2) 16%, var(--solid));}
.life:active:not(:disabled){transform:scale(.97);}
.life:disabled{background:var(--line); opacity:.6;}
.life em{background:var(--royal); color:#fff;}

/* ---------- الفوز: تيلفون الجائزة بلون الفريق يرن ---------- */
.trophy{width:clamp(170px,30vw,220px); height:auto; fill:initial; stroke:none; filter:drop-shadow(0 10px 18px rgba(0,0,0,.2)); animation:prizeIn .9s cubic-bezier(.3,1.5,.5,1) both;}
.trophy.phone{--phone:var(--win,var(--royal));}
@keyframes prizeIn{0%{transform:scale(.3) rotate(-14deg); opacity:0;} 100%{transform:none; opacity:1;}}

/* ---------- أشرطة الصوت المتمايلة ---------- */
.snd .bars{display:flex; align-items:center; gap:3px; height:20px;}
.snd .bars i{width:3.5px; height:100%; border-radius:3px; background:var(--text); transform-origin:50% 100%; transform:scaleY(.35);}
.snd[aria-pressed="true"] .bars i{animation:eq 1s ease-in-out infinite;}
.snd[aria-pressed="true"] .bars i:nth-child(2){animation-delay:-.35s; animation-duration:.8s;}
.snd[aria-pressed="true"] .bars i:nth-child(3){animation-delay:-.6s; animation-duration:1.15s;}
.snd[aria-pressed="true"] .bars i:nth-child(4){animation-delay:-.2s; animation-duration:.9s;}
@keyframes eq{0%,100%{transform:scaleY(.3);} 50%{transform:scaleY(1);}}
.snd[aria-pressed="false"] .bars{position:relative; opacity:.5;}
.snd[aria-pressed="false"] .bars i{transform:scaleY(.22);}
.snd[aria-pressed="false"] .bars::after{content:""; position:absolute; left:-3px; right:-3px; top:50%; height:2.5px; border-radius:2px; background:var(--text); transform:rotate(-38deg);}

@media (max-width:600px){
  .ladder{gap:3px; height:108px;}
  .rung{font-size:.62rem; height:calc(26px + var(--i,0) * 9px); border-radius:7px 7px 2px 2px;}
  .life{padding:8px 24px;}
}

/* ---------- التجاوب ---------- */
@media (max-width:860px){
  .panels{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:600px){
  .brand .logo{height:44px;}
  .brand-text strong{font-size:1rem;}
  .theme-dot{width:26px; height:26px;}
  .icon-btn{width:38px; height:38px;}
  .hostbar{flex-wrap:wrap; padding:12px 14px;}
  .mic{width:44px; height:44px; border-radius:13px;}
  .round-pill{margin-inline-start:auto;}
  .host-text{flex-basis:calc(100% - 60px);}
  .desks{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px;}
  .desk{padding:10px 12px 12px;}
  .desk-score{font-size:1.6rem;}
  .btn-correct,.btn-wrong{min-height:96px; font-size:1.05rem;}
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important;}
}

/* سؤال ديوان على طاولة التقييم */
.tq{margin:4px 0 16px; padding:14px; border-radius:18px; background:var(--surface); border:1px solid var(--line); border-top:5px solid var(--c);}
.tq-head{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:4px;}
.tq-cat{font-size:.8rem; color:var(--text-2); background:var(--surface-2); border-radius:999px; padding:1px 10px;}
.tq-text{font-size:clamp(1.2rem,3.2vw,1.7rem); line-height:1.6; margin-bottom:12px; overflow-wrap:anywhere;}
.tq .aq-opt.gone{visibility:hidden;}
