/* ═══════════════════════════════════════════════════════
   Compost Club — main.css  (mobile-first)
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f6f4ee; color: #2c2c2a; transition: background 0.4s; }
/* ── Layout ───────────────────────────────────────────── */
.container { max-width: 820px; margin: 0 auto; padding: 16px; }

/* ── Header ───────────────────────────────────────────── */
.header {
  position: relative;
  z-index: 200;
  background: #edf7e5;
  border-bottom: 1px solid #cce3c2;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.logo { font-size: 20px; font-weight: 600; color: #3B6D11; display: flex; align-items: center; gap: 6px; text-decoration: none; }

/* ── Hamburger toggle (mobile only) ───────────────────── */
.nav-toggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #2c2c2a;
  padding: 4px 6px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── Nav — hidden on mobile, revealed via .nav--open ──── */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #edf7e5;
  border-bottom: 2px solid #cce3c2;
  padding: 8px 0 16px;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav.nav--open { display: flex; }

.nav a,
.nav-user,
.nav-btn {
  display: block;
  font-size: 15px;
  color: #2c2c2a;
  text-decoration: none;
  padding: 10px 20px;
  border-bottom: 1px solid #ece4dc;
  margin: 0;
}
.nav a:last-child,
.nav-user:last-child { border-bottom: none; }
.nav a:hover { color: #3B6D11; background: #dff0d4; }
.nav-user { color: #596355; font-size: 14px; }
.nav-btn {
  background: none;
  border: none;
  border-bottom: 1px solid #ece4dc;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.nav-btn:hover { color: #3B6D11; background: #dff0d4; }

/* Insane Mode button inside nav */
.insane-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 20px;
  border-radius: 0;
  border: none;
  border-top: 1px solid #cce3c2;
  background: #dff0d4;
  color: #2c2c2a;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}
.insane-btn:hover { background: #e0f0d5; }

/* ── Site messages ────────────────────────────────────── */
.site-message { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.site-message--warning { background: #fff3cd; color: #7a5800; border: 1px solid #f0d060; }
.site-message--error { background: #fdecea; color: #8b1a1a; border: 1px solid #f5c0bb; }
.site-message--success { background: #e4f0da; color: #27500A; border: 1px solid #b8d9a8; }
.site-message--info { background: #e8f0fe; color: #1a3a6b; border: 1px solid #b0c8f0; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { margin-bottom: 20px; }
.hero h1 { font-size: 22px; font-weight: 600; color: #27500A; margin-bottom: 6px; }
.hero p { font-size: 14px; color: #596355; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary { display: inline-block; padding: 10px 18px; background: #3B6D11; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none; margin-bottom: 20px; transition: background 0.2s; }
.btn-primary:hover { background: #27500A; }
.btn-cancel { display: inline-block; margin-left: 12px; font-size: 14px; color: #888; text-decoration: none; }
.btn-cancel:hover { color: #2c2c2a; }
.btn-mod { padding: 6px 14px; border-radius: 8px; border: 1px solid #cce3c2; background: #edf7e5; color: #2c2c2a; font-size: 13px; cursor: pointer; }
.btn-mod:hover { background: #daecd2; }
.btn-view { font-size: 13px; color: #3B6D11; text-decoration: none; border: 1px solid #3B6D11; padding: 4px 12px; border-radius: 6px; }
.btn-view:hover { background: #3B6D11; color: #fff; }
.btn-resolve { font-size: 13px; background: #3B6D11; color: #fff; border: none; padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.btn-resolve:hover { background: #27500A; }
.btn-search { padding: 10px 14px; background: #c4869a; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.btn-search:hover { background: #b07080; }
.back-link { font-size: 14px; color: #3B6D11; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* ── Inline action links ──────────────────────────────── */
.edit-link { font-size: 12px; color: #3B6D11; text-decoration: none; margin-left: 8px; }
.edit-link:hover { text-decoration: underline; }
.delete-link { font-size: 12px; color: #c0392b; background: none; border: none; cursor: pointer; padding: 0; margin-left: 8px; }
.delete-link:hover { text-decoration: underline; }

/* ── Forum list controls (filter + create button) ─────── */
.list-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.list-controls .btn-primary { margin-bottom: 0; }
.list-search { display: flex; gap: 6px; }
.list-search .search-input { flex: 1; }

/* ── Forum list cards ─────────────────────────────────── */
.forum-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; transition: all 0.2s; }
.forum-card:hover { box-shadow: 0 0 14px rgba(196, 134, 154, 0.65); }
.forum-icon { font-size: 26px; flex-shrink: 0; }
.forum-name { font-size: 15px; font-weight: 600; color: #27500A; text-decoration: none; display: block; margin-bottom: 4px; }
.forum-name:hover { text-decoration: underline; }
.forum-desc { font-size: 13px; color: #596355; }
.forum-info { flex: 1; min-width: 0; }
.forum-meta { font-size: 12px; color: #a06882; text-align: right; flex-shrink: 0; }

/* ── Topic list cards ─────────────────────────────────── */
.topic-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; transition: all 0.2s; }
.topic-card:hover { box-shadow: 0 0 14px rgba(196, 134, 154, 0.65); }
.topic-icon { font-size: 24px; flex-shrink: 0; }
.topic-name { font-size: 15px; font-weight: 600; color: #27500A; text-decoration: none; display: block; margin-bottom: 4px; }
.topic-name:hover { text-decoration: underline; }
.topic-desc { font-size: 13px; color: #596355; margin-bottom: 4px; }
.topic-meta-bottom { font-size: 12px; color: #596355; }
.topic-info { flex: 1; min-width: 0; }
.topic-meta { font-size: 12px; color: #a06882; text-align: right; flex-shrink: 0; white-space: nowrap; }

/* ── Post cards ───────────────────────────────────────── */
.post-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 12px; padding: 14px; display: flex; gap: 12px; margin-bottom: 12px; transition: all 0.2s; }
.post-card:hover { box-shadow: 0 0 14px rgba(196, 134, 154, 0.65); }
.post-avatar { width: 38px; height: 38px; border-radius: 50%; background: #c0dd97; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #27500A; flex-shrink: 0; }
.post-body { flex: 1; min-width: 0; }
.post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.post-author { font-size: 14px; color: #27500A; }
.post-date { font-size: 12px; color: #a06882; }
.post-title { font-size: 15px; font-weight: 600; color: #2c2c2a; margin-bottom: 6px; }
.post-text { font-size: 14px; color: #444; line-height: 1.6; word-break: break-word; }
.post-image { margin-top: 10px; }
.post-image img { max-width: 100%; border-radius: 8px; display: block; }
.post-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-actions a { font-size: 12px; color: #3B6D11; text-decoration: none; }
.post-actions a:hover { text-decoration: underline; }
.post-actions button { font-size: 12px; color: #c0392b; background: none; border: none; cursor: pointer; padding: 0; }
.post-actions button:hover { text-decoration: underline; }
.ban-btn { font-size: 12px; color: #e67e22 !important; background: none; border: none; cursor: pointer; padding: 0; }
.ban-btn:hover { text-decoration: underline; }
.report-btn { font-size: 12px; color: #a06882 !important; text-decoration: none; }
.report-btn:hover { color: #c0392b !important; text-decoration: underline; }
.locked-badge { font-size: 14px; font-weight: normal; color: #596355; background: #e0eeda; padding: 2px 8px; border-radius: 4px; }
.locked-msg { font-size: 14px; color: #596355; font-style: italic; }
.banned-badge { font-size: 11px; background: #e74c3c; color: #fff; padding: 1px 6px; border-radius: 3px; margin-left: 4px; font-weight: normal; }
.topic-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

/* ── Pagination ───────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; flex-wrap: wrap; }
.pagination a { color: #3B6D11; text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.pagination span { color: #a06882; }

/* ── Forms ────────────────────────────────────────────── */
.form-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 12px; padding: 20px; }
.form-card--narrow { max-width: 440px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #27500A; margin-bottom: 6px; }
.form-input,
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid #cce3c2; border-radius: 8px; font-size: 14px; color: #2c2c2a; outline: none; transition: border-color 0.2s; font-family: inherit; background: #fff; }
.form-input:focus,
.form-group input:focus { border-color: #3B6D11; }
.form-textarea,
.form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #cce3c2; border-radius: 8px; font-size: 14px; color: #2c2c2a; outline: none; resize: vertical; transition: border-color 0.2s; font-family: inherit; background: #fff; }
.form-textarea:focus,
.form-group textarea:focus { border-color: #3B6D11; }
.form-group textarea { min-height: 120px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.form-errors { color: #c0392b; font-size: 13px; margin-bottom: 12px; }
.field-error { color: #c0392b; font-size: 13px; margin-top: 4px; }

/* ── Search page ──────────────────────────────────────── */
.search-input { padding: 10px 12px; border: 1px solid #cce3c2; border-radius: 8px; font-size: 14px; color: #2c2c2a; outline: none; transition: border-color 0.2s; font-family: inherit; width: 100%; background: #fff; }
.search-input:focus { border-color: #3B6D11; }
.search-form { margin-bottom: 20px; }
.search-row { display: flex; gap: 8px; }
.search-row .search-input { flex: 1; width: auto; }
.result-count { font-size: 13px; color: #a06882; margin-bottom: 20px; }
.result-heading { font-size: 15px; font-weight: 600; color: #596355; text-transform: uppercase; letter-spacing: 0.05em; margin: 20px 0 10px; }
.result-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; transition: border-color 0.2s; }
.result-card:hover { box-shadow: 0 0 14px rgba(196, 134, 154, 0.65); }
.result-title { font-size: 15px; font-weight: 600; color: #27500A; text-decoration: none; display: block; margin-bottom: 4px; }
.result-title:hover { text-decoration: underline; }
.result-meta { font-size: 12px; color: #a06882; margin-bottom: 4px; }
.result-excerpt { font-size: 13px; color: #596355; line-height: 1.5; }

/* ── Moderation log ───────────────────────────────────── */
.log-entry { background: #fff; border: 2px solid #c9a8bb; border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.log-actor { font-weight: 600; color: #27500A; min-width: 80px; }
.log-action { background: #e0eeda; padding: 2px 8px; border-radius: 4px; color: #3a5e1a; white-space: nowrap; }
.log-target { flex: 1; color: #596355; min-width: 0; word-break: break-word; }
.log-time { color: #a06882; white-space: nowrap; font-size: 12px; }

/* ── Reports ──────────────────────────────────────────── */
.section-heading { font-size: 16px; font-weight: 600; color: #27500A; margin-bottom: 12px; }
.report-card { background: #fff; border: 2px solid #c9a8bb; border-radius: 12px; padding: 20px; }
.reported-post { background: #e4f0da; border-radius: 8px; padding: 12px; font-size: 14px; color: #2c2c2a; }
.report-card textarea { width: 100%; padding: 10px; border: 1px solid #cce3c2; border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; outline: none; transition: border-color 0.2s; background: #fff; }
.report-card textarea:focus { border-color: #3B6D11; }
.report-entry { background: #fff; border: 2px solid #c9a8bb; border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.report-entry.resolved { opacity: 0.6; }
.report-meta { font-size: 13px; color: #596355; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report-reporter { font-weight: 600; color: #27500A; }
.report-time { margin-left: auto; color: #a06882; font-size: 12px; }
.report-reason { font-size: 14px; color: #2c2c2a; background: #e4f0da; border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; }
.report-post-preview { font-size: 13px; color: #596355; margin-bottom: 10px; word-break: break-word; }
.report-post-preview a { color: #3B6D11; text-decoration: none; }
.report-post-preview a:hover { text-decoration: underline; }
.report-resolved-by { font-size: 12px; color: #a06882; font-style: italic; }
.report-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Critters ─────────────────────────────────────────── */
.critter { position: fixed; font-size: 28px; pointer-events: none; display: none; z-index: 999; }
body.insane .critter { display: block; }
.critter.bee { animation: fly 5s linear infinite; top: 20%; }
.critter.bee:nth-child(2) { animation-delay: 1.3s; top: 40%; }
.critter.bee:nth-child(3) { animation-delay: 2.6s; top: 70%; }
.critter.worm { animation: fly 9s linear infinite; top: 90%; font-size: 22px; }
.critter.worm:nth-child(5) { animation-delay: 3s; top: 85%; }

/* ── Falling petals ───────────────────────────────────── */
#petal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 998; overflow: hidden; display: none; }
body.insane #petal-container { display: block; }
.petal { position: absolute; animation: falldown 3.5s linear infinite; }

/* ── Normal mode wanderers ────────────────────────────── */
.wanderer {
  position: fixed;
  bottom: 14px;
  left: -6%;
  font-size: 24px;
  pointer-events: none;
  z-index: 10;
  animation: wander 45s linear infinite;
}
.wanderer--snail {
  font-size: 22px;
  bottom: 10px;
  animation-duration: 70s;
  animation-delay: 20s;
}
body.insane .wanderer { display: none; }

@keyframes wander {
  0%    { left: -6%;  opacity: 1; }
  20%   { left: 106%; opacity: 1; }
  20.1% { left: -6%;  opacity: 0; }
  99.9% { left: -6%;  opacity: 0; }
  100%  { left: -6%;  opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   Desktop overrides  (≥ 640px)
   ═══════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .container { padding: 24px 20px; }

  .header { padding: 12px 24px; gap: 16px; }
  .logo { font-size: 22px; gap: 8px; }

  .nav-toggle { display: none; }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav a,
  .nav-user,
  .nav-btn {
    display: inline;
    font-size: 14px;
    padding: 0;
    border: none;
    margin-left: 14px;
    width: auto;
  }
  .nav a:hover { background: transparent; }
  .nav-btn:hover { background: transparent; }
  .nav-user { color: #596355; }

  .insane-btn {
    display: inline-block;
    width: auto;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #b8d9a8;
    background: #dff0d4;
    font-size: 13px;
    text-align: center;
    margin-left: 14px;
  }
  .insane-btn:hover { background: #e0f0d5; }

  .hero { margin-bottom: 24px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }

  .forum-card { padding: 16px; gap: 14px; }
  .forum-icon { font-size: 30px; }
  .topic-card { padding: 16px; gap: 14px; }
  .topic-icon { font-size: 28px; }
  .post-card { padding: 16px; gap: 14px; }
  .post-avatar { width: 42px; height: 42px; font-size: 18px; }

  .form-card { padding: 24px; max-width: 640px; }

  .list-controls { flex-direction: row; align-items: center; gap: 12px; }
  .list-search { flex: 1; }
}

/* ═══════════════════════════════════════════════════════
   Insane Mode
   ═══════════════════════════════════════════════════════ */
body.insane { background: #2f5e12; color: #7fff00; }
body.insane .header { background: #3d1a08; border-bottom: 3px solid #7fff00; animation: headershake 1s infinite; }
body.insane .logo { color: #7fff00; font-size: 28px; letter-spacing: 3px; animation: rainbow 2.5s infinite; }
body.insane .hero h1 { color: #7fff00; letter-spacing: 4px; animation: rainbow 2.5s infinite; }
body.insane .hero p { color: #ffff00; animation: wiggle 0.6s infinite; }
body.insane .insane-btn { background: #ff0066; color: #fff; border: none; animation: btnbounce 0.65s infinite; }
body.insane .btn-primary { background: #3d1a08; border: 2px solid #7fff00; color: #7fff00; animation: slidegradient 1s linear infinite; letter-spacing: 2px; }
body.insane .nav { background: #3d1a08; border-color: #7fff00; }
body.insane .nav a { color: #7fff00; border-color: #3a7020; }
body.insane .nav a:hover { background: #1e4a0a; }
body.insane .nav-user { color: #aaffaa; }
body.insane .nav-btn { color: #7fff00; border-color: #3a7020; }
body.insane .nav-btn:hover { background: #1e4a0a; }
body.insane .nav-toggle { color: #7fff00; }

body.insane .forum-card { background: #1e4a0a; border: 2px solid #7fff00; animation: cardfloat 2.5s ease-in-out infinite; }
body.insane .forum-card:hover { border-color: #ff0066; box-shadow: 0 0 14px #ff0066; }
body.insane .forum-card:nth-child(2) { animation-delay: 0.3s; }
body.insane .forum-card:nth-child(3) { animation-delay: 0.6s; }
body.insane .forum-card:nth-child(4) { animation-delay: 0.9s; }
body.insane .forum-icon { animation: spin 1.1s linear infinite; display: inline-block; }
body.insane .forum-name { color: #7fff00; animation: rainbow 2.5s infinite; }
body.insane .forum-desc { color: #ffff00; }
body.insane .forum-meta { color: #ff69b4; }

body.insane .topic-card { background: #1e4a0a; border: 2px solid #7fff00; animation: cardfloat 2.5s ease-in-out infinite; }
body.insane .topic-card:hover { border-color: #ff0066; box-shadow: 0 0 14px #ff0066; }
body.insane .topic-card:nth-child(2) { animation-delay: 0.3s; }
body.insane .topic-card:nth-child(3) { animation-delay: 0.6s; }
body.insane .topic-icon { animation: spin 1.1s linear infinite; display: inline-block; }
body.insane .topic-name { color: #7fff00; animation: rainbow 2.5s infinite; }
body.insane .topic-desc { color: #ffff00; }
body.insane .topic-meta { color: #ff69b4; }
body.insane .topic-meta-bottom { color: #aaffaa; }

body.insane .post-card { background: #1e4a0a; border: 2px solid #7fff00; animation: cardfloat 2.5s ease-in-out infinite; }
body.insane .post-card:hover { border-color: #ff0066; box-shadow: 0 0 14px #ff0066; }
body.insane .post-card:nth-child(2) { animation-delay: 0.3s; }
body.insane .post-card:nth-child(3) { animation-delay: 0.6s; }
body.insane .post-avatar { background: #ff0066; color: #fff; animation: spin 2s linear infinite; }
body.insane .post-author { color: #7fff00; animation: rainbow 2.5s infinite; }
body.insane .post-date { color: #ff69b4; }
body.insane .post-title { color: #ffff00; }
body.insane .post-text { color: #aaffaa; }

body.insane .form-card { background: #1e4a0a; border: 2px solid #7fff00; }
body.insane .btn-search { background: #ff0066; }
body.insane .btn-search:hover { background: #cc0055; }
body.insane .form-label { color: #7fff00; animation: rainbow 2.5s infinite; }
body.insane .form-input,
body.insane .form-group input { background: #0d2405; border-color: #7fff00; color: #7fff00; }
body.insane .form-textarea,
body.insane .form-group textarea { background: #0d2405; border-color: #7fff00; color: #7fff00; }
body.insane .btn-cancel { color: #ff69b4; }
body.insane .back-link { color: #7fff00; }
body.insane .edit-link { color: #7fff00; }
body.insane #post-list > p { color: #aaffaa !important; }

/* ═══════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════ */
/* ── Utilities ────────────────────────────────────────── */
.d-inline { display: inline; }
.d-contents { display: contents; }
.nav-form { display: contents; }
.mb-0 { margin-bottom: 0 !important; }
.mr-sm { margin-right: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 20px; }
.mt-xl { margin-top: 24px; }
.mt-xxl { margin-top: 32px; }

/* ── Text helpers ─────────────────────────────────────── */
.text-muted { font-size: 14px; color: #5F5E5A; margin-bottom: 16px; }
.text-hint { font-size: 13px; color: #596355; }
.text-error { color: #c0392b; font-size: 14px; }
.text-link { color: #3B6D11; }
.label-hint { font-weight: normal; color: #596355; }
.empty-notice { font-size: 14px; color: #5F5E5A; margin-top: 12px; }

/* ── Image upload helpers ─────────────────────────────── */
.img-preview { max-width: 200px; border-radius: 6px; display: block; margin-bottom: 4px; }
.img-preview-wrap { margin-bottom: 8px; }
.file-input { font-size: 14px; }

/* ── Form section divider (e.g. OAuth) ────────────────── */
.form-section { margin-top: 24px; border-top: 1px solid #e0ddd5; padding-top: 20px; }
.form-section-label { font-size: 13px; color: #5F5E5A; margin-bottom: 12px; }

@keyframes rainbow { 0%{color:#ff0} 16%{color:#7fff00} 33%{color:#0ff} 50%{color:#f0f} 66%{color:#ff6600} 83%{color:#ff0066} 100%{color:#ff0} }
@keyframes headershake { 0%,100%{transform:none} 25%{transform:rotate(-0.5deg)} 75%{transform:rotate(0.5deg)} }
@keyframes wiggle { 0%,100%{transform:none} 33%{transform:translateX(-2px)} 66%{transform:translateX(2px)} }
@keyframes btnbounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
@keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
@keyframes cardfloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes falldown { 0%{top:-10%;opacity:1;transform:rotate(0deg)} 100%{top:110%;opacity:0.3;transform:rotate(360deg)} }
@keyframes fly { 0%{left:-5%;transform:scaleX(1)} 49%{left:105%;transform:scaleX(1)} 50%{left:105%;transform:scaleX(-1)} 100%{left:-5%;transform:scaleX(-1)} }
