@import url('../fonts/fonts.css');
/* Sains Adventure Tahun 1 — gaya */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --ink: #23324a;
  --paper: #f4f7ff;
  --sky: #dbe7ff;
  --green: #3d7bff;
  --green-d: #2b57d6;
  --blue: #6d3fe0;
  --red: #e85d4a;
  --teal: #3d7bff;
  --yellow: #ffd23f;
  --yellow-d: #8a5f00;
  --coral: #e85d4a;
  --shadow: 0 4px 0 rgba(35, 50, 74, .16), 0 10px 22px rgba(35, 50, 74, .10);
}
html { font-size: 17px; }
body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><circle cx="20" cy="30" r="4" fill="%233d7bff" fill-opacity=".07"/><circle cx="90" cy="70" r="5" fill="%238b5cf6" fill-opacity=".07"/><circle cx="55" cy="100" r="3" fill="%23ffd23f" fill-opacity=".12"/></svg>'), linear-gradient(180deg, #dfeaff 0%, #efe4ff 55%, #fff5d6 100%);
  min-height: 100vh;
  overscroll-behavior: none; /* halang pull-to-refresh semasa seret */
}
/* tajuk: Fredoka (fon dimuat dari _core/fonts); teks kekal Nunito */
h1, h2, h3, h4, .brandmini, .gtitle2, .qtext, .qsub, .wtitle, .gtitle, .rmsg, .memcount {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
}
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; } /* a11y papan kekunci */
.opt, .chip, .memitem, .mitem, .diffopt, .slot, .bslot { user-select: none; -webkit-user-select: none; } /* elak sorotan teks bila tekan lama */
#app { max-width: 980px; margin: 0 auto; padding: 12px 14px 60px; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

