/* ==========================================================
   تحدّي العقول — visual system
   ========================================================== */
:root{
  --purple:#6D4AE0;
  --purple-600:#5B39CB;
  --purple-300:#A78BFA;
  --purple-050:#F1ECFF;
  --blue:#4FA9F5;
  --ink:#241B4B;
  --ink-soft:#6B6390;
  --cream:#F6F4FF;
  --white:#FFFFFF;
  --mint:#3ECF9A;
  --coral:#FF6B81;
  --gold:#F4C24C;
  --line:#E7E1FB;
  --r-lg:28px;
  --r-md:20px;
  --shadow-card:0 16px 40px -22px rgba(109,74,224,.55), 0 2px 0 rgba(255,255,255,.9) inset;
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}

html,body{margin:0;padding:0;}
html{-webkit-text-size-adjust:100%;}

body{
  min-height:100dvh;
  font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);
  background:radial-gradient(130% 90% at 50% -15%, #D6C9FF 0%, #EDE7FF 34%, #F6F4FF 62%, #FCFBFF 100%);
  background-attachment:fixed;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
  -webkit-user-select:none;
}

.halo{
  position:fixed;
  inset:-20% -20% auto -20%;
  height:60vh;
  background:radial-gradient(closest-side, rgba(185,167,255,.55), rgba(185,167,255,0));
  filter:blur(20px);
  pointer-events:none;
  z-index:0;
}

.app{
  position:relative;
  z-index:1;
  max-width:480px;
  margin:0 auto;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  padding:14px 16px 20px;
}

.screen{display:none;flex:1;flex-direction:column;min-height:0;}
.screen.is-active{display:flex;animation:screen-in .34s cubic-bezier(.22,.9,.3,1) both;}
@keyframes screen-in{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:none;}}

.muted{color:var(--ink-soft);}
.small{font-size:.82rem;}

