/* ===== Dasar & tema ===== */
:root {
  --bg: #fff6e5; --ink: #1c1b33; --mute: #6b6a85; --card: #fff; --soft: #ffe3dc;
  --a: #ff6b4a; --on: #1c1b33; --good: #1fae6b; --bad: #e5484d; --gold: #ffb400;
  --bw: 2.5px; --line: var(--ink); --sh: 0 5px 0 var(--ink); --r: 20px;
  --fh: 'Baloo 2', system-ui, sans-serif; --fb: 'Nunito', system-ui, sans-serif;
}
body[data-theme="sd"]  { --a: #ffb400; --soft: #fff0c2; --on: #1c1b33; }
body[data-theme="smp"] { --a: #2f80ed; --soft: #d8e8ff; --on: #fff; }
body[data-theme="sma"] { --a: #7c4dff; --soft: #e6dcff; --on: #fff; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font: 600 16px/1.45 var(--fb);
  background-color: var(--bg); background-image: radial-gradient(rgba(28,27,51,.09) 1.3px, transparent 1.3px); background-size: 22px 22px;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
h1, h2, h3 { font-family: var(--fh); margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
mark { background: linear-gradient(transparent 58%, var(--a) 58%, var(--a) 92%, transparent 92%); color: var(--ink); padding: 0 .08em; }
kbd { font: 800 .72em var(--fb); background: var(--soft); border: 2px solid var(--ink); border-radius: 7px; padding: 1px 7px; }
.ico { flex: none; vertical-align: middle; }

/* ===== Top bar ===== */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px clamp(14px, 4vw, 36px); background: var(--bg); border-bottom: var(--bw) solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.45rem var(--fh); }
.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--a); color: var(--on); border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); font-size: 1.3rem; transform: rotate(-6deg); }
.top-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.icon-btn:active, .profile-chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.profile-chip { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 5px 14px 5px 5px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); text-align: left; }
.profile-chip[hidden] { display: none; }
.profile-chip .av { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--ink); font: 800 1.15rem var(--fh); color: #fff; }
.who { display: flex; flex-direction: column; line-height: 1.1; } .who b { font-size: .92rem; } .who small { color: var(--mute); font-size: .72rem; font-weight: 700; }
.xpbar { height: 6px; background: var(--soft); border: 1.5px solid var(--ink); border-radius: 9px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--a); transition: width .6s; }

main { overflow-x: clip; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(18px, 4vw, 40px) clamp(14px, 4vw, 28px) 40px; }
#foot { text-align: center; color: var(--mute); font-size: .8rem; padding: 18px; display: grid; gap: 2px; }
#foot b { color: var(--ink); letter-spacing: .06em; font-size: .78rem; }
.screen-in { animation: rise .4s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ===== Komponen umum ===== */
.card { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); }
.lead { color: var(--mute); font-size: 1.1rem; margin: 8px 0 0; font-weight: 700; }
.btn { padding: 12px 22px; border-radius: 14px; font-weight: 800; border: var(--bw) solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; box-shadow: 0 2px 0 var(--ink); }
.btn.primary { background: var(--a); color: var(--on); }
.btn.xl { font: 800 1.3rem var(--fh); padding: 14px 28px; width: 100%; }
.btn.ghost.danger { color: var(--bad); }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.row.tight { margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .9rem; padding: 7px 14px 7px 10px; border-radius: 12px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); margin-bottom: 14px; }
.back:active { transform: translateY(3px); box-shadow: none; }
.step { animation: rise .4s; } .step.wide { max-width: 100%; }
.step > h2, .hub-head h2 { font-size: clamp(2rem, 6vw, 3rem); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs span { padding: 4px 12px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); color: var(--mute); }
.crumbs span.on { background: var(--a); color: var(--on); border-color: var(--ink); }
.crumbs span.done { background: var(--soft); color: var(--ink); }
.crumbs i { width: 14px; height: 2.5px; background: var(--ink); }

