/* GGE 0.5.1 — animatif, hidup, dan emoji semangat non-modal */
html{scroll-behavior:smooth}
:root{
  --eg-pop-teal:#08A998;
  --eg-pop-coral:#FF7589;
  --eg-pop-gold:#FFC84D;
  --eg-pop-blue:#7ED7F7;
  --eg-pop-lav:#BBA8FF;
}
/* entrance animations */
.eg-hero,
.eg-card,
.eg-darkcard,
.eg-mintbox,
.eg-phase,
.eg-unitcard,
.eg-feature-card,
.eg-extra-card,
.eg-step,
.eg-stat,
.eg-post,
.eg-reading,
.eg-checkin{
  will-change:transform,opacity;
}
.eg-reveal{
  opacity:0;
  transform:translateY(18px) scale(.985);
  transition:opacity .55s ease, transform .55s ease;
}
.eg-reveal.is-visible{
  opacity:1;
  transform:none;
}
.eg-card:hover,
.eg-feature-card:hover,
.eg-extra-card:hover,
.eg-unitcard:hover,
.eg-post:hover,
.eg-reading:hover{
  transform:translateY(-4px);
  transition:transform .22s ease, box-shadow .22s ease;
}
.eg-btn,
.eg-chip,
.eg-chipbtn,
.eg-nav a,
.eg-tabbar a,
.eg-public-bottom a,
.eg-iconbox,
.eg-nav-art{
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.eg-btn:hover,
.eg-chip:hover,
.eg-chipbtn:hover{transform:translateY(-2px) scale(1.01)}
.eg-nav a:hover .eg-nav-art,
.eg-tabbar a:hover .eg-nav-art,
.eg-public-bottom a:hover .eg-nav-art,
.eg-tabbar a.is-active .eg-nav-art,
.eg-public-bottom a.is-active .eg-nav-art{
  transform:translateY(-3px) rotate(-8deg) scale(1.06);
}
.eg-iconbox:hover{transform:rotate(-8deg) scale(1.05)}
.eg-hero,
.eg-student-hero,
.eg-landing-hero{animation:egGlowIn .7s ease both}
.eg-joy-scene .eg-scene-students{animation:egFloatGentle 4.6s ease-in-out infinite}
.eg-joy-scene .eg-scene-sticker{animation:egWiggleSoft 4.2s ease-in-out infinite}
.eg-pill{animation:egPulseSoft 2.8s ease-in-out infinite}
.eg-bar{overflow:hidden;position:relative}
.eg-bar i{position:relative;overflow:hidden}
.eg-bar i::after{
  content:"";
  position:absolute;
  inset:0 auto 0 -38%;
  width:38%;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55),rgba(255,255,255,0));
  animation:egShimmer 2.7s linear infinite;
}
.eg-student-cheer,
.eg-cheerline,
.eg-continue-feature,
.eg-hero-badge{
  animation:egBobTiny 3.4s ease-in-out infinite;
}
/* floating emotion message */
.eg-emofloat{
  position:fixed;
  right:18px;
  bottom:92px;
  z-index:85;
  display:flex;
  align-items:flex-end;
  gap:10px;
  max-width:min(340px,calc(100vw - 28px));
  animation:egEmoIn .28s ease, egBobTiny 3s ease-in-out infinite .3s;
}
.eg-emofloat.is-leaving{animation:egEmoOut .22s ease forwards}
.eg-emofloat-emoji{
  font-size:92px;
  line-height:1;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.15));
  transform-origin:center bottom;
  animation:egWiggleSoft 2.7s ease-in-out infinite;
}
.eg-emofloat-copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-bottom:10px;
}
.eg-emofloat-copy strong,
.eg-emofloat-copy p{
  margin:0;
  color:#18475A;
  text-shadow:0 2px 10px rgba(255,255,255,.85), 0 0 2px rgba(255,255,255,.8);
}
.eg-emofloat-copy strong{
  font-size:22px;
  line-height:1.08;
  font-weight:900;
}
.eg-emofloat-copy p{
  font-size:14px;
  line-height:1.42;
  font-weight:800;
  color:#356173;
}
.eg-emofloat-x{
  position:absolute;
  top:-4px;
  right:2px;
  width:26px;
  height:26px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  color:#2D6274;
  font-size:18px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.eg-emofloat--senang .eg-emofloat-copy strong{color:#0C8F7F}
.eg-emofloat--bingung .eg-emofloat-copy strong{color:#6E4EAE}
.eg-emofloat--frustrasi .eg-emofloat-copy strong{color:#E36A61}
.eg-emofloat--bosan .eg-emofloat-copy strong{color:#B97500}
.eg-emofloat--cemas .eg-emofloat-copy strong{color:#0B80B2}
.eg-emofloat--netral .eg-emofloat-copy strong{color:#0A7B76}
/* optional cheerful hover accents */
.eg-step .eg-iconbox,
.eg-feature-card .eg-iconbox,
.eg-student-stat .eg-iconbox{animation:egBobTiny 4s ease-in-out infinite}
.eg-tabbar a.is-active,
.eg-public-bottom a.is-active{transform:translateY(-1px)}
@media (max-width:760px){
  .eg-emofloat{
    left:12px;
    right:12px;
    bottom:166px;
    gap:8px;
    max-width:none;
  }
  .eg-emofloat-emoji{font-size:82px}
  .eg-emofloat-copy strong{font-size:20px}
  .eg-emofloat-copy p{font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .eg-reveal,.eg-reveal.is-visible,.eg-hero,.eg-student-hero,.eg-landing-hero,.eg-pill,.eg-joy-scene .eg-scene-students,.eg-joy-scene .eg-scene-sticker,.eg-emofloat,.eg-emofloat-emoji,.eg-step .eg-iconbox,.eg-feature-card .eg-iconbox,.eg-student-stat .eg-iconbox,.eg-student-cheer,.eg-cheerline,.eg-continue-feature,.eg-hero-badge{
    animation:none!important;transition:none!important;transform:none!important;opacity:1!important;
  }
}
@keyframes egGlowIn{from{opacity:.2;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes egFloatGentle{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(-7px)}}
@keyframes egWiggleSoft{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
@keyframes egPulseSoft{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
@keyframes egShimmer{0%{left:-38%}100%{left:112%}}
@keyframes egBobTiny{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes egEmoIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@keyframes egEmoOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(10px) scale(.96)}}
