/* elephant-thought-phone.css · sorahseong.com home, phones (680px and down), Classic and Forest
   The sleeping elephant's thought balloon, "Select a door to enter", in the same family as the desktop one
   (elephant-thought.css): little bubbles rise from the top of its head and curve up to the balloon over its back.
   - Classic: the calm oval with a grey line like the elephant's own drawing, between the portrait and the
     elephant's back, with even room above and below it.
   - Forest: a lighter first screen. The ghost and its antlers are smaller, its "Move me to a door" note sits just
     under it, and the elephant is a little smaller. The puffy cloud floats over the elephant's back, on the right.
   - Motion: when the doors come into view the bubbles pop up from the head, then the balloon puffs out.
     The balloon hides while a door is armed by a tap. Nothing moves with Motion off or reduced motion.
   Replaces the earlier elephant-thought-phone.css. Uses the keyframes in elephant-thought.css. */
@media (max-width: 680px) {
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint {
    position: absolute;
    grid-area: auto;
    right: auto;
    bottom: auto;
    inset: var(--ep-top) auto auto var(--ep-left);
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ep-w);
    height: var(--ep-h);
    max-width: none;
    margin: 0;
    padding: 0 0 2px;
    box-sizing: border-box;
    overflow: visible;
    clip-path: none;
    transform: none;
    translate: none;
    transform-origin: var(--ep-head);
    font: italic 400 var(--ep-size) / 1.25 Georgia, serif;
    color: var(--ep-ink);
    text-align: center;
    text-shadow: none;
    white-space: normal;
    background: var(--ep-cloud) center / 100% 100% no-repeat;
    border: 0;
    border-radius: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint > .door-universal-hint {
    display: block;
    width: 6.6em;
    color: inherit;
  }

  /* four little bubbles, from the head up: span::before, span::after, p::after, p::before (largest) */
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint::before,
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint::after,
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint > .door-universal-hint::before,
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint > .door-universal-hint::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    border: 1.2px solid var(--ep-line);
    border-radius: 50%;
    background: var(--ep-fill);
    box-shadow: var(--ep-shadow);
  }
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint > .door-universal-hint::before {
    left: var(--ep-b1-x); top: var(--ep-b1-y); width: 4px; height: 4px;
  }
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint > .door-universal-hint::after {
    left: var(--ep-b2-x); top: var(--ep-b2-y); width: 5.5px; height: 5.5px;
  }
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint::after {
    left: var(--ep-b3-x); top: var(--ep-b3-y); width: 7px; height: 7px;
  }
  :is(body.home-view[data-site-scene="plain"] .chic-woodland,
      body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"]) .chic-doors > #chic-door-hint::before {
    left: var(--ep-b4-x); top: var(--ep-b4-y); width: 8.5px; height: 8.5px;
  }

  /* Classic */
  body.home-view[data-site-scene="plain"] .chic-woodland .chic-doors > #chic-door-hint {
    --ep-left: calc(50% + 6px);
    --ep-top: -54px;
    --ep-w: 112px;
    --ep-h: 56px;
    --ep-size: 10.5px;
    --ep-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 94 62'%3E%3Cpath d='M54.51 55.58C49.55 56.22 44.18 56.40 39.29 55.80C34.40 55.20 29.72 53.90 25.18 51.97C20.63 50.04 15.15 47.68 11.99 44.20C8.84 40.73 6.23 35.56 6.25 31.13C6.27 26.70 8.97 21.14 12.10 17.62C15.23 14.11 20.49 11.94 25.03 10.04C29.57 8.13 34.40 6.78 39.33 6.19C44.26 5.61 49.65 5.93 54.61 6.53C59.58 7.13 64.61 7.91 69.11 9.80C73.62 11.70 78.49 14.39 81.66 17.90C84.82 21.41 88.06 26.46 88.10 30.87C88.14 35.28 85.10 40.85 81.92 44.36C78.74 47.87 73.61 50.06 69.04 51.93C64.47 53.80 59.47 54.93 54.51 55.58Z' fill='%23fff' stroke='%23a4a19d' stroke-width='1.3' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --ep-ink: #444;
    --ep-line: #a4a19d;
    --ep-fill: #fff;
    --ep-shadow: none;
    --ep-head: -26px 68px;
    --ep-b1-x: -28.5px;  --ep-b1-y: 66px;
    --ep-b2-x: -20.25px; --ep-b2-y: 56.25px;
    --ep-b3-x: -11px;    --ep-b3-y: 47.5px;
    --ep-b4-x: -.75px;   --ep-b4-y: 39.75px;
  }

  /* Forest: a lighter first screen */
  body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"] .chic-doors .door-elephant {
    scale: .82;
    transform-origin: 50% 100%;
  }
  body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"] .chic-doorguide .guide-ghost {
    scale: .7;
    transform-origin: 50% 100%;
  }
  body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"] .chic-doorguide.ghost-move-invitation::after {
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 17, 17, .72);
    font: 500 10.5px / 1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .01em;
  }
  body.home-view[data-site-scene="forest"] .forest-stage[data-scene="forest"] .chic-doors > #chic-door-hint {
    --ep-left: calc(50% + 32px);
    --ep-top: 6px;
    --ep-w: 104px;
    --ep-h: 66px;
    --ep-size: 10.5px;
    --ep-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 72'%3E%3Cdefs%3E%3Cfilter id='s' x='-5%25' y='-5%25' width='110%25' height='120%25'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='0.5' flood-color='%23142f24' flood-opacity='0.85'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M57.65 63.96A12.95 12.95 0 0 1 37.19 62.10A12.72 12.72 0 0 1 19.73 53.94A12.60 12.60 0 0 1 8.35 37.10A12.19 12.19 0 0 1 14.49 19.38A13.25 13.25 0 0 1 32.74 9.59A13.24 13.24 0 0 1 52.44 8.11A12.28 12.28 0 0 1 71.62 13.01A13.43 13.43 0 0 1 87.86 25.80A11.77 11.77 0 0 1 90.86 44.23A13.37 13.37 0 0 1 76.83 58.86A12.70 12.70 0 0 1 57.65 63.96Z' fill='%23fff' fill-opacity='0.92'/%3E%3Cpath d='M57.65 63.96A12.95 12.95 0 0 1 37.19 62.10A12.72 12.72 0 0 1 19.73 53.94A12.60 12.60 0 0 1 8.35 37.10A12.19 12.19 0 0 1 14.49 19.38A13.25 13.25 0 0 1 32.74 9.59A13.24 13.24 0 0 1 52.44 8.11A12.28 12.28 0 0 1 71.62 13.01A13.43 13.43 0 0 1 87.86 25.80A11.77 11.77 0 0 1 90.86 44.23A13.37 13.37 0 0 1 76.83 58.86A12.70 12.70 0 0 1 57.65 63.96Z' fill='none' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round' vector-effect='non-scaling-stroke' filter='url(%23s)'/%3E%3C/svg%3E");
    --ep-ink: #24392d;
    --ep-line: #fff;
    --ep-fill: rgba(255, 255, 255, .92);
    --ep-shadow: 0 1px 1px rgba(20, 47, 36, .8);
    --ep-head: -40px 90px;
    --ep-b1-x: -44px;    --ep-b1-y: 88px;
    --ep-b2-x: -33.75px; --ep-b2-y: 77px;
    --ep-b3-x: -22.5px;  --ep-b3-y: 67.5px;
    --ep-b4-x: -10.25px; --ep-b4-y: 58.75px;
  }

  /* a tapped (armed) door takes the stage */
  body.home-view:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors:has(.chic-door.touch-armed) > #chic-door-hint {
    opacity: 0;
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: no-preference) {
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready:not(.thought-revealed, .doors-static) > #chic-door-hint {
    opacity: 0;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static):not(:has(.chic-door.touch-armed)) > #chic-door-hint {
    opacity: 1;
    animation: ethink-cloud .5s .7s ease-out both;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static) > #chic-door-hint > .door-universal-hint {
    animation: ethink-ink .4s 1.02s ease-out both;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static) > #chic-door-hint > .door-universal-hint::before {
    animation: ethink-dot .34s .1s ease-out both;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static) > #chic-door-hint > .door-universal-hint::after {
    animation: ethink-dot .34s .24s ease-out both;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static) > #chic-door-hint::after {
    animation: ethink-dot .34s .38s ease-out both;
  }
  body.home-view.motion-enabled:is([data-site-scene="plain"], [data-site-scene="forest"]) .chic-doors.doors-ready.thought-revealed:not(.doors-static) > #chic-door-hint::before {
    animation: ethink-dot .34s .52s ease-out both;
  }
}