/* ===== Welcome ===== */
.hero { max-width: 640px; margin: 0 auto; padding-top: 1vh; }
.kicker { display: inline-block; padding: 5px 14px; border-radius: 99px; font-weight: 800; font-size: .82rem; background: #fff; border: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 4.6rem); margin: 16px 0 6px; line-height: 1; }
.welcome-card { margin-top: 24px; padding: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-weight: 800; }
.field input { width: 100%; padding: 13px 16px; font: 700 1.1rem var(--fb); color: var(--ink); background: var(--bg); border: var(--bw) solid var(--ink); border-radius: 14px; outline: none; }
.field input:focus { box-shadow: 0 0 0 4px var(--soft); background: #fff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 42px; height: 42px; border-radius: 12px; border: var(--bw) solid var(--ink); transition: transform .12s; }
.sw:hover { transform: translateY(-3px) rotate(-4deg); } .sw.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.features div { padding: 12px 6px; border-radius: 16px; background: #fff; border: 2px solid var(--ink); display: grid; text-align: center; }
.features b { font: 800 1.8rem var(--fh); color: var(--a); -webkit-text-stroke: 1.2px var(--ink); } .features span { font-size: .74rem; color: var(--mute); font-weight: 700; line-height: 1.2; }

/* ===== Jenjang ===== */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.jcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 26px 24px; min-height: 270px; border-radius: 26px; border: var(--bw) solid var(--ink); box-shadow: 0 8px 0 var(--ink); transition: transform .15s, box-shadow .15s; color: var(--ink); }
.jcard:hover { transform: translateY(-4px); box-shadow: 0 12px 0 var(--ink); } .jcard:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.jcard::before { content: ''; position: absolute; right: -60px; top: -70px; width: 150px; height: 150px; border-radius: 50%; border: var(--bw) solid var(--ink); background: rgba(255,255,255,.35); }
.jcard::after { content: ''; position: absolute; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; border: var(--bw) solid var(--ink); background: rgba(255,255,255,.55); transform: rotate(18deg); }
.t-sd { background: #ffc233; } .t-smp { background: #6fb1ff; } .t-sma { background: #b79cff; }
.jname { font: 800 4.2rem var(--fh); line-height: .95; position: relative; z-index: 1; }
.jfull { font-weight: 800; position: relative; z-index: 1; } .jdesc { font-weight: 700; opacity: .8; flex: 1; margin-top: 4px; position: relative; z-index: 1; }
.jgo { font-weight: 800; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: .9rem; position: relative; z-index: 1; }
.jgo i { font-style: normal; display: inline-block; transition: transform .15s; } .jcard:hover .jgo i { transform: translateX(4px); }

/* ===== Kelas ===== */
.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 26px; }
.kcard { padding: 20px 10px 14px; border-radius: 22px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; justify-items: center; transition: transform .12s, box-shadow .12s, background .15s; }
.kcard small { color: var(--mute); font-weight: 800; letter-spacing: .12em; font-size: .7rem; text-transform: uppercase; }
.kcard b { font: 800 4rem var(--fh); line-height: 1; }
.kcard:hover { background: var(--a); color: var(--on); transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink); } .kcard:hover small { color: inherit; }
.kcard:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }

/* ===== Hub ===== */
.hub-head { margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 14px; scrollbar-width: none; margin: 0 -4px; }
.chips::-webkit-scrollbar { display: none; }
.mchip { flex: none; padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: .92rem; background: #fff; border: 2px solid var(--ink); white-space: nowrap; box-shadow: 0 3px 0 var(--ink); transition: transform .1s; }
.mchip:hover { transform: translateY(-2px); } .mchip.sel { background: var(--ink); color: #fff; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.gcard { --c: #ff6b6b; position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 22px; min-height: 210px; background: var(--c); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: 0 7px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.gcard:hover:not(.off) { transform: translateY(-4px); box-shadow: 0 11px 0 var(--ink); } .gcard:active:not(.off) { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.g-quiz { --c: #ff8a80; } .g-math { --c: #ffd54f; } .g-memory { --c: #6fdc9f; } .g-scramble { --c: #9fa8ff; } .g-tf { --c: #ff9ccd; } .g-rain { --c: #7fd3f7; }
.g-hangman { --c: #ffb56b; } .g-race { --c: #5ee0d0; } .g-ladder { --c: #f5a3a3; } .g-pattern { --c: #c5e36d; } .g-order { --c: #d9a7ee; } .g-group { --c: #8fd8c8; } .g-typing { --c: #ffcf8a; }
.gtop { display: flex; align-items: center; justify-content: space-between; }
.gicon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; border: var(--bw) solid var(--ink); transform: rotate(-5deg); transition: transform .2s; }
.gcard:hover .gicon { transform: rotate(5deg) scale(1.06); }
.gtag { font-size: .72rem; font-weight: 800; padding: 3px 11px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); }
.gname { font: 800 1.6rem var(--fh); margin-top: 8px; line-height: 1.05; } .gdesc { font-weight: 700; font-size: .93rem; flex: 1; opacity: .85; }
.gfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 2px dashed rgba(28,27,51,.35); }
.gstars { display: flex; } .st { color: rgba(28,27,51,.22); } .st.on { color: var(--ink); } .gstars .st.on, .res-stars .on, .records .st.on { color: var(--gold); }
.gstars .st svg, .records .st svg { stroke: var(--ink); stroke-width: 1.6; }
.gbest { font-size: .8rem; font-weight: 800; opacity: .75; }
.gcard.off { opacity: .45; filter: grayscale(.9); box-shadow: 0 3px 0 var(--ink); }

