/* Fruit notes overlay and fruit discovery cues.
   The first block is the overlay prototype's stylesheet
   (prototypes/varoot-overlay-concept/index.html), unchanged except that every
   rule is scoped under .fruit-notes so nothing reaches the homepage. */
.fruit-notes{--cream:#f3e8d2;--gold:#eac78b;--muted:#bac8b4;--ink:#0f1818}
.fruit-notes *{box-sizing:border-box}
.fruit-notes button{font:inherit;color:inherit;cursor:pointer}
.fruit-notes button:focus-visible{outline:2px solid #fff;outline-offset:4px}
.fruit-notes .scrim{position:fixed;inset:0;z-index:4;background:#050805a8;backdrop-filter:blur(11px) saturate(.75);opacity:0;pointer-events:none;transition:opacity .45s}
.fruit-notes .scrim.active{opacity:1;pointer-events:auto}
.fruit-notes .dialog{position:fixed;z-index:5;inset:3.5% 5%;max-width:1390px;margin:auto;border-radius:27px;overflow:hidden;isolation:isolate;background:#101e1c;box-shadow:0 34px 130px #000b,0 0 0 1px #ece3b83b;display:grid;grid-template-rows:auto 1fr auto;opacity:0;visibility:hidden;transform:translateY(22px) scale(.975);transition:transform .48s cubic-bezier(.17,.75,.25,1),opacity .4s,visibility .4s;--hi:#eecb7f;--low:#7b9d92;--a:#132a29;--b:#1b302d}
.fruit-notes .dialog.show{opacity:1;visibility:visible;transform:none}
.fruit-notes .dialog[data-fruit=pitaya]{--hi:#eec65c;--low:#d5a95e;--a:#33281f;--b:#52432c}
.fruit-notes .artbg{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 67% 70% at 48% 96%,color-mix(in srgb,var(--hi) 12%,transparent),transparent 75%),radial-gradient(ellipse at 72% 15%,color-mix(in srgb,var(--low) 38%,transparent),transparent 54%),linear-gradient(135deg,var(--b),var(--a) 74%)}
.fruit-notes .artbg:after{content:'';position:absolute;inset:0;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.27' filter='url(%23n)'/%3E%3C/svg%3E")}
.fruit-notes .dialog-head{height:90px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px clamp(22px,3vw,54px);position:relative;z-index:5}
.fruit-notes .eyebrow{font:600 11px Manrope,Arial;letter-spacing:.23em;direction:ltr;color:var(--gold)}
.fruit-notes .head-left{display:flex;gap:16px;align-items:center;direction:ltr}
.fruit-notes .close{background:#ffffff0a;border:1px solid #ffffff45;width:43px;height:43px;border-radius:50%;display:grid;place-items:center;font-size:26px;font-family:Arial;font-weight:200;transition:background .2s}
.fruit-notes .close:hover{background:#ffffff30}
.fruit-notes .counter{font:500 13px Manrope,sans-serif;color:#f7e9d3b5;direction:ltr}
.fruit-notes .top-fruit{font:600 14px Tajawal;color:#ecdeba}
.fruit-notes .stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,34%);min-height:0;position:relative;align-items:center;padding:0 clamp(25px,5.5vw,90px);gap:2vw}
.fruit-notes .copy{max-width:740px;position:relative;z-index:2;align-self:center}
.fruit-notes .chapter{display:flex;gap:14px;align-items:center;color:var(--hi);font:500 12px Manrope,sans-serif;letter-spacing:.18em;direction:ltr}
.fruit-notes .chapter:before{content:'';width:32px;height:1px;background:currentColor}
.fruit-notes .copy h1{font-size:clamp(52px,6.6vw,115px);font-weight:500;letter-spacing:-.055em;margin:22px 0 17px;line-height:1.05;text-wrap:balance}
.fruit-notes .copy p{color:#ebe4d1d9;font-size:clamp(17px,1.8vw,24px);max-width:590px;line-height:1.9;margin:0 0 24px}
.fruit-notes .micro{font:500 12px Manrope,sans-serif;letter-spacing:.16em;color:var(--hi);direction:ltr}
.fruit-notes .glow-word{color:var(--hi)}
.fruit-notes .slide{display:none;animation:notes-enter .55s cubic-bezier(.17,.77,.28,1) both}
.fruit-notes .slide.active{display:block}
@keyframes notes-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.fruit-notes .draw{position:relative;height:min(57vh,530px);width:100%;display:flex;align-items:center;justify-content:center}
.fruit-notes .orb{position:absolute;aspect-ratio:1;width:min(33vw,380px);border:1px solid color-mix(in srgb,var(--hi) 33%,transparent);border-radius:50%;box-shadow:inset 0 0 85px #ffffff08,0 0 130px color-mix(in srgb,var(--hi) 11%,transparent);background:radial-gradient(circle at 33% 20%,#ffffff16,transparent 45%),linear-gradient(145deg,#ffffff08,#0002)}
.fruit-notes .orbit{position:absolute;width:115%;aspect-ratio:1;max-width:485px;border:1px solid #e1e4bc20;border-radius:50%;transform:rotate(-20deg) scaleY(.65)}
.fruit-notes .orbit:nth-of-type(2){width:137%;transform:rotate(30deg) scaleY(.7)}
.fruit-notes .star-icon{width:78%;max-width:350px;aspect-ratio:1;position:relative;filter:drop-shadow(0 22px 38px #0005)}
.fruit-notes .star-icon svg{width:100%;height:100%;overflow:visible}
.fruit-notes .fruit-sphere{width:min(31vw,330px);aspect-ratio:1;position:relative;filter:drop-shadow(0 30px 24px #0008);transform:rotate(-13deg)}
.fruit-notes .fruit-sphere:before{content:'';position:absolute;inset:11%;border-radius:38% 44% 41% 45%;background:radial-gradient(circle at 30% 21%,#fff5bb 0%,#ffe67f 11%,#eebc31 40%,#c59017 72%,#614d17 100%);box-shadow:inset -15px -23px 25px #60420a88,inset 5px 5px 18px #fff6be85}
.fruit-notes .fruit-sphere:after{content:'';position:absolute;left:47%;top:3%;width:9px;height:35px;border-radius:5px;background:linear-gradient(90deg,#52491c,#c4a051);transform:rotate(20deg)}
.fruit-notes .stage-bottom{position:relative;min-height:160px;display:flex;align-items:end;justify-content:space-between;gap:20px;padding:12px clamp(23px,5vw,72px) 28px;direction:ltr}
.fruit-notes .ground{position:absolute;left:0;right:0;bottom:0;height:115px;z-index:-1;background:radial-gradient(ellipse 40% 50% at 53% 108%,#b4a17c7a,transparent 80%),radial-gradient(ellipse 75% 50% at 50% 113%,#766a52a8,transparent 75%)}
.fruit-notes .ground:before{content:'';position:absolute;inset:40% 7% -110%;border-radius:50%;background:radial-gradient(ellipse,#0006,transparent 68%)}
.fruit-notes .small-fruit{position:absolute;left:50%;bottom:10px;transform:translateX(-50%) rotate(-14deg);height:105px;width:160px;opacity:.96;pointer-events:none;filter:drop-shadow(9px 14px 12px #000b)}
.fruit-notes .small-fruit.star{background:linear-gradient(125deg,#faee98,#ffc640 35%,#efad2a 60%,#d07a22);clip-path:polygon(50% 0,60% 32%,98% 22%,78% 56%,100% 89%,60% 80%,49% 100%,37% 78%,0 90%,22% 55%,0 23%,39% 34%);border-radius:30%;height:102px;width:109px}
.fruit-notes .small-fruit.pitaya{height:107px;width:117px;border-radius:36% 39% 40% 35%;background:radial-gradient(circle at 32% 24%,#fff6a4,#f8d74a 28%,#d8aa22 76%,#a87b18);transform:translateX(-50%) rotate(13deg)}
.fruit-notes .nav{display:flex;align-items:center;gap:12px}
.fruit-notes .nav button{border:1px solid #efe8d254;background:#ffffff12;color:var(--cream);width:49px;height:49px;border-radius:50%;font-size:25px;transition:background .2s}
.fruit-notes .nav button:hover{background:#fff3}
.fruit-notes .pagination{display:flex;align-items:center;gap:8px}
.fruit-notes .pagination button{display:block;padding:0;border:0;height:3px;width:24px;border-radius:4px;background:#ffffff53;transition:width .35s,background .35s}
.fruit-notes .pagination button.active{background:var(--hi);width:67px}
.fruit-notes .hint{font:500 10px Manrope,Arial;letter-spacing:.16em;color:#f4e8cb9c;white-space:nowrap}
.fruit-notes .tag{padding:10px 14px;border:1px solid #f8ecc43b;border-radius:100px;font-size:13px;color:#f6e8c2;display:inline-block;margin:7px 0 14px}
.fruit-notes .slice-svg{width:100%;max-width:360px;filter:drop-shadow(0 15px 30px #0007)}
.fruit-notes .info-pair{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
.fruit-notes .info-pair span{border:1px solid #f4e8c438;padding:11px 15px;border-radius:12px;font-size:15px;color:#f4e9d8}
.fruit-notes .footer-note{position:absolute;bottom:9px;right:26px;font-size:11px;color:#e4dcc589}
@media(max-width:700px){.fruit-notes .dialog{inset:0;border-radius:0;max-width:none;box-shadow:none;grid-template-rows:auto 1fr auto}
.fruit-notes .dialog-head{height:77px;padding:20px 23px}
.fruit-notes .stage{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:16px 28px 0;gap:0;overflow:hidden}
.fruit-notes .copy{width:100%;flex:none;align-self:start}
.fruit-notes .copy h1{font-size:clamp(47px,11.5vw,71px);margin:15px 0}
.fruit-notes .copy p{font-size:19px;line-height:1.68;margin-bottom:10px}
.fruit-notes .draw{height:clamp(205px,36vh,320px);width:100%;margin:auto}
.fruit-notes .orb{width:min(65vw,270px)}
.fruit-notes .orbit{max-width:330px}
.fruit-notes .orbit:nth-of-type(2){max-width:340px}
.fruit-notes .star-icon{max-width:240px}
.fruit-notes .fruit-sphere{width:210px}
.fruit-notes .stage-bottom{min-height:136px;padding:8px 26px 26px}
.fruit-notes .small-fruit{height:85px;bottom:16px}
.fruit-notes .small-fruit.star{height:80px;width:87px}
.fruit-notes .small-fruit.pitaya{height:87px;width:92px}
.fruit-notes .hint{display:none}
.fruit-notes .pagination button{width:18px}
.fruit-notes .pagination button.active{width:40px}
.fruit-notes .nav button{width:44px;height:44px}
.fruit-notes .footer-note{right:20px}
.fruit-notes .micro{font-size:10px}}
@media(max-height:680px) and (max-width:700px){.fruit-notes .dialog-head{height:64px}
.fruit-notes .stage{padding-top:0}
.fruit-notes .copy h1{font-size:42px;margin:10px 0}
.fruit-notes .copy p{font-size:16px}
.fruit-notes .draw{height:195px}
.fruit-notes .stage-bottom{min-height:100px}
.fruit-notes .small-fruit{height:65px!important}
.fruit-notes .ground{height:80px}}
@media(prefers-reduced-motion:reduce){.fruit-notes *,.fruit-notes *:before,.fruit-notes *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Homepage integration (not in the prototype). */
.fruit-notes{position:relative;z-index:40;font-family:Tajawal,system-ui,sans-serif;color:var(--cream)}
/* The panel grows from the fruit that opened it; defaults match the prototype. */
.fruit-notes .dialog{transform:translate(var(--from-x,0px),var(--from-y,22px)) scale(var(--from-scale,.975))}
/* Visible from the first frame of opening, so focus can move into it. */
.fruit-notes .dialog.show{transform:none;transition:transform .48s cubic-bezier(.17,.75,.25,1),opacity .4s,visibility 0s}
/* Fruit without notes yet: only the fruit itself, no carousel. */
.fruit-notes .dialog.is-pending .counter,.fruit-notes .dialog.is-pending .nav,.fruit-notes .dialog.is-pending .pagination,.fruit-notes .dialog.is-pending .small-fruit,.fruit-notes .dialog.is-pending .footer-note{visibility:hidden}
.fruit-notes .notes-cutout{position:relative;width:74%;max-width:320px;max-height:78%;object-fit:contain;filter:drop-shadow(0 26px 22px #0007) drop-shadow(0 6px 6px #0004)}
/* The bottom shape stand-in is gone; the photo is the fruit. */
.fruit-notes .small-fruit{display:none}
/* Pitaya: warmer, less olive. */
.fruit-notes .dialog[data-fruit=pitaya]{--a:#2e2015;--b:#4d3720}

.scene.is-pointing{cursor:pointer}

/* ---- Arabic / English ---------------------------------------------------- */
/* Plated fruit are keyboard buttons; show focus only for keyboard users. */
.plated-fruit:focus{outline:none}
.plated-fruit:focus-visible{outline:2px solid #fff5d3;outline-offset:6px;border-radius:40%}
/* The footer row is laid out left to right; in Arabic the dots run right to left. */
:root[dir=rtl] .fruit-notes .pagination{flex-direction:row-reverse}
/* English copy: the prototype's Latin faces, sized for longer Latin lines. */
:root[lang=en] .fruit-notes{font-family:'DM Sans',system-ui,sans-serif}
:root[lang=en] .fruit-notes .copy h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(44px,5vw,86px);letter-spacing:-.04em;line-height:1.04}
:root[lang=en] .fruit-notes .copy p{line-height:1.6}
:root[lang=en] .fruit-notes .top-fruit{font-family:Manrope,Arial,sans-serif}
/* Narrow screens: the header stacks its label and counter so nothing wraps. */
@media(max-width:700px){
  .fruit-notes .dialog-head{gap:12px}
  .fruit-notes .dialog-head .head-left:first-child{flex-direction:column;align-items:flex-start;gap:5px}
  :root[dir=rtl] .fruit-notes .dialog-head .head-left:first-child{align-items:flex-end}
  .fruit-notes .eyebrow{font-size:10px;letter-spacing:.18em;white-space:nowrap}
  .fruit-notes .counter{font-size:12px;white-space:nowrap}
  .fruit-notes .dialog-head .head-left:last-child{min-width:0}
  .fruit-notes .top-fruit{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  :root[lang=en] .fruit-notes .copy h1{font-size:clamp(36px,9.5vw,56px)}
  :root[lang=en] .fruit-notes .copy p{font-size:17px}
}
