/* meta.css — motivation layer chrome, shared by home, shell, and kit games */

#meta-toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.meta-toast { background: #fffdf9; border: 2px solid #f1dce9; border-radius: 999px; padding: 9px 18px; font: 700 14px "Segoe UI", system-ui, sans-serif; color: #5b3a5e; box-shadow: 0 6px 18px rgba(91,58,94,.18); opacity: 0; transform: translateY(-16px) scale(.9); transition: all .3s cubic-bezier(.2,1.4,.4,1); }
.meta-toast.on { opacity: 1; transform: translateY(0) scale(1); }
.meta-toast.level { background: linear-gradient(90deg, #fff3c9, #ffe3ef); border-color: #f0b23f; }
.meta-toast b { color: #d2417e; }

.meta-confetti { position: fixed; inset: 0; z-index: 998; pointer-events: none; }

.meta-pill { display: inline-flex; align-items: center; gap: 6px; background: #fffdf9; border: 2px solid #f1dce9; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: #5b3a5e; box-shadow: 0 4px 0 rgba(91,58,94,.07); }
.meta-pill b { color: #d2417e; }
.xpwrap { gap: 8px; }
.xpbar { display: inline-block; width: 74px; height: 9px; border-radius: 6px; background: #f3e5ee; overflow: hidden; vertical-align: middle; }
.xpbar > span { display: block; height: 100%; background: linear-gradient(90deg, #ff8fb3, #b48fff); border-radius: 6px; transition: width .6s; }
.meta-sound { border: 2px solid #f1dce9; background: #fffdf9; border-radius: 999px; padding: 6px 10px; font-size: 14px; cursor: pointer; box-shadow: 0 4px 0 rgba(91,58,94,.07); }
.meta-hud { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
@media (max-width: 700px) { .meta-pill.xpwrap { display: none; } }

/* homepage cards: medal + PB (left side; PLAY pill owns the right) */
.card .medal-tag { position: absolute; top: 10px; left: 12px; display: flex; align-items: center; gap: 6px; }
.card .medal { font-size: 20px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.card .pb { font-size: 10.5px; font-weight: 800; background: #fff6e5; border: 1.5px solid #f0c978; color: #8a6b1d; border-radius: 999px; padding: 2px 7px; }
.card .gold-glow { animation: goldpulse 2.4s ease-in-out infinite; }
@keyframes goldpulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.15) } }

/* kit end-screen extras */
.medalarow { display: flex; justify-content: center; gap: 14px; margin: 8px 0 14px; }
.medalarow .m { font-size: 34px; opacity: .22; filter: grayscale(1); transition: all .4s; position: relative; }
.medalarow .m.on { opacity: 1; filter: none; transform: scale(1.15); }
.medalarow .m .cap { position: absolute; left: 50%; transform: translateX(-50%); bottom: -16px; font-size: 9.5px; font-weight: 800; color: #8a6b8d; letter-spacing: .5px; white-space: nowrap; }
.runbar { height: 13px; border-radius: 8px; background: #f3e5ee; overflow: hidden; margin: 6px 0 2px; }
.runbar > div { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #ff8fb3, #b48fff); width: 0; transition: width .9s cubic-bezier(.2,.9,.3,1); }
.soclose { font-size: 13.5px; color: #b23a2e; font-weight: 700; margin-top: 4px; }
.metanote { font-size: 13px; color: #8a6b8d; margin-top: 6px; }
.xpgain { font-size: 15px; font-weight: 800; color: #14764d; }
.combo-pop { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); z-index: 900; font: 800 26px "Comic Sans MS", cursive; color: #f0b23f; text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(91,58,94,.25); pointer-events: none; animation: pop 1s forwards; }
.combo-pop.lucky { color: #54c9a5; font-size: 22px; }
@keyframes pop { 0% { opacity: 0; transform: translateX(-50%) scale(.5) } 20% { opacity: 1; transform: translateX(-50%) scale(1.2) } 70% { opacity: 1; transform: translateX(-50%) scale(1) } 100% { opacity: 0; transform: translateX(-50%) translateY(-26px) } }
.dblflag { display: inline-block; background: linear-gradient(90deg, #f0b23f, #ff8fb3); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: 1px; animation: pop .5s; }
