/* Beyond Honey · entrance scene (goes with entrance.js). Uses the app's tokens. */
.entrance{position:relative;height:var(--e-h,226px);overflow:hidden;--ink:#4A3726;--ink-muted:#76604C;--honey:#F2B731;--card:#FFFBF2}
.entrance img{user-select:none;-webkit-user-drag:none}
.e-grass{position:absolute;left:0;bottom:-29px;width:100%;height:auto;mix-blend-mode:multiply;pointer-events:none}
.entrance[data-e-scene="winter"] .e-grass{bottom:-4px;mix-blend-mode:normal}
.e-hive{position:absolute;left:8px;bottom:30px;width:138px;height:160px}
.e-glow{position:absolute;left:-48px;bottom:-15px;width:250px;height:250px;border-radius:50%;
  background:radial-gradient(circle closest-side,rgba(242,183,49,.5) 0%,rgba(242,183,49,.24) 42%,rgba(242,183,49,0) 100%);animation:e-glow 4.2s ease-in-out infinite}
@keyframes e-glow{50%{transform:scale(1.07);opacity:.82}}
.e-air{position:absolute;inset:0;pointer-events:none}
.e-bee{position:absolute;left:0;top:0;width:26px;height:26px;margin:-13px 0 0 -13px;opacity:0;will-change:transform,opacity}

/* bees standing at the door, fanning */
.e-door{position:absolute;inset:0;pointer-events:none}
.e-door img{position:absolute;width:22px;height:22px;transform:scaleX(var(--f,1))}
.e-door img.fan{animation:e-fan .18s linear infinite}
@keyframes e-fan{50%{transform:scaleX(var(--f,1)) translateY(-.6px)}}

/* the number */
.e-label{position:absolute;left:156px;bottom:60px;display:flex;align-items:center;gap:8px;padding:7px 10px 8px 12px;border:0;border-radius:15px;
  background:rgba(255,251,242,.94);box-shadow:0 1px 6px rgba(201,138,18,.16);text-align:left;white-space:nowrap;cursor:pointer;font:inherit}
.e-label span{display:flex;flex-direction:column}
.e-label b{font-family:'Fraunces',Georgia,serif;font-weight:600;font-size:19px;line-height:1.15;color:var(--ink)}
.e-label small{font-family:'Nunito',system-ui,sans-serif;font-size:11.5px;line-height:1.25;color:var(--ink-muted)}
.e-label img{width:14px;height:14px;opacity:.6;mix-blend-mode:multiply}

/* the real photo: a small polaroid */
.e-photo{position:absolute;right:8px;bottom:52px;width:50px;padding:4px 4px 3px;border:0;background:#fff;border-radius:3px;
  box-shadow:0 1px 5px rgba(74,55,38,.22);transform:rotate(4deg);cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:2px}
.e-photo[hidden]{display:none}
.e-photo i{display:block;height:35px;border-radius:1px;background:linear-gradient(160deg,#c9b79b,#8d7a62) center/cover}
.e-photo small{white-space:nowrap;font-family:'Nunito',system-ui,sans-serif;font-size:8px;line-height:1.1;color:var(--ink-muted);text-align:center}

/* night */
.e-dim,.e-moon{display:none}
.entrance[data-e-scene="night"] .e-dim{display:block;position:absolute;inset:0;background:linear-gradient(rgba(52,62,96,0),rgba(52,62,96,.16));pointer-events:none}
.entrance[data-e-scene="night"] .e-moon{display:block;position:absolute;right:86px;top:10px;width:38px;mix-blend-mode:multiply;filter:brightness(1.12) contrast(1.2) saturate(1.4)}
.entrance[data-e-scene="night"] .e-glow{animation-duration:6s;background:radial-gradient(circle closest-side,rgba(242,183,49,.78) 0%,rgba(242,183,49,.34) 42%,rgba(242,183,49,0) 100%)}

/* camera resting: quiet, honest, not an error */
.entrance.is-offline .e-glow{animation:none;opacity:.35}
.e-label.is-text b{font-size:16px}
.entrance.is-offline .e-label b{font-size:15px;color:var(--ink-muted)}
.entrance.is-offline .e-label{box-shadow:none;background:rgba(255,251,242,.8)}

@media (prefers-reduced-motion:reduce){.e-glow,.e-door img{animation:none}}

@media (max-width:380px){.e-label img{display:none}}

/* the top edge of the scene always melts into the page: nothing is ever cut off in a straight line */
/* (top and bottom) */
.entrance{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26px,#000 calc(100% - 20px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 26px,#000 calc(100% - 20px),transparent 100%)}
/* without the grass the hive sits on the paper */
.entrance.no-grass .e-grass{display:none}
.entrance.no-grass .e-hive{bottom:14px}
.entrance.no-grass .e-label{bottom:44px}
.entrance.no-grass .e-photo{bottom:36px}
.entrance.no-grass .e-glow{bottom:-31px}


/* v0.10: the longer label ('46 going in · 50 coming out · 2 min ago') must still clear the photo */
.e-label small{font-size:11px}
.e-label b{font-size:18px}
.e-label small{white-space:pre-line}

/* v0.11: the photo moves up to the sky, bigger, so the label has the whole width and nothing is cut off */
.e-label b{font-size:19px}.e-label small{font-size:11.5px}
.e-photo,.entrance.no-grass .e-photo{bottom:auto;top:28px;right:12px;width:66px;padding:5px 5px 4px}
.e-photo i{height:46px}
.e-photo small{font-size:9px}
