/* Ivypop V68 — approved Candid Chemistry / Compare entrance refinement.
   IMPORTANT: intentionally scoped to .v62-world. No non-Candid website sections touched.
   2026-11-19: Great Vibes title case, crisp original palms, photographic tidal
   afterglow, +12% flask, warm tactile cards, calm focus states, and legible Compare.
*/

/* Genuine SIL OFL Great Vibes (served via Google Fonts, not AI-rendered lettering).
   Keep the exact V67 Ivypop hot pink token --v65-hot. */
.v62-world .v62-wordmark { overflow:visible!important; padding-bottom:.11em; }
.v62-world .v62-word-candid {
  font-family:'Outfit','DM Sans',sans-serif!important;
  font-weight:800!important; text-transform:uppercase!important;
  letter-spacing:.058em!important; line-height:.93!important;
}
.v62-world .v62-word-chemistry {
  font-family:'Great Vibes','Yellowtail',cursive!important;
  font-size:1.20em!important; font-style:normal!important; font-weight:400!important;
  text-transform:none!important; letter-spacing:0!important;
  line-height:1.06!important; color:var(--v65-hot)!important;
  padding:.05em .17em .12em .08em; margin-top:-.01em;
  white-space:nowrap; overflow:visible!important; text-shadow:none!important;
  font-synthesis:none;
}
/* The small eyebrow is a real label, not a yellow block or glow sticker. */
.v62-world .v65-overline {
  display:flex; align-items:center; gap:16px; white-space:normal;
  color:#281b26!important; letter-spacing:.24em!important;
  font-weight:800!important;
}
.v62-world .v65-overline::after {
  content:''; display:inline-block; flex:none;
  width:36px; height:2px; border-radius:8px;
  background:#F2CC90; box-shadow:0 0 0 1px rgba(58,29,40,.04);
}

/* Unfiltered user-approved palms. Keep every position and dimensions from V65.4;
   remove the translucent duplicated frond layers (their HTML was removed).
   The nighttime haze and liquid overlays must not sit ON TOP of palm texture. */
.v62-world .v62-palm-right,
.v62-world .v62-palm-secondary {
  opacity:1!important; filter:none!important; mix-blend-mode:normal!important;
  -webkit-mask-image:none!important;mask-image:none!important;
}
.v62-world .v62-palm-secondary{ z-index:8!important; }
.v62-world .v62-palm-right{ z-index:8!important; }
.v62-world .v62-night-haze{ z-index:5!important; }
.v62-world .v62-wave-amber,
.v62-world .v62-wave-rose,
.v62-world .v62-wave-veil{ z-index:5!important; }
.v62-world .v62-film-grain{display:none!important;}
.v62-world .v67-frond-tip{display:none!important;animation:none!important;}

/* Proposal flask — shared optical stage stays together; don't distort the glass.
   Scale around the upper center. Existing pointer/scroll parallax is retained. */
@media(min-width:961px){
  .v62-world .v65-flask-stage{
    transform:translate3d(calc(var(--v65-flask-x) + 16px),calc(var(--v65-flask-y) - 18px),0) scale(1.12)!important;
    transform-origin:52% 43%!important;
  }
  .v62-world .v62-chem-answer-wrap{margin-top:-48px!important;margin-right:-1.5%;}
}
@media(min-width:701px) and (max-width:960px){
  .v62-world .v65-flask-stage{
    transform:translate3d(var(--v65-flask-x),var(--v65-flask-y),0) scale(1.09)!important;
    transform-origin:50% 43%!important;
  }
}
@media(max-width:700px){
  /* At narrow widths, true layout sizing avoids transformed overflow. */
  .v62-world .v65-flask-stage{width:min(98%,414px)!important;transform:none!important;}
  .v62-world .v62-chem-answer-wrap{margin-top:-37px!important;}
}

/* The original ocean remains visible. Replace synthetic striped water/light with
   a restrained optical reflection anchored to the photograph, not drawn waves. */
.v62-world .v62-ocean-light{
  left:-5%;right:-4%;bottom:-7%;height:34%;
  opacity:.42!important;filter:none!important;
  background:
    radial-gradient(ellipse 26% 13% at 66% 77%,rgba(255,232,188,.22),transparent 100%),
    radial-gradient(ellipse 45% 10% at 37% 54%,rgba(252,191,165,.12),transparent 100%);
  transform:translate3d(calc(var(--v65-wave-y) * -.21),calc(var(--v65-wave-y) * .33),0);
}
/* The actual lower photographic scene gradually gives way to pearl-rose mist.
   The initial ocean, sky and flask remain sharp and full saturation. */