/* ---------------- buttons ---------------- */
.btn-candy{
  position:relative;
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;min-height:60px;padding:16px 22px;
  border:0;border-radius:22px;cursor:pointer;
  font-family:'Cairo',sans-serif;font-weight:800;font-size:1.1rem;line-height:1.35;
  color:#fff;
  background:linear-gradient(180deg,#9174F2 0%,#6D4AE0 52%,#5B39CB 100%);
  box-shadow:0 6px 0 #3E2C9E, 0 16px 30px -16px rgba(109,74,224,.95), inset 0 2px 0 rgba(255,255,255,.5);
  transition:transform .12s ease, box-shadow .12s ease, filter .18s ease;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}
.btn-candy::after{
  content:'';position:absolute;inset:6px 16px auto;height:34%;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.45),rgba(255,255,255,0));
  pointer-events:none;
}
.btn-candy:active{transform:translateY(4px);box-shadow:0 2px 0 #3E2C9E,0 8px 16px -14px rgba(109,74,224,.95),inset 0 2px 0 rgba(255,255,255,.5);}
.btn-candy:disabled{opacity:.6;filter:grayscale(.25);cursor:default;}
.btn-candy:focus-visible,.btn-ghost:focus-visible,.btn-quiet:focus-visible,.btn-icon:focus-visible,.answer:focus-visible,.tile:focus-visible{
  outline:3px solid var(--blue);outline-offset:3px;
}
.btn-xl{min-height:66px;font-size:1.25rem;}

.btn-ghost{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;padding:12px 16px;width:100%;
  border:2px solid var(--line);border-radius:18px;cursor:pointer;
  background:#fff;color:var(--purple);
  font-family:'Cairo',sans-serif;font-weight:700;font-size:.98rem;
  box-shadow:0 6px 0 #EDE8FF, 0 10px 22px -18px rgba(109,74,224,.9);
  transition:transform .12s ease, box-shadow .12s ease, background .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn-ghost:active{transform:translateY(3px);box-shadow:0 2px 0 #EDE8FF;}
.btn-ghost:disabled{opacity:.5;cursor:default;}

.btn-quiet{
  border:0;background:none;color:var(--ink-soft);
  font-family:'Tajawal',sans-serif;font-weight:700;font-size:.88rem;
  padding:10px 14px;min-height:44px;cursor:pointer;border-radius:14px;
  transition:color .18s ease, background .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn-quiet:hover{background:rgba(109,74,224,.07);}
.btn-quiet:active{background:rgba(109,74,224,.13);}
.btn-quiet.is-danger{color:#D63C58;background:rgba(255,107,129,.14);}

.btn-icon{
  display:grid;place-items:center;
  width:44px;height:44px;flex:none;
  border:2px solid var(--line);border-radius:14px;
  background:#fff;color:var(--purple);cursor:pointer;
  box-shadow:0 4px 0 #EDE8FF;
  transition:transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color:transparent;
}
.btn-icon:active{transform:translateY(2px);box-shadow:0 2px 0 #EDE8FF;}

/* ---------------- chips ---------------- */
.chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:999px;
  background:#fff;color:var(--ink);
  font-weight:700;font-size:.86rem;
  box-shadow:0 8px 20px -14px rgba(109,74,224,.9), inset 0 0 0 1.5px var(--line);
  white-space:nowrap;
}
.chip b{color:var(--purple);font-weight:800;font-size:.95rem;}
.chip-ico{font-size:.9rem;line-height:1;}
.chip-mini .chip-ico{color:var(--gold);}

.score-chip{
  display:inline-flex;align-items:baseline;gap:5px;
  padding:8px 14px;border-radius:999px;
  background:linear-gradient(180deg,#F4EFFF,#EAE2FF);
  color:var(--purple);
  box-shadow:inset 0 0 0 1.5px #DCD2FA;
  font-weight:800;font-size:1rem;
  white-space:nowrap;
}
.score-chip span{font-size:.72rem;font-weight:700;color:var(--ink-soft);}
.score-chip.small{font-size:.9rem;padding:6px 11px;}

/* ---------------- home ---------------- */
.home-top{display:flex;align-items:center;justify-content:space-between;gap:8px;}

.home-hero{
  display:flex;flex-direction:column;align-items:center;
  gap:10px;margin-top:8px;
}
.owl-wrap{display:block;}
.owl-hero{width:132px;height:154px;filter:drop-shadow(0 18px 22px rgba(109,74,224,.28));}
.owl-svg{width:100%;height:100%;display:block;overflow:visible;}

.speech{
  position:relative;
  background:#fff;color:var(--ink);
  padding:9px 16px;border-radius:16px;
  font-size:.86rem;font-weight:500;
  box-shadow:0 10px 24px -18px rgba(36,27,75,.9), inset 0 0 0 1.5px var(--line);
  max-width:270px;text-align:center;
}
.speech b{color:var(--purple);}

.app-title{
  margin:12px 0 0;
  font-family:'Cairo',sans-serif;font-weight:900;
  font-size:clamp(2.35rem,10vw,3rem);
  line-height:1.15;
  text-align:center;
  color:var(--ink);
  text-shadow:0 3px 0 rgba(255,255,255,.9);
}
.app-title::after{
  content:'';display:block;
  width:78px;height:7px;margin:10px auto 0;border-radius:99px;
  background:linear-gradient(90deg,#6D4AE0,#4FA9F5);
}
.app-sub{
  margin:14px 4px 0;
  text-align:center;color:var(--ink-soft);
  font-size:.95rem;line-height:1.7;
}

.home-progress{margin:16px 2px 0;}
.bar{
  height:10px;border-radius:99px;background:#E9E3FC;overflow:hidden;
  box-shadow:inset 0 1px 2px rgba(36,27,75,.08);
}
.bar span{
  display:block;height:100%;width:0%;border-radius:99px;
  background:linear-gradient(90deg,#4FA9F5,#6D4AE0);
  transition:width .5s cubic-bezier(.22,.9,.3,1);
}
.home-progress .muted{margin-top:6px;text-align:center;}

#btn-start{margin-top:auto;}
.home-secondary{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  margin-top:12px;
}
#btn-reset{align-self:center;margin-top:6px;}

/* ---------------- owl animations ---------------- */
.owl-eyes{transform-box:fill-box;transform-origin:center;animation:blink 5.2s infinite;}
@keyframes blink{0%,93%,100%{transform:scaleY(1);}96%{transform:scaleY(.08);}}

.owl-svg{transform-box:fill-box;transform-origin:50% 90%;}
.owl-wrap.is-thinking .owl-svg{animation:owl-tilt 2.4s ease-in-out infinite;}
@keyframes owl-tilt{0%,100%{transform:rotate(-4deg);}50%{transform:rotate(4deg);}}

.owl-wrap.is-celebrate .owl-svg{animation:owl-hop .62s cubic-bezier(.3,1.4,.5,1) 2;}
@keyframes owl-hop{0%,100%{transform:translateY(0) scale(1);}35%{transform:translateY(-14px) scale(1.04,.96);}65%{transform:translateY(0) scale(.97,1.03);}}

.owl-wrap.is-sad .owl-svg{animation:owl-shake .5s ease;}
@keyframes owl-shake{0%,100%{transform:translateX(0) rotate(0);}25%{transform:translateX(-6px) rotate(-3deg);}75%{transform:translateX(6px) rotate(3deg);}}

/* ---------------- topbars ---------------- */
.topbar{
  display:flex;align-items:center;gap:10px;
  padding:2px 0 12px;
}
.topbar-title{
  font-family:'Cairo',sans-serif;font-weight:800;font-size:1.12rem;
  flex:1;text-align:center;
}

/* ---------------- map ---------------- */
.sky{
  position:relative;
  flex:1;min-height:390px;
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:background 1s ease, box-shadow 1s ease;
  background:linear-gradient(180deg,#C9B8FF 0%,#DCEBFF 64%,#F0F7FF 100%);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.75), 0 22px 44px -28px rgba(60,40,140,.65);
}
.sky.sky-2{background:linear-gradient(180deg,#8C77EE 0%,#93BAF5 56%,#D3E5FF 100%);}
.sky.sky-3{background:linear-gradient(180deg,#241A54 0%,#46379A 46%,#7C97DE 100%);}

.pattern{
  position:absolute;inset:0;opacity:.08;pointer-events:none;
  background-image:
    repeating-linear-gradient(45deg,#241B4B 0 1px,transparent 1px 34px),
    repeating-linear-gradient(-45deg,#241B4B 0 1px,transparent 1px 34px);
  -webkit-mask-image:radial-gradient(120% 90% at 50% 30%,#000 25%,transparent 80%);
  mask-image:radial-gradient(120% 90% at 50% 30%,#000 25%,transparent 80%);
}
.sky-3 .pattern{opacity:.05;}

.clouds{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.cloud{
  position:absolute;display:block;
  background:rgba(255,255,255,.8);
  filter:blur(16px);border-radius:999px;
}
.c1{width:130px;height:44px;top:14%;right:-40px;animation:drift 46s linear infinite;}
.c2{width:96px;height:34px;top:44%;right:-30px;animation:drift 62s linear infinite;animation-delay:-18s;opacity:.7;}
.c3{width:150px;height:50px;top:70%;right:-60px;animation:drift 78s linear infinite;animation-delay:-40s;opacity:.55;}
@keyframes drift{from{transform:translateX(0);}to{transform:translateX(-460px);}}
.sky-3 .cloud{opacity:.18;}

.sky-stars{position:absolute;inset:0;opacity:0;transition:opacity .9s ease;pointer-events:none;}
.sky.sky-3 .sky-stars{opacity:1;}
.sky-stars i{
  position:absolute;display:block;width:3px;height:3px;border-radius:50%;
  background:#fff;box-shadow:0 0 6px 1px rgba(255,255,255,.8);
  animation:twinkle 3.4s ease-in-out infinite;
}
@keyframes twinkle{0%,100%{opacity:.35;transform:scale(.8);}50%{opacity:1;transform:scale(1.15);}}

.path-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}

.tiles{position:absolute;inset:0;}

.tile{
  position:absolute;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:4px;
  background:none;border:0;padding:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.tile-disc{
  width:clamp(48px,14vw,62px);height:clamp(48px,14vw,62px);
  border-radius:50%;display:grid;place-items:center;
  font-family:'Cairo',sans-serif;font-weight:800;
  font-size:clamp(1rem,4.2vw,1.2rem);color:#fff;
  background:linear-gradient(180deg,#9174F2,#6D4AE0);
  box-shadow:0 6px 0 #452DA0, 0 12px 20px -12px rgba(69,45,160,.9), inset 0 0 0 3px rgba(255,255,255,.3);
  transition:transform .15s ease, box-shadow .15s ease, background .3s ease;
}
.tile-disc svg{width:20px;height:20px;opacity:.9;}
.tile.is-locked .tile-disc{
  background:linear-gradient(180deg,#E4DFF1,#D8D3E8);
  color:#9C94B8;
  box-shadow:0 6px 0 #C1B9DA, inset 0 0 0 3px rgba(255,255,255,.6);
}
.tile.is-locked{cursor:default;}
.tile:not(.is-locked):active .tile-disc{transform:translateY(4px);box-shadow:0 2px 0 #452DA0, 0 6px 12px -10px rgba(69,45,160,.9), inset 0 0 0 3px rgba(255,255,255,.3);}
.tile.is-current .tile-disc{
  animation:tile-pulse 1.9s ease-in-out infinite;
  box-shadow:0 6px 0 #452DA0, 0 0 0 8px rgba(255,255,255,.35), 0 12px 24px -10px rgba(69,45,160,.9), inset 0 0 0 3px rgba(255,255,255,.45);
}
@keyframes tile-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.07);}}

.tile-stars{display:flex;gap:1px;font-style:normal;font-size:.62rem;line-height:1;}
.tile-stars i{font-style:normal;color:rgba(36,27,75,.18);}
.sky-3 .tile-stars i{color:rgba(255,255,255,.25);}
.tile-stars i.on{color:var(--gold);text-shadow:0 1px 0 rgba(0,0,0,.08);}

.map-footer{
  display:flex;align-items:center;gap:14px;
  padding-top:14px;
}
.map-stats{display:flex;align-items:baseline;gap:4px;flex:none;}
.map-stats b{font-family:'Cairo',sans-serif;font-size:1.25rem;color:var(--purple);}
.map-footer .btn-candy{width:auto;flex:1;min-height:56px;font-size:1rem;}

/* ---------------- puzzle ---------------- */
.puzzle-top{display:flex;align-items:center;gap:10px;padding:2px 0 14px;}
.puzzle-meta{flex:1;display:flex;flex-direction:column;gap:4px;align-items:flex-start;}
.lvl-label{font-family:'Cairo',sans-serif;font-weight:800;font-size:1.02rem;color:var(--ink);}
.lvl-label b{color:var(--purple);}

.timer{position:relative;width:56px;height:56px;flex:none;}
.timer svg{width:100%;height:100%;transform:rotate(-90deg);}
.timer-track{stroke:#E7E1FB;}
.timer-ring{stroke:var(--blue);transition:stroke .3s ease;}
.timer.is-low .timer-ring{stroke:var(--coral);}
.timer.is-low{animation:timer-beat .9s ease-in-out infinite;}
@keyframes timer-beat{0%,100%{transform:scale(1);}50%{transform:scale(1.08);}}
.timer-num{
  position:absolute;inset:0;display:grid;place-items:center;
  font-family:'Cairo',sans-serif;font-weight:800;font-size:1.02rem;color:var(--ink);
}
.timer.is-low .timer-num{color:var(--coral);}

.puzzle-body{display:flex;flex-direction:column;gap:12px;flex:1;}

.puzzle-owl-row{display:flex;flex-direction:row-reverse;align-items:center;gap:10px;}
.owl-mini{width:54px;height:62px;flex:none;}
.bubble{
  background:#fff;color:var(--ink-soft);
  padding:8px 14px;border-radius:14px;font-size:.82rem;font-weight:600;
  box-shadow:0 10px 22px -18px rgba(36,27,75,.9), inset 0 0 0 1.5px var(--line);
}

.question-card{
  background:#fff;border-radius:var(--r-lg);
  padding:18px 20px 20px;
  box-shadow:var(--shadow-card);
  position:relative;
}
.q-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.q-badge{
  display:inline-block;padding:4px 12px;border-radius:99px;
  background:var(--purple-050);color:var(--purple);
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.74rem;
}
.btn-speak{
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:12px;border:1.5px solid var(--line);background:#FBF9FF;
  color:var(--purple);cursor:pointer;
}
.btn-speak:active{background:#F1ECFF;}
.q-text{
  margin:0;
  font-family:'Cairo',sans-serif;font-weight:700;
  font-size:1.18rem;line-height:1.65;color:var(--ink);
  text-align:right;
}

.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.answer{
  display:flex;align-items:center;gap:10px;
  min-height:70px;padding:12px 14px;text-align:right;
  border-radius:18px;border:2px solid var(--line);
  background:#fff;color:var(--ink);
  font-family:'Tajawal',sans-serif;font-weight:700;font-size:.98rem;line-height:1.4;
  box-shadow:0 6px 0 #EDE8FF, 0 12px 22px -20px rgba(36,27,75,.8);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.answer .key{
  width:32px;height:32px;flex:none;border-radius:11px;
  display:grid;place-items:center;
  background:var(--purple-050);color:var(--purple);
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.9rem;
}
.answer .answer-text{flex:1;}
.answer:not(:disabled):active{transform:translateY(3px);box-shadow:0 3px 0 #EDE8FF;}
.answer:disabled{cursor:default;}
.answer.correct{
  background:linear-gradient(180deg,#5FE2B4,#3ECF9A);
  border-color:#2FB584;color:#05351F;
  box-shadow:0 6px 0 #26A276, 0 14px 24px -18px rgba(62,207,154,.9);
  animation:pop .35s ease;
}
.answer.correct .key{background:rgba(255,255,255,.6);color:#0A4A30;}
.answer.wrong{
  background:linear-gradient(180deg,#FF91A1,#FF6B81);
  border-color:#E8526B;color:#4A0714;
  box-shadow:0 6px 0 #C93F58, 0 14px 24px -18px rgba(255,107,129,.9);
  animation:pop .35s ease;
}
.answer.wrong .key{background:rgba(255,255,255,.6);color:#5C0A1A;}
.answer.dim{opacity:.42;}
@keyframes pop{0%{transform:scale(1);}45%{transform:scale(1.04);}100%{transform:scale(1);}}

.feedback{
  border-radius:18px;padding:13px 16px;
  font-weight:700;font-size:.92rem;line-height:1.55;
  animation:screen-in .25s ease both;
}
.feedback.ok{background:#E6FAF2;color:#0C6B4C;box-shadow:inset 0 0 0 1.5px #B7EFD9;}
.feedback.bad{background:#FFECEF;color:#A3243B;box-shadow:inset 0 0 0 1.5px #FFD0D8;}

/* ---------------- result ---------------- */
.result-wrap{display:flex;flex-direction:column;flex:1;justify-content:center;gap:6px;}
.owl-result{width:104px;height:122px;margin:0 auto -6px;}
.result-card{
  background:#fff;border-radius:var(--r-lg);
  padding:22px 20px 20px;text-align:center;
  box-shadow:var(--shadow-card);
}
.stars-big{display:flex;justify-content:center;gap:8px;font-size:2rem;line-height:1;margin-bottom:8px;}
.stars-big i{font-style:normal;color:#E3DDF6;transform:scale(.9);transition:transform .3s ease;}
.stars-big i.on{color:var(--gold);text-shadow:0 3px 0 rgba(244,194,76,.35);animation:star-in .45s cubic-bezier(.3,1.5,.5,1) both;}
.stars-big i.on:nth-child(2){animation-delay:.1s;}
.stars-big i.on:nth-child(3){animation-delay:.2s;}
@keyframes star-in{from{transform:scale(.3) rotate(-25deg);opacity:0;}to{transform:scale(1) rotate(0);opacity:1;}}

.result-title{font-family:'Cairo',sans-serif;font-weight:900;font-size:1.6rem;margin:0;}
.result-points{
  font-family:'Cairo',sans-serif;font-weight:800;font-size:1.32rem;
  color:var(--purple);margin:6px 0 0;
}
.result-points.mult{color:#E08A00;}
.result-explain{
  margin:12px 0 0;color:var(--ink-soft);font-size:.92rem;line-height:1.7;
  background:#FAF8FF;border-radius:16px;padding:12px 14px;
  box-shadow:inset 0 0 0 1.5px var(--line);
}
.res-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px;}

/* ---------------- certificate ---------------- */
.cert-wrap{display:flex;flex-direction:column;flex:1;justify-content:center;gap:16px;}
.cert{
  position:relative;
  border-radius:26px;
  padding:6px;
  background:linear-gradient(145deg,#F7D77E,#F4C24C 45%,#E0A62F);
  box-shadow:0 26px 54px -26px rgba(180,130,20,.7);
  animation:cert-in .6s cubic-bezier(.22,.9,.3,1) both;
  overflow:hidden;
}
@keyframes cert-in{from{opacity:0;transform:scale(.94) translateY(16px);}to{opacity:1;transform:none;}}
.cert-glow{
  position:absolute;inset:-40% -10% auto -10%;height:70%;
  background:radial-gradient(closest-side,rgba(255,255,255,.75),rgba(255,255,255,0));
  pointer-events:none;
}
.cert-inner{
  position:relative;
  border-radius:21px;
  background:linear-gradient(180deg,#FFFDF7,#F8F4FF);
  padding:20px 18px 26px;
  text-align:center;
  box-shadow:inset 0 0 0 1.5px rgba(244,194,76,.45);
}
.owl-cert{width:76px;height:88px;margin:0 auto -2px;}
.cert-kicker{
  font-family:'Cairo',sans-serif;font-weight:800;font-size:.76rem;
  color:var(--purple);margin:2px 0 0;
}
.cert-title{
  font-family:'Cairo',sans-serif;font-weight:900;font-size:1.6rem;
  margin:2px 0 10px;color:var(--ink);
}
.cert-line{margin:0;color:var(--ink-soft);font-size:.82rem;}
.cert-name{
  font-family:'Cairo',sans-serif;font-weight:900;font-size:1.5rem;
  color:var(--purple);margin:4px 0 6px;
  background:linear-gradient(90deg,#6D4AE0,#4FA9F5);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.cert-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;
  margin-top:16px;
  padding-top:14px;
  border-top:1.5px dashed rgba(109,74,224,.25);
}
.cert-stats div{display:flex;flex-direction:column;gap:2px;}
.cert-stats b{font-family:'Cairo',sans-serif;font-size:1.02rem;color:var(--ink);}
.cert-stats span{font-size:.7rem;color:var(--ink-soft);}
.cert-seal{
  position:absolute;bottom:-26px;left:-26px;
  width:96px;height:96px;border-radius:50%;
  display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#FFE9A8,#F4C24C 60%,#D9A334);
  box-shadow:0 10px 20px -10px rgba(180,130,20,.9), inset 0 0 0 4px rgba(255,255,255,.55);
  transform:rotate(-12deg);
}
.cert-seal span{
  font-family:'Cairo',sans-serif;font-weight:900;font-size:.86rem;color:#6B4A05;
}
.cert-actions{display:flex;flex-direction:column;gap:10px;}

/* ---------------- sheet & toast ---------------- */
.sheet{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center;}
.sheet-backdrop{position:absolute;inset:0;background:rgba(36,27,75,.42);backdrop-filter:blur(3px);}
.sheet-panel{
  position:relative;width:100%;max-width:480px;
  background:#fff;border-radius:28px 28px 0 0;
  padding:18px 18px 26px;
  box-shadow:0 -18px 50px -22px rgba(36,27,75,.8);
  animation:sheet-in .3s cubic-bezier(.22,.9,.3,1) both;
  max-height:82dvh;display:flex;flex-direction:column;
}
@keyframes sheet-in{from{transform:translateY(30px);opacity:0;}to{transform:none;opacity:1;}}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;}
.sheet-head h3{font-family:'Cairo',sans-serif;font-weight:800;font-size:1.1rem;margin:0;}
.sheet-body{overflow:auto;display:flex;flex-direction:column;gap:10px;}

.board-row{
  display:flex;align-items:center;gap:12px;
  padding:11px 14px;border-radius:16px;
  background:#FAF8FF;box-shadow:inset 0 0 0 1.5px var(--line);
}
.board-row .rank{
  width:30px;height:30px;flex:none;border-radius:10px;
  display:grid;place-items:center;
  background:#EFE9FF;color:var(--purple);font-weight:800;font-size:.85rem;
  font-family:'Cairo',sans-serif;
}
.board-row.you{background:#F1ECFF;box-shadow:inset 0 0 0 2px #D5C7FB;}
.board-row .handle{flex:1;font-weight:700;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.board-row .sc{font-family:'Cairo',sans-serif;font-weight:800;color:var(--purple);font-size:.95rem;}

.toast{
  position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);
  background:rgba(36,27,75,.94);color:#fff;
  padding:12px 20px;border-radius:999px;
  font-size:.88rem;font-weight:700;
  box-shadow:0 18px 34px -18px rgba(36,27,75,.9);
  opacity:0;pointer-events:none;transition:opacity .25s ease, transform .25s ease;
  z-index:100;max-width:88vw;text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0);}

/* ---------------- responsive ---------------- */
@media (max-width:359px){
  .answers{grid-template-columns:1fr;}
  .app{padding:12px 12px 18px;}
  .q-text{font-size:1.06rem;}
}
@media (max-height:700px){
  .owl-hero{width:104px;height:122px;}
  .app-title{font-size:2.1rem;}
  .app-sub{font-size:.88rem;}
  .sky{min-height:330px;}
}
@media (min-width:900px){
  .app{max-width:440px;}
  body{background:radial-gradient(90% 70% at 50% 0%, #CFC0FF 0%, #EFEAFF 45%, #FAF8FF 100%);}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}