/* v4: coaches on their own pastel colour. The gradient follows the colour of the video's own background, top to bottom,
   and the video's edges are feathered into it, so the coach looks like they stand on the screen itself. */
.cs-ani{--g1:#d99b82;--g2:#dea187;--g3:#e6a68a;--g4:#e8ad93;--g5:#e7b296;--g6:#e0ae93;--acc:#B8233A;--accs:#F6D9CB}
.cs-dav{--g1:#9da67b;--g2:#a0aa7f;--g3:#a5af84;--g4:#aab58b;--g5:#b7c199;--g6:#b8bf94;--acc:#3E5A2A;--accs:#E3E9D2}
.cs-ani,.cs-dav{--cg:linear-gradient(180deg,var(--g1) 0%,var(--g2) 20%,var(--g3) 40%,var(--g4) 60%,var(--g5) 80%,var(--g6) 100%)}

.coach{position:relative;height:100%;aspect-ratio:480/852;flex:none}
.coach .cv,.coach .cpost{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent),linear-gradient(transparent,#000 7%,#000 93%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent),linear-gradient(transparent,#000 7%,#000 93%,transparent);mask-composite:intersect}
.coach .cv{opacity:0;transition:opacity .4s ease}.coach .cv.on{opacity:1}

/* Nara on a small clay cloud: her white video multiplies onto the white cloud, so she can stand on any colour */
.ncloud{position:relative;height:150px;aspect-ratio:540/716;flex:none}
.ncloud .puff{position:absolute;left:-30%;right:-30%;top:-6%;bottom:-12%;border-radius:50% 50% 46% 46%/58% 58% 42% 42%;background:#fff;
  box-shadow:inset 0 -10px 18px rgba(170,140,120,.22),0 10px 22px rgba(80,40,20,.16)}
.ncloud .puff::before,.ncloud .puff::after{content:"";position:absolute;border-radius:50%;background:#fff}
.ncloud .puff::before{width:46%;height:46%;left:-12%;bottom:4%;box-shadow:inset 0 -6px 10px rgba(170,140,120,.18)}
.ncloud .puff::after{width:42%;height:42%;right:-12%;bottom:8%;box-shadow:inset 0 -6px 10px rgba(170,140,120,.18)}
.ncloud .nara.oncloud{height:100%;max-height:none}.ncloud .nara.oncloud .glow{display:none}
.ncloud.sm{height:112px}

/* screens that follow the coach */
.cflow{background:var(--g6)}
.cstage{flex:1;min-height:0;position:relative;display:flex;justify-content:flex-start;align-items:flex-end;padding:0 6% 14px;background:var(--cg)}
.cstage:not(.sm):not(.duo){background:linear-gradient(var(--g1),var(--g1)) top/100% 17% no-repeat,var(--cg) bottom/100% 83% no-repeat;justify-content:center}
.cstage:not(.sm):not(.duo) .coach{height:83%}
.cstage.sm{flex:0 0 38%}
.cstage.duo{justify-content:flex-start;background:linear-gradient(var(--g1),var(--g1)) top/100% 14% no-repeat,var(--cg) bottom/100% 86% no-repeat}.cstage.duo .coach{height:86%}
.cstage.duo .ncloud{position:absolute;left:7%;bottom:28px;height:clamp(104px,26%,160px)}
.cbub{position:absolute;top:12px;left:12px;max-width:60%;background:#fff;color:var(--ink);border-radius:20px 20px 20px 6px;padding:10px 14px;font-size:14px;line-height:1.7;font-weight:700;
  box-shadow:0 10px 24px rgba(60,30,10,.16);animation:pop .35s var(--spring);z-index:3}
.cbub:empty{display:none}.cbub em{display:block;font-style:normal;font-size:12.5px;color:#6A7891;font-weight:700}.cbub b{font-weight:900}
.say3{display:inline-flex;flex-direction:column;align-items:center;gap:0;vertical-align:middle}.say3 b.hy{font-size:19px;color:var(--acc);line-height:1.4}
.say3 small{font-size:13px;color:#33435C;font-weight:800;line-height:1.5}.say3 .lat{font-size:11.5px;color:#6A7891;line-height:1.4}
.cbub .say3{display:flex;margin:2px 0}

.csheet{background:#FFF9F3;color:var(--ink);border-radius:28px 28px 0 0;margin-top:-18px;position:relative;z-index:2;padding:20px 16px 22px;display:flex;flex-direction:column;gap:12px;flex:none;
  box-shadow:0 -10px 26px rgba(60,30,10,.10);max-height:70%;overflow-y:auto}
.csheet h1{font-size:24px;font-weight:900;line-height:1.5}.csheet p{font-size:14.5px;line-height:1.85;color:#4E5D74}
.csheet .cta{background:var(--night);color:#fff;box-shadow:0 8px 18px rgba(11,35,64,.18)}
.csheet .ghost{color:#6A7891}
.csheet .fld span{color:#6A7891;font-weight:700}.csheet .fld input{background:#fff;color:var(--ink);border:2px solid #EFE3D7}.csheet .fld input:focus{border-color:var(--acc);outline:0}
.csheet .startat{background:#fff;border:2px solid #EFE3D7}.csheet .startat small{color:#6A7891}.csheet .mini5 li{background:#EFE3D7;color:var(--ink)}.csheet .mini5 .ok{background:var(--g);color:var(--night)}.csheet .mini5 .now{background:var(--acc);color:#fff}

/* 1. pick a coach */
.cpick{background:#FFF9F3}
.cpcols{flex:1;min-height:0;display:flex}
.cpc{flex:1;position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;background:var(--cg);padding-bottom:22px;transition:flex .55s var(--spring),filter .4s}
.cpc .coach{height:74%}
.cpick.picked .cpc{flex:.72;filter:saturate(.55) brightness(.96)}.cpick.picked .cpc.on{flex:1.5;filter:none}.cpick.picked .cpc.on .coach{height:80%}
.cpn{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);background:#fff;border-radius:999px;padding:6px 14px;display:flex;align-items:baseline;gap:6px;box-shadow:0 8px 18px rgba(60,30,10,.18);white-space:nowrap}
.cpn b{font-size:16px;font-weight:900}.cpn i{font-style:normal;font-size:13px;color:var(--acc)}
.cpc:active .coach{transform:scale(.98)}.cpc .coach{transition:transform .25s var(--spring),height .55s var(--spring)}
.cptop{position:absolute;top:16px;left:0;right:0;z-index:3;display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}
.cbub.top{position:relative;top:auto;left:auto;max-width:86%;border-radius:20px;text-align:center}
.cpick .csheet{margin-top:-18px}.cph{text-align:center}
.hiline{display:flex;align-items:center;justify-content:center;gap:10px}
.sbtn{width:44px;height:44px;border-radius:50%;background:var(--accs);color:var(--acc);display:flex;align-items:center;justify-content:center}.sbtn svg{width:20px;height:20px}

/* 3. placement */
.lvl{display:grid;gap:8px}
.lvl button{background:#fff;border:2px solid #EFE3D7;border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:right;transition:transform .2s var(--spring),border-color .2s}
.lvl button:active{transform:scale(.98);border-color:var(--acc)}.lvl b{font-size:16px;font-weight:900}.lvl small{font-size:12.5px;color:#6A7891;font-weight:700}
.cplace .csheet{flex:1;max-height:none;gap:10px}
#plq.in{animation:plin .35s var(--spring)}@keyframes plin{from{opacity:0;transform:translateY(14px)}}
.plh{display:flex;align-items:center;gap:10px}.plh .qn{color:var(--acc)}
.dots{list-style:none;margin:0;padding:0;display:flex;gap:5px;margin-inline-start:auto}.dots li{width:9px;height:9px;border-radius:50%;background:#EFE3D7}
.dots .now{background:var(--acc);transform:scale(1.25)}.dots .ok{background:#1FA97A}.dots .no{background:#E3A0AA}
.plt{font-size:17px;font-weight:900;line-height:1.6}
.wcard{background:#fff;border:2px solid #EFE3D7;border-radius:22px;padding:14px 12px 12px;display:flex;flex-direction:column;align-items:center;gap:2px}
.wcard b.hy{font-size:34px;font-weight:700;color:var(--acc);line-height:1.35}.csheet .wcard span{font-size:19px;font-weight:800;color:#1D2B44}.wcard .lat{font-size:14px;color:#6A7891}
.wbtns{display:flex;gap:8px;margin-top:8px}.wbtns button{display:flex;align-items:center;gap:6px;background:var(--accs);color:var(--acc);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:800;min-height:40px}
.wbtns i{display:flex}.wbtns svg{width:16px;height:16px}
.csheet .opts{gap:8px}.csheet .opts.four{grid-template-columns:1fr 1fr}
.csheet .opt{background:#fff;color:var(--ink);border:2px solid #EFE3D7;min-height:54px;font-size:15.5px;font-weight:800;padding:10px}
.csheet .opt.ok{background:#1FA97A;border-color:#1FA97A;color:#fff}.csheet .opt.no{background:#C93C52;border-color:#C93C52;color:#fff}
.csheet .opt.ok .say3 *,.csheet .opt.no .say3 *{color:#fff}
.csheet .opt.hy3{padding:8px}

@media (max-height:700px){.ncloud.sm{height:92px}.cstage.sm{flex-basis:30%}.wcard b.hy{font-size:28px}.csheet h1{font-size:21px}}
@media (prefers-reduced-motion:reduce){.cpc,.cpc .coach,#plq.in,.cbub{transition:none;animation:none}}

/* pronunciation lines added next to Armenian (phon.js) */
.phl{display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.45}.phl b{font-size:15px;font-weight:800;font-family:Vazirmatn,sans-serif;direction:rtl;unicode-bidi:isolate}.phl .lat{font-size:12px;opacity:.75}
.phl.under{align-self:center;margin-top:-4px;color:#E6EDF8}.csheet .phl.under{color:#33435C}
.phl.inopt{margin-top:2px}.phl.inopt b{font-size:13px}.phl.inopt .lat{font-size:11px}
.opt.hy{display:flex;flex-direction:column;align-items:center}
.tile{display:inline-flex;flex-direction:column;align-items:center;line-height:1.3}.tph{font-family:Vazirmatn,sans-serif;direction:rtl;font-size:11px;font-weight:700;opacity:.75}
.chip .chf{display:block;font-style:normal;font-family:Vazirmatn,sans-serif;font-size:11px;font-weight:700;opacity:.8}
.cpn .lat{font-size:11px;color:#6A7891}