#the-details.v62-chemistry .v65-shoreline-veil{
  bottom:-26px;height:clamp(135px,18vw,260px);
  opacity:clamp(.1,var(--v65-shore-alpha,.2),.5)!important;
  background:
    radial-gradient(ellipse 61% 38% at 58% 90%,rgba(251,235,237,.40),rgba(244,196,207,.16) 58%,transparent 92%),
    linear-gradient(180deg,transparent 0%,rgba(252,222,217,.13) 45%,rgba(250,225,227,.34) 100%);
  filter:none!important;
}
#compare.v62-compare::before{
  background:
    radial-gradient(ellipse 82% 24% at 51% 1%,rgba(255,242,237,.78),transparent 88%),
    linear-gradient(180deg,rgba(250,221,220,.56) 0%,rgba(252,239,239,.69) 18%,rgba(255,248,246,.78) 47%,rgba(255,250,248,.89) 100%)!important;
}
#compare.v62-compare .v57-intro{position:relative;isolation:isolate;}
#compare.v62-compare .v57-intro::before{
  content:'';position:absolute;inset:-28px -6% -17px;
  z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 76% 75% at 50% 49%,rgba(255,248,246,.69),rgba(255,246,241,.20) 63%,transparent 88%);
}

/* Warm porcelain: tight contact shadow, longer environmental lift, subtle rim. */
#the-details.v62-chemistry .chem-v55-workspace{
  background:linear-gradient(145deg,rgba(255,253,251,.96),rgba(255,245,240,.91))!important;
  border:1px solid rgba(255,255,255,.94)!important;
  box-shadow:0 3px 8px rgba(56,21,37,.07),
             0 25px 64px rgba(65,26,45,.15),
             inset 0 1px 0 rgba(255,255,255,.96)!important;
  backdrop-filter:blur(9px)!important;
  -webkit-backdrop-filter:blur(9px)!important;
}
/* Maya is a near-camera layer with faint sunset bounce on the flask-facing edge. */
.v62-world .v62-chem-answer-wrap{
  background:linear-gradient(108deg,rgba(255,249,245,.97) 0%,rgba(255,250,249,.94) 67%,rgba(255,224,201,.91) 100%)!important;
  border-color:rgba(255,255,255,.90)!important;
  box-shadow:0 4px 12px rgba(55,22,42,.10),
             0 28px 70px rgba(49,19,40,.20),
             inset 0 1px 0 rgba(255,255,255,.98),
             inset -1px 0 0 rgba(255,230,210,.45)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}

/* One intentional selected surface; accessible focus ONLY for keyboard.
   Old floating indicator should not draw a second selected ring. */
#the-details.v62-chemistry .chem-v55-categories .v58-selection-indicator { display:none!important; }
#the-details.v62-chemistry .chem-v55-categories button.selected{
  background:var(--v65-hot)!important;
  border-color:var(--v65-hot)!important;
  color:#fff!important;
  outline:0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.27),0 5px 12px rgba(181,34,97,.15)!important;
  transform:translateY(1px);
}
#the-details.v62-chemistry .chem-v55-categories button:focus:not(:focus-visible){outline:none!important;}
#the-details.v62-chemistry .chem-v55-categories button:focus-visible,
#the-details.v62-chemistry .chem-v55-mode button:focus-visible,
#the-details.v62-chemistry .chem-v55-next:focus-visible,
#the-details.v62-chemistry .chem-v55-reply-toggle:focus-visible{
  outline:3px solid #54213C!important;outline-offset:3px!important;
}
#the-details.v62-chemistry .chem-v55-categories button,
#the-details.v62-chemistry .chem-v55-mode button{
  transition:transform .15s ease,background-color .17s ease,box-shadow .17s ease!important;
}
#the-details.v62-chemistry .chem-v55-categories button:active,
#the-details.v62-chemistry .chem-v55-mode button:active{
  transform:translateY(1px);
}
/* Existing V55 three-part scene engine synchronizes Q/A/reply. */
#the-details.v62-chemistry.v68-scene-change #chem-question{
  animation:v68-soft-scene-change .24s ease-out both;
}
#the-details.v62-chemistry.v68-scene-change #chem-sample-answer{
  animation:v68-soft-scene-change .28s ease-out .025s both;
}
@keyframes v68-soft-scene-change{
  from{opacity:.45;transform:translate3d(0,5px,0)}
  to{opacity:1;transform:translate3d(0,0,0)}
}