/* topbar */
.topbar { display: flex; align-items: center; gap: 10px; padding: 6px 0 14px; }
.brandmini { font-weight: 800; font-size: .85rem; color: #5b6b85; flex: 1; text-align: center; }
.iconbtn {
  width: 48px; height: 48px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow); font-size: 1.3rem; display: grid; place-items: center;
}
.iconbtn.ghost { background: transparent; box-shadow: none; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 90; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* home */
.homehead { text-align: center; padding: 18px 0 22px; }
.homehead h1 { font-size: clamp(1.9rem, 6vw, 3rem); color: var(--blue); }
.homehead p { font-size: 1.15rem; font-weight: 700; color: #5b6b85; margin-top: 6px; }
.trophy {
  margin: 14px auto 0; display: inline-block; background: var(--yellow); color: var(--ink);
  font-weight: 900; padding: 10px 22px; border-radius: 999px; box-shadow: var(--shadow);
}
.worldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
/* pelangi per-dunia dari content (--wc) dipulihkan — tepu supaya warna pucat pun menyerlah */
.worldcard, .worldhead { filter: saturate(1.55); }
.worldcard {
  background: var(--wc, #fff); border: 3px solid #fff; border-radius: 26px; padding: 20px 18px;
  box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s; position: relative; overflow: hidden;
}
.worldcard:hover, .gamecard:hover, .opt:hover, .chip:hover, .btn:hover { transform: translateY(-2px); }
.worldcard.locked { filter: grayscale(.85); opacity: .75; }
.worldcard.done { border-color: var(--green); }
.wicon { font-size: 2.6rem; }
.wicon.big { font-size: 3.6rem; }
.wnum { font-weight: 900; font-size: .8rem; color: #5b6b85; }
.wtitle { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.bar { display: block; height: 14px; background: #ffffffcc; border-radius: 999px; overflow: hidden; border: 1px solid #0001; }
.fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #7ea0ff); border-radius: 999px; }
.wmeta { font-weight: 700; font-size: .92rem; color: #4a5a74; }
.wbadge {
  background: #fff; border: 2px dashed var(--green); color: var(--green-d); font-weight: 900;
  border-radius: 999px; padding: 6px 14px; font-size: .9rem; align-self: flex-start;
}

/* dunia */
.worldhead {
  display: flex; gap: 16px; align-items: center; background: var(--wc, #fff);
  border-radius: 26px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap;
}
.worldhead h2 { font-size: 1.35rem; margin: 2px 0 8px; }
.badgechip {
  margin-left: auto; background: #fff; border: 2px dashed var(--green); color: var(--green-d);
  font-weight: 900; padding: 8px 16px; border-radius: 999px;
}
.gamelist { display: flex; flex-direction: column; gap: 12px; }
.gamecard {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px;
  padding: 14px 16px; box-shadow: var(--shadow); text-align: left; transition: transform .15s;
}
.gamecard.locked { filter: grayscale(.9); opacity: .7; }
.gamecard.done { border: 2px solid var(--green); }
.gnum {
  width: 54px; height: 54px; border-radius: 18px; background: var(--sky); display: grid;
  place-items: center; font-size: 1.7rem; flex: none;
}
.ginfo { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.gtitle { font-weight: 800; font-size: 1.05rem; }
.goal { color: #5b6b85; font-size: .92rem; font-weight: 600; }
.gstars { font-size: 1.15rem; font-weight: 900; color: var(--yellow-d); }

/* game */
.gamehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gtitle2 { font-weight: 900; font-size: 1.2rem; }
.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #c3cfff; }
.dot.cur { background: var(--yellow); transform: scale(1.25); }
.dot.on { background: var(--green); }
.stage { background: #fff; border-radius: 28px; padding: 22px 18px; box-shadow: var(--shadow); }
.stage.rin > * { animation: rin .32s backwards; }
@keyframes rin { from { opacity: 0; transform: translateY(12px); } }
.qblock { text-align: center; margin-bottom: 18px; }
.listenbtn {
  font-size: 1.5rem; width: 76px; height: 76px; border-radius: 50%; margin-top: 10px;
  background: var(--sky); border: 3px solid #b9c6ff; box-shadow: var(--shadow);
  display: inline-grid; place-items: center; transition: transform .12s;
}
.listenbtn:hover { transform: scale(1.06); }
.qsub { font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.15; margin-bottom: 8px; }
.qtext { font-size: clamp(1.15rem, 3.5vw, 1.5rem); font-weight: 800; line-height: 1.35; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 520px; margin: 0 auto; }
.opt {
  background: var(--sky); border: 3px solid #b9c6ff; border-radius: 22px; min-height: 96px;
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-weight: 800; font-size: 1.1rem; transition: transform .12s, background .2s;
}
.opt .oe { font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; }
.opt .ot { font-size: 1.05rem; text-align: center; }
.opt.good { background: #c9f2e3; border-color: #17a86a; }
.opt.bad { background: #fde3dc; border-color: var(--red); }
.opt.picked { background: #fff3cf; border-color: var(--yellow-d); }
.opt.yes { background: #c9f2e3; }
.opt.no { background: #fde3dc; }
.opt .tres { font-size: .95rem; font-weight: 900; color: #0f7a4f; }
.opt.tested { opacity: .95; }
.opt.tested.nope .tres { color: var(--red); }
.semak { margin-top: 16px; }

/* diff */
.diffwrap { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.diffrow { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
/* ponytail: width auto — kandungan (cth. 4 emoji ~280px) melebihi 84px & melimpah ke
   tengah sel jiran → klik disekat. Sel ikut kandungan; seragamkan semula jika perlu. */
.dcell { min-height: 84px; min-width: 84px; width: auto; border-radius: 18px; }

/* tray + bins (sort) */
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.chip {
  background: #fff; border: 3px solid #b9c6ff; border-radius: 18px; min-width: 76px; min-height: 76px;
  padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  touch-action: none; transition: transform .12s;
}
.chip .oe { font-size: 2.2rem; }
.chip .ct { font-size: .8rem; font-weight: 700; color: #5b6b85; }
.chip.sel { border-color: var(--blue); background: #fdf3d1; transform: scale(1.06); }
.chip.good { border-color: #17a86a; background: #c9f2e3; }
.chip.junk { opacity: .75; }
.ghost {
  position: fixed; z-index: 999; pointer-events: none; transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25); background: #fff;
}
.bins { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.bin {
  background: #eef1ff; border: 3px dashed #a3b4ff; border-radius: 22px; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 130px;
}
.bin .oe { font-size: 1.9rem; }
.bin .bt { font-weight: 900; font-size: .95rem; text-align: center; }
.bslot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 100%; min-height: 44px; }
/* chip yang sudah diletak: disabled + jangan tangkap klik — supaya tap pada bin
   selepas chip pertama sampai ke bin (bukan ditelan button mati bertindan) */
.bslot .chip { min-width: 52px; min-height: 52px; border-width: 2px; pointer-events: none; }
.bslot .chip .oe { font-size: 1.6rem; }

/* match */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcol { display: flex; flex-direction: column; gap: 10px; }
.mitem {
  background: var(--sky); border: 3px solid #b9c6ff; border-radius: 18px; min-height: 64px;
  padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; text-align: center; transition: transform .12s;
}
.mitem .oe { font-size: 1.7rem; }
.mitem.picked { border-color: var(--blue); background: #fdf3d1; }
.mitem.good { border-color: #17a86a; background: #c9f2e3; }

/* order */
.answerrow {
  min-height: 84px; border: 3px dashed #a3b4ff; border-radius: 20px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px;
}
.answerrow:empty::after { content: attr(data-empty); color: #7b8f8a; font-weight: 700; align-self: center; }

/* build */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.slot {
  background: #eef1ff; border: 3px dashed #a3b4ff; border-radius: 20px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.slot .slotimg { font-size: 2.4rem; min-height: 46px; display: grid; place-items: center; }
.slot.filled { border-style: solid; border-color: #17a86a; background: #c9f2e3; }
/* slot kosong berdenyut halus sebagai pandangan tap (bbox tak berubah — selamat untuk ujian) */
.slot:not(.filled) { animation: slotglow 1.5s ease-in-out infinite; }
@keyframes slotglow { 50% { box-shadow: 0 0 0 5px rgba(15, 107, 107, .18); } }
.slot .bt { font-weight: 900; font-size: .95rem; }

/* memory */
.mempanel { text-align: center; }
.memgrid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0; }
.memitem {
  font-size: clamp(2.4rem, 8vw, 3.4rem); background: var(--sky); border: 3px solid #b9c6ff;
  border-radius: 20px; padding: 14px 18px; animation: pop .4s backwards;
}
.memcount { font-size: 2rem; font-weight: 900; color: var(--blue); }

/* feedback — hanya ambil ruang bila .show; ruang mati sebelum jawapan = sifar */
.fb {
  position: sticky; bottom: 12px; margin-top: 0; border-radius: 22px; padding: 0 18px;
  max-height: 0; overflow: hidden; opacity: 0; transition: .3s; text-align: center; font-weight: 800;
}
.fb:empty { display: none; }
.fb.show { max-height: 260px; opacity: 1; padding: 14px 18px; margin-top: 16px; }
.fb.ok { background: #c9f2e3; border: 3px solid #17a86a; color: #0d4f43; }
.fb.no { background: #fff3cf; border: 3px solid var(--yellow-d); color: #7a5600; }
.fb.info { background: var(--paper); border: 3px dashed var(--blue); color: var(--ink); }
.fact { font-weight: 600; margin-top: 6px; font-size: .98rem; }
.fb b { font-size: 1.15rem; }

/* result */
.result { text-align: center; padding: 14px 0; }
.rstars { font-size: clamp(2.4rem, 9vw, 3.4rem); }
.rstars .rst { display: inline-block; animation: pop .4s backwards; animation-delay: calc(var(--i) * .22s); }
/* bintang SVG (markup datang dari app.js — kontrak W3/G10) */
.starsvg { width: 1.15em; height: 1.15em; vertical-align: -0.15em; fill: #ffe9a8; transition: fill .2s; }
.starsvg.on { fill: #ffd23f; }
.starsvg.half { fill: #ffd23f; opacity: .5; }
.rmsg { font-size: 1.3rem; font-weight: 900; margin: 10px 0; }
.rwon { color: var(--green-d); font-weight: 800; margin-bottom: 18px; }
.rowbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  background: #eef1ff; border: 3px solid #b9c6ff; border-radius: 999px; padding: 14px 24px;
  font-weight: 900; font-size: 1rem; transition: transform .12s;
}
.btn.primary { background: var(--green); border-color: var(--green-d); color: #fff; }

/* celebration */
.celebrate {
  position: fixed; inset: 0; background: rgba(20, 35, 60, .55); display: grid; place-items: center;
  z-index: 100; padding: 20px;
}
.celcard {
  background: var(--paper); border-radius: 30px; padding: 34px 28px; text-align: center;
  max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: pop .4s;
}
.celicon { font-size: 3.4rem; }
.celcard h2 { margin: 10px 0 6px; font-size: 1.5rem; color: var(--blue); }
.celcard p { color: #4a5a74; font-weight: 600; margin-bottom: 16px; }
.conf { color: var(--yellow-d); letter-spacing: .3em; animation: floaty 1.6s infinite alternate; }

/* nama */
.namecard {
  background: #fff; border-radius: 30px; box-shadow: var(--shadow); max-width: 460px;
  margin: 6vh auto 0; padding: 34px 26px; text-align: center; display: flex;
  flex-direction: column; gap: 14px; align-items: center; animation: pop .35s;
}
.nameicon { font-size: 3.6rem; }
.namecard h1 { font-size: clamp(1.5rem, 6vw, 2rem); color: var(--blue); }
.namecard p { color: #5b6b85; font-weight: 700; }
.nameinput {
  width: 100%; font: inherit; font-size: 1.4rem; font-weight: 800; text-align: center;
  padding: 16px; border: 3px solid #b9c6ff; border-radius: 20px; background: var(--sky);
  outline: none;
}
.nameinput:focus { border-color: var(--blue); }
.btn.big { font-size: 1.2rem; padding: 18px 34px; width: 100%; }
.editname {
  font-size: .95rem; background: #fff; border-radius: 999px; padding: 4px 10px;
  box-shadow: var(--shadow); vertical-align: middle; margin-left: 6px;
  min-width: 44px; min-height: 44px; /* saiz sentuh minimum */
}

/* animasi Lottie (SVG) */
.lolli { display: grid; place-items: center; }
.lolli svg { width: 100%; height: 100%; }
.hero { width: min(74vw, 210px); height: 132px; margin: 0 auto -6px; }
.namepic { width: min(260px, 70vw); height: min(260px, 70vw); margin-top: -6px; }
.langpic { width: 110px; height: 110px; }
.rstar { width: 96px; height: 96px; margin: 0 auto -6px; }
.fbicon { display: inline-block; width: 46px; height: 46px; vertical-align: -12px; margin-right: 6px; }
.fbicon svg { width: 100%; height: 100%; }
.celicon.big { width: 150px; height: 150px; margin: 0 auto; }
.celicon svg { width: 100%; height: 100%; }

/* pilih bahasa */
.langrow { display: flex; gap: 14px; width: 100%; flex-wrap: wrap; }
.langbtn {
  flex: 1 1 160px; background: var(--sky); border: 3px solid #b9c6ff; border-radius: 24px;
  padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 900; font-size: 1.05rem; transition: transform .12s;
}
.langbtn:hover { transform: translateY(-3px); }
.langbtn.on { border-color: #17a86a; background: #c9f2e3; }
.langbtn .flag { font-size: 2.4rem; }

@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* konfeti — lapisan tetap, tak menyekat klik */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.cf { position: absolute; top: -7vh; font-size: 1.7rem; animation: cfdrop 1.15s cubic-bezier(.25, .7, .4, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes cfdrop { to { transform: translateY(115vh) translateX(var(--x, 0)) rotate(340deg); } }
@keyframes floaty { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
.shake { animation: shk .35s; }
@keyframes shk { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }

@media (max-width: 560px) {
  html { font-size: 16px; }
  .opt { min-height: 84px; }
  .match { grid-template-columns: 1fr; }
  .dcell { min-width: 68px; width: auto; min-height: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ——— engine aras 3+: passage · cloze · label · input ——— */
.passage {
  background: #fff4d6; border: 3px solid #ffd67e; border-radius: 18px; padding: 14px 16px;
  font-size: clamp(1rem, 3vw, 1.15rem); font-weight: 700; line-height: 1.5; text-align: left;
  margin: 0 auto 12px; max-width: 640px;
}
.clozeline {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px;
  font-size: clamp(1.05rem, 3.2vw, 1.35rem); font-weight: 800; line-height: 1.8;
  background: var(--paper); border-radius: 18px; padding: 14px; margin-bottom: 14px;
}
.ctext { white-space: pre-wrap; }
.blank {
  min-width: 92px; min-height: 52px; padding: 6px 12px; border-radius: 14px;
  border: 3px dashed #a3b4ff; background: #eef1ff; font-weight: 900; font-size: 1.1rem;
  display: inline-grid; place-items: center; vertical-align: middle;
}
.blank.filled { border-style: solid; border-color: #17a86a; background: #c9f2e3; }
.labelarea {
  position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 1;
  margin: 0 auto 16px; border: 3px solid #b9c6ff; border-radius: 24px;
  background: linear-gradient(#eef1ff, #dbe7ff); overflow: hidden;
}
.labelbg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(7rem, 28vw, 14rem); line-height: 1;
}
.slot.lbl {
  position: absolute; transform: translate(-50%, -50%); min-height: 0; min-width: 74px;
  padding: 4px 6px; background: rgba(255, 255, 255, .92);
}
.slot.lbl .bt { font-size: .8rem; }
.slot.lbl .slotimg { font-size: 1.8rem; min-height: 28px; }
.typeinput {
  display: block; width: min(420px, 100%); margin: 0 auto 14px; padding: 14px 16px;
  font-size: 1.3rem; font-weight: 800; text-align: center; border-radius: 18px;
  border: 3px solid #a3b4ff; background: #fff; font-family: inherit;
}
.typeinput:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* butang petunjuk (💡) — muncul apabila round ada medan `hint` */
.hintbtn {
  font-size: 1.35rem; width: 52px; height: 52px; border-radius: 50%; margin: 8px 4px 0;
  background: #fff4d6; border: 3px solid #ffd67e; box-shadow: var(--shadow);
  display: inline-grid; place-items: center; transition: transform .12s;
}
.hintbtn:hover { transform: scale(1.08); }
.hintbtn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ——— jiwa v2: sticker pop + gerakan (transform/opacity sahaja; hormat reduced-motion) ——— */
.opt, .chip, .mitem, .btn, .langbtn { box-shadow: 0 4px 0 rgba(35, 50, 74, .15); }
.opt:active, .chip:active, .mitem:active, .btn:active, .iconbtn:active, .gamecard:active,
.worldcard:active, .langbtn:active, .listenbtn:active, .hintbtn:active { transform: translateY(3px); }
.btn.primary {
  background: linear-gradient(#6f9dff, var(--green)); border-color: var(--green-d); color: #fff;
  box-shadow: 0 5px 0 var(--green-d);
}
.btn.primary:active { box-shadow: 0 1px 0 var(--green-d); }
.trophy { box-shadow: 0 4px 0 #d9a514, 0 8px 18px rgba(35, 50, 74, .12); }
.celcard { border: 4px solid var(--yellow); }
@keyframes punch { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 70% { transform: scale(.98); } 100% { transform: scale(1); } }
.opt.good, .chip.good, .mitem.good, .blank.filled, .slot.filled { animation: punch .35s; }
@keyframes hop { 0% { transform: translateY(0); } 45% { transform: translateY(-9px) scale(1.08); } 75% { transform: translateY(0) scale(.97, 1.03); } 100% { transform: translateY(0); } }
.gmascot { display: inline-block; font-size: 1.5rem; margin-right: 6px; animation: floaty 1.8s infinite alternate; }
.gmascot.hop { animation: hop .55s; }
.celmascot { font-size: 3.4rem; animation: hop 1.1s infinite; }
.wicon { animation: floaty 2.4s infinite alternate; }
.dot.cur { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1.25); } 50% { transform: scale(1.5); } }
.rstars .rst { animation: stpop .55s backwards; animation-delay: calc(var(--i) * .22s); }
@keyframes stpop { 0% { transform: scale(.3) translateY(18px); opacity: 0; } 60% { transform: scale(1.25) translateY(-8px); opacity: 1; } 100% { transform: scale(1) translateY(0); } }
.starsvg.on { filter: drop-shadow(0 2px 0 rgba(35, 50, 74, .2)); }
.cf { font-size: 2.1rem; animation: cfdrop 1.5s cubic-bezier(.25, .7, .4, 1) forwards; animation-delay: var(--d, 0s); }