/* ===== Bermain ===== */
.play-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.play-bar .back { margin: 0; } .play-title { font: 800 1.5rem var(--fh); display: grid; line-height: 1.1; } .play-title small { font: 700 .75rem var(--fb); color: var(--mute); }
.game { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.countdown { display: grid; place-items: center; min-height: 55vh; }
.countdown span { font: 800 clamp(5rem, 22vw, 11rem) var(--fh); color: var(--a); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); animation: pop .65s ease-out; }
@keyframes pop { from { transform: scale(2); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); } }
.hud { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { display: grid; justify-items: center; padding: 4px 18px 5px; border-radius: 14px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); min-width: 96px; line-height: 1.1; }
.pill small { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pill b { font: 800 1.35rem var(--fh); display: flex; align-items: center; gap: 3px; }
.pill.danger b { color: var(--bad); animation: pulse .5s infinite alternate; }
.hp { color: #d6d4e0; display: inline-flex; } .hp.on { color: var(--bad); } .hp svg { stroke: var(--ink); stroke-width: 2; }
.bump { animation: bump .35s; } @keyframes bump { 40% { transform: scale(1.14); } }
@keyframes pulse { to { transform: scale(1.18); } }
.timebar, .progress { height: 14px; border-radius: 99px; background: #fff; border: var(--bw) solid var(--ink); overflow: hidden; }
.timebar i, .progress i { display: block; height: 100%; width: 100%; background: var(--a); border-right: var(--bw) solid var(--ink); }
.progress i { width: 0; transition: width .4s; }
.q-card { padding: clamp(22px, 5vw, 36px); text-align: center; min-height: 130px; display: grid; place-content: center; gap: 12px; }
.q-card.compact { min-height: 0; padding: 14px 20px; }
.q-text { font: 700 clamp(1.35rem, 3.6vw, 2rem)/1.25 var(--fh); } .q-text.small { font-size: clamp(1.1rem, 3vw, 1.5rem); } .q-text.big { font-size: clamp(1.9rem, 6vw, 3rem); word-spacing: .15em; }
.chip { justify-self: center; padding: 3px 14px; font-size: .78rem; font-weight: 800; border-radius: 99px; background: var(--soft); border: 2px solid var(--ink); }
.shake { animation: shake .4s; } @keyframes shake { 25% { transform: translateX(-9px); } 75% { transform: translateX(9px); } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; font-weight: 800; font-size: 1.08rem; border-radius: 16px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .15s; }
.opt kbd { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--a); color: var(--on); font-size: .95rem; flex: none; }
.opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); } .opt:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.opt.right { background: #b8f0d3; animation: pop2 .4s; } .opt.right kbd { background: var(--good); color: #fff; }
.opt.wrong { background: #ffc9cb; animation: shake .4s; } .opt.wrong kbd { background: var(--bad); color: #fff; }
.opt:disabled:not(.right):not(.wrong) { opacity: .5; box-shadow: 0 2px 0 var(--ink); transform: translateY(2px); } .opt.gone { visibility: hidden; }
@keyframes pop2 { 50% { transform: scale(1.04); } }
.floaty { position: fixed; z-index: 50; font: 800 1.7rem var(--fh); color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 12px; padding: 0 10px; pointer-events: none; transform: translateX(-50%); animation: floatup 1s ease-out forwards; }
@keyframes floatup { to { transform: translate(-50%, -70px); opacity: 0; } }
.status { text-align: center; font-weight: 800; min-height: 1.5em; }

/* Math */
.math-card { padding: clamp(22px, 5vw, 40px); text-align: center; display: grid; gap: 18px; transition: background .15s; }
.math-card.flash-ok { background: #b8f0d3; } .math-card.flash-bad { background: #ffc9cb; animation: shake .4s; }
.math-q { font: 800 clamp(2.4rem, 9vw, 4.6rem) var(--fh); }
.math-card form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; width: 100%; }
.math-card input { flex: 1; min-width: 0; text-align: center; font: 800 1.8rem var(--fh); padding: 8px; color: var(--ink); background: var(--bg); border: var(--bw) solid var(--ink); border-radius: 14px; outline: none; }
.math-card input:focus { background: #fff; box-shadow: 0 0 0 4px var(--soft); } .math-hint { color: var(--mute); font-size: .85rem; text-align: center; font-weight: 700; }

/* Memory */
.set-title { text-align: center; font: 700 1.2rem var(--fh); color: var(--mute); }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; perspective: 900px; }
.mem { position: relative; aspect-ratio: 1.15; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3,1.3,.5,1); border-radius: 16px; }
.mem .face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; backface-visibility: hidden; padding: 6px; text-align: center; font-weight: 800; border: var(--bw) solid var(--ink); }
.mem .front { font: 800 2.2rem var(--fh); background: var(--a); color: var(--on); box-shadow: 0 5px 0 var(--ink); }
.mem .back { transform: rotateY(180deg); font-size: clamp(.8rem, 2.4vw, 1.05rem); background: #fff; line-height: 1.15; } .mem .back.b { background: #ffe9a8; }
.mem:hover:not(.open):not(.done) { transform: translateY(-4px) rotate(-2deg); }
.mem.open, .mem.done { transform: rotateY(180deg); } .mem.done .back { background: #b8f0d3; animation: pop2 .4s; }

/* Scramble */
.slots, .tiles { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 60px; }
.slot { width: clamp(38px, 9vw, 56px); height: clamp(46px, 11vw, 64px); border-radius: 12px; border: var(--bw) dashed var(--ink); background: rgba(255,255,255,.6); font: 800 clamp(1.3rem, 4vw, 2rem) var(--fh); }
.slot.fill { border-style: solid; background: #fff; box-shadow: 0 3px 0 var(--ink); animation: pop2 .25s; }
.slots.ok .slot { background: #b8f0d3; animation: hop .5s; } .slots.bad .slot { background: #ffc9cb; animation: shake .4s; }
@keyframes hop { 40% { transform: translateY(-14px); } }
.tile { width: clamp(42px, 10vw, 60px); height: clamp(50px, 12vw, 68px); border-radius: 12px; background: var(--a); color: var(--on); border: var(--bw) solid var(--ink); font: 800 clamp(1.4rem, 4.4vw, 2.1rem) var(--fh); box-shadow: 0 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; }
.tile:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); } .tile:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.tile:disabled { opacity: .2; box-shadow: none; }

/* Fakta/Hoaks & Kelompokkan */
.tf-card { min-height: 210px; padding: 28px; transition: background .2s; } .tf-card.enter { animation: cardin .4s cubic-bezier(.2,1.2,.4,1); }
@keyframes cardin { from { transform: translateX(60px) rotate(6deg); opacity: 0; } }
.tf-card.ok { background: #b8f0d3; } .tf-card.bad { background: #ffc9cb; animation: shake .4s; }
.verdict { font: 800 1.3rem var(--fh); min-height: 1.6rem; }
.tf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn.big { padding: 20px 12px; font: 800 1.5rem var(--fh); flex-direction: column; gap: 2px; border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
.btn.big.good { background: #8fe3b8; } .btn.big.bad { background: #ff9ea1; }
.btn.big.bin.a { background: #ffd54f; } .btn.big.bin.b { background: #8fd0ff; } .btn.big small { font: 800 .7rem var(--fb); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* Hujan Jawaban */
.rain-field { position: relative; height: min(58vh, 480px); border-radius: var(--r); overflow: hidden; border: var(--bw) solid var(--ink); background: repeating-linear-gradient(180deg, #e7f6ff 0 40px, #dcf1ff 40px 80px); touch-action: manipulation; box-shadow: var(--sh); }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--bad) 14px 28px); z-index: 1; }
.bubble { position: absolute; top: 0; width: 25%; padding: 0 5px; height: 64px; will-change: transform; transform: translateY(-120px); }
.bubble span { display: grid; place-items: center; width: 100%; height: 100%; padding: 6px 10px; border-radius: 18px; font-weight: 800; font-size: clamp(.72rem, 2.2vw, 1rem); line-height: 1.15; text-align: center; border: var(--bw) solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.c0 span { background: #ffd54f; } .c1 span { background: #7fd3f7; } .c2 span { background: #9be8b6; } .c3 span { background: #ffadd6; }
.bubble.pop span { animation: popout .45s forwards; background: var(--good) !important; color: #fff; } .bubble.burst span { animation: popout .3s forwards; background: var(--bad) !important; color: #fff; }
.bubble.reveal span { background: var(--good) !important; color: #fff; animation: pulse .4s 3 alternate; }
@keyframes popout { 50% { transform: scale(1.25); } to { transform: scale(0); opacity: 0; } }

/* Tebak Huruf */
.hang-card { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 18px 22px; align-items: center; }
.gallows { width: 100%; color: var(--ink); }
.hang-info { display: grid; gap: 12px; justify-items: start; }
.word { display: flex; gap: 6px; flex-wrap: wrap; }
.word span { width: clamp(28px, 6vw, 40px); height: clamp(36px, 8vw, 50px); display: grid; place-items: center; border-bottom: 4px solid var(--ink); font: 800 clamp(1.4rem, 4vw, 2rem) var(--fh); }
.word span.show { animation: pop2 .3s; } .word.fail span { color: var(--bad); }
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); gap: 8px; }
.key { height: 44px; border-radius: 10px; font: 800 1.1rem var(--fb); background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: transform .08s; }
.key:hover:not(:disabled) { transform: translateY(-2px); } .key:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.key.hit { background: #8fe3b8; } .key.miss { background: #ff9ea1; } .key:disabled { box-shadow: none; transform: translateY(3px); }

/* Balap Kuis */
.track { display: grid; gap: 10px; }
.lane { display: grid; grid-template-columns: 56px 1fr 34px; gap: 10px; align-items: center; font-weight: 800; }
.lane b { font: 800 1.3rem var(--fh); text-align: right; }
.rail { height: 22px; border-radius: 99px; background: #fff; border: var(--bw) solid var(--ink); overflow: hidden; }
.rail i { display: block; height: 100%; width: 0; transition: width .6s cubic-bezier(.3,1.2,.5,1); border-right: var(--bw) solid var(--ink); }
.lane.me .rail i { background: var(--a); } .lane.bot .rail i { background: #8a8aa3; }

/* Jalan Juara */
.ladder-wrap { grid-template-columns: 130px 1fr; max-width: 920px; align-items: start; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.rung { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; border-radius: 10px; background: #fff; border: 2px solid var(--ink); font-weight: 800; font-size: .85rem; transition: background .2s, transform .2s; }
.rung b { font-family: var(--fh); font-size: 1rem; } .rung.past { background: var(--soft); opacity: .6; } .rung.now { background: var(--a); color: var(--on); transform: scale(1.06); box-shadow: 0 3px 0 var(--ink); }
.ladder-main { display: grid; gap: 14px; }

/* Urutkan */
.order-area { display: grid; gap: 10px; }
.label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.order-list, .order-pool { display: flex; flex-wrap: wrap; gap: 10px; min-height: 58px; padding: 12px; border-radius: 16px; border: var(--bw) dashed var(--ink); background: rgba(255,255,255,.6); }
.order-list { flex-direction: column; align-items: stretch; } .order-pool { background: transparent; border-style: solid; }
.oi { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; font-weight: 800; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); text-align: left; transition: transform .1s; }
.oi i { font: 800 .85rem var(--fh); font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; background: var(--a); color: var(--on); border-radius: 7px; flex: none; }
.oi:hover:not(:disabled) { transform: translateY(-2px); } .oi.pool:disabled { opacity: .25; box-shadow: none; }
.oi.ok { background: #b8f0d3; } .oi.bad { background: #ffc9cb; animation: shake .4s; } .hint-empty { color: var(--mute); font-weight: 700; padding: 6px; }

/* Ketik Cepat */
.type-card { padding: 28px 22px; text-align: center; display: grid; gap: 18px; }
.type-word { font: 800 clamp(2rem, 8vw, 3.6rem) var(--fh); letter-spacing: .12em; }
.type-word span { color: #b9b7c9; display: inline-block; } .type-word .ok { color: var(--good); } .type-word .bad { color: var(--bad); } .type-word .cur { color: var(--ink); border-bottom: 5px solid var(--a); }
.type-card input { max-width: 380px; width: 100%; margin: 0 auto; text-align: center; font: 800 1.6rem var(--fh); letter-spacing: .1em; padding: 8px; text-transform: uppercase; background: var(--bg); border: var(--bw) solid var(--ink); border-radius: 14px; outline: none; }
.type-card input:focus { background: #fff; box-shadow: 0 0 0 4px var(--soft); }

/* Hasil */
.result { display: grid; place-items: start center; }
.res-card { max-width: 560px; width: 100%; padding: 30px 26px; text-align: center; animation: pop .5s cubic-bezier(.2,1.3,.4,1); }
.res-game { display: inline-block; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; background: var(--soft); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 14px; }
.res-card h2 { font-size: 2.8rem; margin: 10px 0 4px; }
.res-stars { display: flex; justify-content: center; gap: 6px; color: #e3e1ec; }
.res-stars svg { stroke: var(--ink); stroke-width: 1.4; }
.res-stars span.on { animation: starin .6s var(--d) both cubic-bezier(.2,1.5,.4,1); }
@keyframes starin { from { transform: scale(0) rotate(-180deg); opacity: 0; } }
.res-msg { font-size: 1.1rem; font-weight: 700; margin: 8px 0 12px; }
.badge-record { display: inline-block; padding: 4px 16px; border-radius: 99px; font-weight: 800; background: var(--gold); border: 2px solid var(--ink); animation: pulse .6s infinite alternate; }
.res-stats, .p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.res-stats div, .p-stats div { background: var(--soft); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 6px; display: grid; }
.res-stats b, .p-stats b { font: 800 1.8rem var(--fh); line-height: 1.1; } .res-stats span, .p-stats span { color: var(--mute); font-size: .78rem; font-weight: 800; }
.lvup { margin-top: 16px; padding: 12px; border-radius: 14px; font-weight: 800; background: var(--a); color: var(--on); border: var(--bw) solid var(--ink); }

/* Profil */
.profile { max-width: 600px; margin: 0 auto; padding: 28px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.p-av { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 26px; border: var(--bw) solid var(--ink); box-shadow: 0 5px 0 var(--ink); font: 800 3.4rem var(--fh); color: #fff; transform: rotate(-4deg); }
.p-rank { color: var(--mute); font-weight: 800; } .xp-big { width: 100%; height: 16px; border-radius: 99px; background: #fff; border: var(--bw) solid var(--ink); overflow: hidden; }
.xp-big i { display: block; height: 100%; background: var(--a); border-right: var(--bw) solid var(--ink); transition: width .6s; } .p-stats { width: 100%; }
.profile h3 { margin-top: 14px; font-size: 1.5rem; } .records { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 8px; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--ink); font-weight: 800; text-align: left; }
.records small { color: var(--mute); } .records b { display: flex; align-items: center; gap: 8px; white-space: nowrap; } .records em { font-style: normal; font-family: var(--fh); } .records .empty { color: var(--mute); justify-content: center; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 90px); background: var(--ink); color: #fff; font-weight: 800; padding: 11px 22px; border-radius: 14px; z-index: 70; opacity: 0; transition: all .3s cubic-bezier(.2,1.2,.4,1); max-width: 90vw; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===== Responsif ===== */
@media (max-width: 820px) {
  .grid3 { grid-template-columns: 1fr; gap: 16px; } .jcard { min-height: 0; padding: 20px; } .jname { font-size: 3.2rem; }
  .who small, .who b { display: none; } .profile-chip { padding: 5px; grid-template-columns: auto; } .profile-chip .xpbar { display: none; }
  .hang-card { grid-template-columns: 110px 1fr; } .ladder-wrap { grid-template-columns: 1fr; } .ladder { flex-direction: row; overflow-x: auto; padding-bottom: 6px; } .rung { flex: none; gap: 8px; }
}
@media (max-width: 560px) {
  .opts { grid-template-columns: 1fr; } .features { grid-template-columns: repeat(2, 1fr); } .mem-grid { gap: 8px; }
  .ggrid { grid-template-columns: 1fr; } .play-title { font-size: 1.15rem; } .pill { min-width: 0; padding: 4px 12px 5px; } .math-card form { flex-direction: column; }
  .brand span:last-child { font-size: 1.2rem; } .rain-field { height: 52vh; } .key { height: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ===== Akun, auth, dasbor guru, laporan ===== */
.text-btn { font-weight: 800; font-size: .9rem; padding: 9px 14px; border-radius: 12px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.text-btn[hidden] { display: none; } .text-btn:active { transform: translateY(3px); box-shadow: none; }
.note { color: var(--mute); font-weight: 700; margin: 0; } .note b { color: var(--ink); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--ink); opacity: .2; }
.field select { width: 100%; padding: 13px 16px; font: 700 1.05rem var(--fb); color: var(--ink); background: var(--bg); border: var(--bw) solid var(--ink); border-radius: 14px; outline: none; }
.field small { font-weight: 700; color: var(--mute); }
.field[hidden] { display: none; }
.code-in { text-transform: uppercase; letter-spacing: .2em; font-weight: 800 !important; }
.auth { max-width: 520px; margin: 0 auto; }
.auth-card { padding: 22px; display: grid; gap: 16px; } .auth-card h2 { font-size: 1.9rem; }
.tabs { display: inline-flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--soft); border: 2px solid var(--ink); flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 10px; font-weight: 800; font-size: .88rem; }
.tab.on { background: var(--ink); color: #fff; } .tab:not(.on):hover { background: rgba(255,255,255,.7); }
.aform { display: grid; gap: 14px; }
.form-err { color: var(--bad); font-weight: 800; min-height: 0; } .form-err:empty { display: none; }
.joinf { display: flex; gap: 10px; width: 100%; max-width: 380px; } .joinf input { flex: 1; min-width: 0; padding: 10px 14px; font: 800 1rem var(--fb); border: var(--bw) solid var(--ink); border-radius: 12px; background: var(--bg); outline: none; }
.welcome-card h2 { font-size: 1.9rem; }
.row.left { justify-content: flex-start; }

/* dasbor guru */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 8px; }
.class-card { padding: 20px; display: grid; gap: 12px; align-content: start; }
.class-card.new { background: var(--soft); }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .cc-top h3 { font-size: 1.8rem; }
.code-box { display: grid; padding: 8px 16px; border-radius: 14px; background: var(--soft); border: 2px dashed var(--ink); width: fit-content; }
.code-box small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.code-box b { font: 800 1.9rem var(--fh); letter-spacing: .18em; cursor: pointer; line-height: 1.1; } .code-box.big b { font-size: 2.6rem; }
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cv-head h2 { font-size: clamp(2rem, 6vw, 3rem); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tb-actions { display: flex; gap: 10px; flex-wrap: wrap; } .tb-actions .btn { padding: 8px 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stile { background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 14px 16px; display: grid; }
.stile b { font: 800 2.3rem var(--fh); line-height: 1.05; } .stile b small { font-size: 1.1rem; color: var(--mute); } .stile span { font-weight: 800; font-size: .8rem; color: var(--mute); }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.side-col { display: grid; gap: 18px; } .pad { padding: 18px; } .pad h3 { font-size: 1.4rem; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-weight: 700; font-size: .95rem; }
.tbl th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 6px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1.5px solid rgba(28,27,51,.15); white-space: nowrap; } .tbl tbody tr:hover { background: var(--soft); }
.who-cell { display: flex; align-items: center; gap: 10px; } .who-cell div { display: grid; line-height: 1.15; } .who-cell small { color: var(--mute); font-weight: 700; font-size: .75rem; }
.dot { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink); font: 800 1rem var(--fh); color: #fff; }
.dot.sm { width: 28px; height: 28px; font-size: .85rem; border-radius: 8px; } .dot.lg { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 16px; }
.rk { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; font: 800 .95rem var(--fh); background: #fff; border: 2px solid var(--ink); }
.rk.r1 { background: #ffd54f; } .rk.r2 { background: #d9dde8; } .rk.r3 { background: #f2a56b; }
.acts { display: flex; gap: 6px; } .mini { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 9px; border: 2px solid var(--ink); background: #fff; } .mini:hover { background: var(--a); color: var(--on); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: flex; align-items: center; gap: 10px; } .feed li > span:nth-child(2) { flex: 1; display: grid; line-height: 1.2; font-weight: 700; } .feed small { color: var(--mute); font-weight: 700; font-size: .78rem; }
.mstars { display: inline-flex; color: var(--gold); } .mstars .st { color: rgba(28,27,51,.2); } .mstars .st.on { color: var(--gold); } .mstars svg { stroke: var(--ink); stroke-width: 1.6; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; margin-bottom: 9px; font-weight: 800; font-size: .88rem; }
.bt { height: 16px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); overflow: hidden; } .bt i { display: block; height: 100%; border-right: 2px solid var(--ink); }
.bt i.hi { background: #5bd38f; } .bt i.mid { background: #ffd54f; } .bt i.low { background: #ff8a80; }
.print-only { display: none; }

/* laporan */
.report-screen { max-width: 920px; margin: 0 auto; } .rp-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.report { padding: 26px; display: grid; gap: 16px; }
.rp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-bottom: 2.5px solid var(--ink); padding-bottom: 16px; }
.rp-head small { font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; } .rp-head h2 { font-size: 2.2rem; } .rp-head p { margin: 2px 0 0; font-weight: 700; color: var(--mute); }
.rp-date { margin-left: auto; text-align: right; font-weight: 700; color: var(--mute); font-size: .85rem; }
.report h3 { font-size: 1.35rem; margin-top: 6px; } .notes { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 700; }
.rp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.act-chart { display: flex; align-items: flex-end; gap: 5px; height: 130px; border-bottom: 2.5px solid var(--ink); }
.ac { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.ac i { width: 100%; background: #e5e3ee; border-radius: 6px 6px 0 0; display: block; } .ac i.on { background: var(--a); border: 2px solid var(--ink); border-bottom: 0; }
.ac small { position: absolute; bottom: -20px; font-size: .65rem; color: var(--mute); font-weight: 800; } .act-chart { margin-bottom: 22px; }

/* mode presentasi */
body.presenting { overflow: hidden; } body.presenting #topbar, body.presenting main, body.presenting #foot { visibility: hidden; }
.present { position: fixed; inset: 0; z-index: 80; background: var(--bg); background-image: radial-gradient(rgba(28,27,51,.09) 1.3px, transparent 1.3px); background-size: 22px 22px; padding: clamp(14px, 2.4vw, 34px); display: grid; grid-template-rows: auto 1fr; gap: 18px; overflow: auto; color: var(--ink); }
.pres-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.pres-title { font: 800 clamp(2rem, 4.2vw, 3.6rem) var(--fh); line-height: 1; } .pres-sub { font-weight: 800; color: var(--mute); font-size: clamp(1rem, 1.6vw, 1.4rem); margin-top: 4px; }
.pres-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .pres-ctrl .btn { padding: 9px 18px; }
.pres-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; min-height: 0; }
.pres-board { background: #fff; border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--sh); padding: clamp(14px, 2vw, 28px); display: grid; align-content: start; gap: 18px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; min-height: 250px; }
.pod { display: grid; justify-items: center; gap: 4px; text-align: center; } .pod.empty > :not(.step-blk) { visibility: hidden; }
.pod .dot.lg { width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.pod .pn { font: 800 clamp(1.1rem, 2vw, 1.8rem) var(--fh); line-height: 1.1; overflow-wrap: anywhere; } .pod .px { font-weight: 800; color: var(--mute); }
.step-blk { width: 100%; border: var(--bw) solid var(--ink); border-radius: 14px 14px 0 0; display: grid; place-items: center; font: 800 clamp(2rem, 4vw, 3.4rem) var(--fh); margin-top: 6px; }
.p1 .step-blk { height: 130px; background: #ffd54f; } .p2 .step-blk { height: 96px; background: #d9dde8; } .p3 .step-blk { height: 70px; background: #f2a56b; }
.p1 .dot { animation: bob2 1.6s ease-in-out infinite; } @keyframes bob2 { 50% { transform: translateY(-8px) rotate(-4deg); } }
.plist { position: relative; }
.prow { position: absolute; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--soft); border: 2px solid var(--ink); border-radius: 14px; transition: transform .8s cubic-bezier(.3,1.2,.4,1), opacity .5s; font-weight: 800; }
.prow .pn { flex: 1; font: 700 clamp(1.1rem, 1.8vw, 1.5rem) var(--fh); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prow .pm { color: var(--mute); font-size: .85rem; } .prow .px { font: 800 1.3rem var(--fh); }
.pres-side { display: grid; gap: 14px; align-content: start; } .pres-side h3 { font-size: 1.6rem; }
.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ptile { background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); padding: 12px 16px; display: grid; } .ptile b { font: 800 clamp(1.8rem, 3.2vw, 2.8rem) var(--fh); line-height: 1.05; } .ptile span { font-weight: 800; color: var(--mute); font-size: .85rem; }
.feed.big { background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; padding: 16px; gap: 12px; font-size: 1.05rem; } .feed.big .dot { width: 38px; height: 38px; }
.pop-wrap { position: fixed; right: 24px; top: 24px; display: grid; gap: 12px; z-index: 90; width: min(420px, 90vw); }
.pop { display: flex; align-items: center; gap: 14px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 0 6px 0 var(--ink); border-radius: 20px; padding: 14px 18px; font-weight: 800; font-size: 1.1rem; animation: popin .5s cubic-bezier(.2,1.4,.4,1); }
.pop.out { transition: all .5s; transform: translateX(120%); opacity: 0; } @keyframes popin { from { transform: translateX(120%) rotate(6deg); } }

@media (max-width: 900px) { .cv-grid, .rp-cols, .pres-body { grid-template-columns: 1fr; } .stat-tiles { grid-template-columns: repeat(2, 1fr); } .text-btn { padding: 8px 10px; font-size: .8rem; } }
@media (max-width: 560px) { .bar-row { grid-template-columns: 90px 1fr auto; } .podium { min-height: 200px; } }

/* cetak */
@media print {
  body { background: #fff !important; background-image: none !important; font-size: 12px; }
  #topbar, #foot, .no-print, #toast, #confetti, .back { display: none !important; }
  main { max-width: none; padding: 0; } .card, .stile { box-shadow: none !important; }
  .print-only { display: block; } .step { animation: none; }
  .report { border: 1px solid #999; } .tbl tbody tr:hover { background: none; }
  .cv-grid { grid-template-columns: 1fr; } .table-wrap { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===== Soal visual beranimasi ===== */
.viz-card { padding: 14px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.viz-box { width: 100%; display: grid; place-items: center; }
.viz-svg { width: 100%; max-width: 440px; max-height: 300px; height: auto; display: block; overflow: visible; }
.viz-svg text { user-select: none; }
.g-visual { --c: #a5d8ff; } .g-visual .gicon svg { color: var(--ink); }
.pop { transform-box: fill-box; transform-origin: center; animation: popIn .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes popIn { from { transform: scale(0); opacity: 0; } }
.fadein { opacity: 0; animation: fadeIn .6s ease-out forwards; } @keyframes fadeIn { to { opacity: 1; } }
.hand { transform-origin: 100px 100px; animation: handTo ease-out both; } @keyframes handTo { from { transform: rotate(0); } to { transform: rotate(var(--r)); } }
.rot { animation: handTo 1.4s cubic-bezier(.3,.9,.3,1) both; }
.slidex { animation: slideX linear .6s both; } @keyframes slideX { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
.hop { animation: hopY .42s ease-in-out .6s; } @keyframes hopY { 50% { transform: translateY(-32px); } }
.spin { animation: spin linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse2 1.2s ease-in-out infinite; } @keyframes pulse2 { 50% { transform: scale(1.25); opacity: .7; } }
.grow { transform-box: view-box; animation: growUp .8s cubic-bezier(.2,.9,.3,1) both; } @keyframes growUp { from { transform: scaleY(0); } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 1.6s ease-out .2s forwards; } @keyframes drawIn { to { stroke-dashoffset: 0; } }
.rise { animation: riseUp 2s ease-in infinite; } @keyframes riseUp { 0% { transform: translateY(18px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
.drop { animation: dropDown .9s linear infinite; } @keyframes dropDown { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(70px); opacity: 0; } }
.drift { animation: driftX 6s ease-in-out infinite alternate; } @keyframes driftX { to { transform: translateX(14px); } }
.wave { animation: waveX 2.4s linear infinite; } @keyframes waveX { to { transform: translateX(40px); } }
.twinkle { animation: twinkle 2s ease-in-out infinite; } @keyframes twinkle { 50% { opacity: .2; } }
.moonin { animation: fadeScale 1.1s ease-out both; transform-origin: 150px 100px; } @keyframes fadeScale { from { opacity: 0; transform: scale(.7); } }
.fall { animation: fallDown 4.2s infinite; } @keyframes fallDown { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.33,0,.66,.33); } 70% { transform: translateY(225px); } 90%, 100% { transform: translateY(225px); } }
.dropin { animation: dropIn 1s cubic-bezier(.3,1.4,.5,1) both; } @keyframes dropIn { from { transform: translateY(-110px); } }
.rollin { animation: rollIn 1.1s ease-out both; } @keyframes rollIn { from { transform: translateX(-170px); } }
.rollin2 { animation: rollIn2 1.1s ease-out both; } @keyframes rollIn2 { from { transform: translateX(120px); } }
@media (prefers-reduced-motion: reduce) { .viz-svg * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