@media(max-width:960px){
  .v62-world .v62-word-chemistry{font-size:1.19em!important;padding-right:.12em;}
  .v62-world .v65-overline{letter-spacing:.20em!important;}
  #compare.v62-compare::before{
    background:linear-gradient(180deg,rgba(252,231,227,.61),rgba(255,249,246,.90) 42%,rgba(255,251,249,.95))!important;
  }
}
@media(max-width:700px){
  .v62-world .v62-wordmark{padding-bottom:.05em;}
  .v62-world .v62-word-chemistry{
    font-size:1.19em!important;line-height:1.09!important;
    margin-top:0;padding:.01em .12em .12em .055em;
  }
  .v62-world .v65-overline{gap:9px;letter-spacing:.17em!important;font-size:10px!important;}
  .v62-world .v65-overline::after{width:20px;}
  #the-details.v62-chemistry .chem-v55-workspace{
    box-shadow:0 2px 6px rgba(56,21,37,.06),0 17px 42px rgba(65,26,45,.14),inset 0 1px 0 #fff!important;
  }
  .v62-world .v62-chem-answer-wrap{box-shadow:0 3px 9px rgba(55,22,42,.08),0 16px 45px rgba(49,19,40,.17),inset 0 1px 0 #fff!important;}
  #compare.v62-compare .v57-intro::before{inset:-12px -2% -12px;}
}
@media(prefers-reduced-motion:reduce){
  #the-details.v62-chemistry.v68-scene-change #chem-question,
  #the-details.v62-chemistry.v68-scene-change #chem-sample-answer{animation:none!important;}
  /* The flask remains enlarged even when animated parallax is disabled. */
  .v62-world .v65-flask-stage{transform:scale(1.12)!important;}
}
@media(max-width:960px) and (prefers-reduced-motion:reduce){
  .v62-world .v65-flask-stage{transform:scale(1.09)!important;}
}
@media(max-width:700px) and (prefers-reduced-motion:reduce){
  .v62-world .v65-flask-stage{transform:none!important;}
}

/* QA 1: previously a near-camera petal crossed Maya's answer text.
   Put both optical petal planes BEHIND Candid/Compare content, but ABOVE the sea.
   All 45 remain animated, with no pointer or text obstruction. */
.v62-world .v66-petal-field--front,
.v62-world .v66-petal-field--behind{z-index:1!important;}

/* QA 1: avoid pre-existing SVG ribbon lines looking like artificial ocean waves.
   The photographed water and controlled reflected-light treatment are sufficient. */
.v62-world .v62-wave-amber,
.v62-world .v62-wave-rose,
.v62-world .v62-wave-veil{display:none!important;}

/* The mist should develop without a hard cross-section color boundary. */
#compare.v62-compare::before{
  background:
    radial-gradient(ellipse 80% 27% at 50% 9%,rgba(252,238,236,.47),transparent 90%),
    linear-gradient(180deg,rgba(252,228,226,0) 0%,rgba(252,230,229,.32) 13%,rgba(253,240,238,.69) 33%,rgba(255,249,247,.84) 63%,rgba(255,250,248,.91) 100%)!important;
}
@media(max-width:960px){
 #compare.v62-compare::before{
  background:linear-gradient(180deg,rgba(252,228,226,0),rgba(252,238,235,.66) 30%,rgba(255,249,247,.94) 75%)!important;
 }
}

/* QA 2: the Compare mist must not bleach the original palms along the right edge.
   Keep atmospheric clearing centered on the reading column, taper it out before
   the tree cutouts; their photographic edges stay vivid at the transition. */
#compare.v62-compare::before{
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 61%,rgba(0,0,0,.5) 78%,transparent 97%);
  mask-image:linear-gradient(90deg,#000 0%,#000 61%,rgba(0,0,0,.5) 78%,transparent 97%);
}
@media(max-width:700px){
 #compare.v62-compare::before{
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 67%,rgba(0,0,0,.7) 83%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,#000 67%,rgba(0,0,0,.7) 83%,transparent 100%);
 }
}
