:root {
  --bg-dark: #0b100d;
  --card-bg: #121c15;
  --accent-bege: #FFE3B3;
  --accent-light-green: #C2DD6C;
  --accent-mid-green: #79CE67;
  --accent-emerald: #30B155;
  --text-main: #f0fdf4;
  --text-muted: #86efac;
  --danger: #ef4444; /* Mantido para alertas/erros */
  --danger-glow: rgba(239, 68, 68, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 10%, #17261b 0%, var(--bg-dark) 80%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(121, 206, 103, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(48, 177, 85, 0.1);
  border-radius: 16px;
  width: calc(100% - 24px);
  max-width: 480px;
  padding: 24px;
  margin: 24px auto;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bege), var(--accent-light-green), var(--accent-emerald));
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(121, 206, 103, 0.15);
  padding-bottom: 12px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent-bege), var(--accent-mid-green));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.timer {
  font-size: 1.1rem;
  font-weight: bold;
  background: rgba(48, 177, 85, 0.1);
  color: var(--accent-mid-green);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(121, 206, 103, 0.3);
}

input[type="text"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  background: #070d09;
  border: 1px solid rgba(121, 206, 103, 0.25);
  border-radius: 10px;
  padding: 14px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--accent-mid-green);
  box-shadow: 0 0 10px rgba(121, 206, 103, 0.3);
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-mid-green), var(--accent-emerald));
  color: #0b100d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(48, 177, 85, 0.3);
}

button.secondary {
  background: transparent;
  color: var(--accent-mid-green);
  border: 1px solid rgba(121, 206, 103, 0.4);
  box-shadow: none;
}

.hero-title { font-size: 1.35rem; line-height: 1.3; margin: 18px 0 8px; text-align: center; }
.hero-sub { color: var(--text-muted); text-align: center; font-size: 0.95rem; margin-bottom: 14px; }
.hero-list { list-style: none; margin-bottom: 18px; font-size: 0.9rem; color: var(--text-main); }
.hero-list li { padding: 4px 0 4px 22px; position: relative; }
.hero-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-emerald); font-weight: 900; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs .tab { background: transparent; color: var(--accent-mid-green); border: 1px solid rgba(121, 206, 103, 0.3); box-shadow: none; padding: 10px; }
.auth-tabs .tab.active { background: linear-gradient(135deg, var(--accent-mid-green), var(--accent-emerald)); color: #0b100d; }
.form-error { color: var(--danger); margin-top: 10px; font-size: 0.9rem; }
.form-ok { color: var(--accent-light-green); }
.menu-buttons { display: flex; flex-direction: column; gap: 10px; }
.beta { font-size: 0.65rem; background: var(--accent-bege); color: #0b100d; padding: 2px 6px; border-radius: 6px; vertical-align: middle; margin-left: 6px; letter-spacing: 1px; -webkit-text-fill-color: #0b100d; }
.shop-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(121, 206, 103, 0.12); }
.shop-item button { width: auto; padding: 8px 14px; }

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(48, 177, 85, 0.5);
  filter: brightness(1.1);
}

button:active {
  transform: translateY(0);
}

.prompt-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prompt-box {
  background: rgba(7, 13, 9, 0.6);
  border: 1px solid rgba(121, 206, 103, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.prompt-text {
  font-size: 1.1rem;
  color: var(--accent-bege);
  font-style: italic;
  word-break: break-word;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-vote {
  background: #070d09;
  border: 1px solid rgba(121, 206, 103, 0.3);
  color: var(--text-main);
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-vote:hover {
  background: rgba(121, 206, 103, 0.15);
  border-color: var(--accent-mid-green);
  box-shadow: none;
  transform: none;
}

.btn-vote.selected {
  background: var(--accent-mid-green);
  color: #0b100d;
  border-color: var(--accent-bege);
  box-shadow: 0 0 12px rgba(121, 206, 103, 0.5);
}

.reveal-card {
  background: rgba(7, 13, 9, 0.7);
  border-left: 4px solid var(--accent-mid-green);
  padding: 12px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}

.prompt-quote {
  font-size: 0.95rem;
  color: var(--accent-bege);
  margin-bottom: 6px;
}

.author-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(7, 13, 9, 0.5);
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid rgba(121, 206, 103, 0.1);
}

.leaderboard-row.winner {
  border-color: var(--accent-bege);
  background: rgba(255, 227, 179, 0.08);
}

.rank {
  font-weight: bold;
  color: var(--accent-light-green);
}

.score {
  font-weight: bold;
  color: var(--accent-bege);
}

.correct {
  color: var(--accent-mid-green);
}

.wrong {
  color: var(--danger);
}

/* Alertas e avisos em vermelho como solicitado */
@keyframes crt-flash {
    0% { color: var(--danger); text-shadow: 0 0 10px var(--danger), 0 0 20px var(--danger); }
    50% { color: var(--bg-dark); text-shadow: none; background: var(--danger); }
    100% { color: var(--danger); text-shadow: 0 0 10px var(--danger), 0 0 20px var(--danger); }
}

.timer-warning {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1) !important;
}

.timer-danger {
    animation: crt-flash 0.4s infinite;
    border-color: var(--danger);
    border-radius: 6px;
    padding: 2px 6px;
}

/* ---------- Layout de página inteira ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 24px;
  background: rgba(11, 16, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(121, 206, 103, 0.15);
}
.topbar-logo { cursor: pointer; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px; width: auto;
  background: rgba(48, 177, 85, 0.08); color: var(--text-main);
  border: 1px solid rgba(121, 206, 103, 0.25); box-shadow: none;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  text-transform: none; letter-spacing: 0; font-weight: 700;
}
.user-btn:hover { transform: none; }
.caret { color: var(--accent-mid-green); font-size: 0.8rem; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--card-bg); border: 1px solid rgba(121, 206, 103, 0.25);
  border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.dropdown button {
  background: transparent; color: var(--text-main); box-shadow: none; text-align: left;
  text-transform: none; letter-spacing: 0; font-weight: 600; padding: 10px 12px;
}
.dropdown button:hover { background: rgba(121, 206, 103, 0.12); transform: none; filter: none; }
.dropdown .danger-btn, .page-actions .danger-btn { color: #f87171; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; object-fit: cover;
  background: linear-gradient(135deg, var(--accent-mid-green), var(--accent-emerald));
  color: #0b100d; font-weight: 900;
}
.page { max-width: 1000px; margin: 0 auto; padding: 28px 20px 60px; }
.page-title { font-size: 1.8rem; margin-bottom: 20px; }
.page-actions { display: flex; gap: 10px; margin-top: 20px; }
.page-actions button { width: auto; padding: 12px 20px; }
.muted { color: var(--text-muted); font-size: 0.9rem; }
.panel {
  background: var(--card-bg); border: 1px solid rgba(121, 206, 103, 0.2);
  border-radius: 16px; padding: 22px; box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.panel-title { font-size: 1.1rem; margin-bottom: 14px; color: var(--accent-bege); }
.profile-head { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.profile-name { font-size: 1.5rem; font-weight: 800; }
.profile-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.profile-actions button { width: auto; padding: 10px 16px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  background: var(--card-bg); color: var(--text-main); text-transform: none; letter-spacing: 0;
  border: 1px solid rgba(121, 206, 103, 0.25); padding: 26px; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.tile-title { font-size: 1.25rem; font-weight: 800; color: var(--accent-light-green); }
.tile-desc { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.shop-balance { font-size: 1.2rem; margin-bottom: 8px; }
.auth-layout {
  max-width: 900px; margin: 0 auto; padding: 40px 20px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; min-height: 100vh;
}
.auth-hero .hero-title, .auth-hero .hero-sub { text-align: left; }
.auth-card { margin: 0; max-width: none; width: 100%; }
@media (max-width: 760px) {
  .auth-layout { grid-template-columns: 1fr; min-height: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-actions { justify-content: center; }
  .topbar { padding: 8px 12px; }
  #user-btn-name { display: none; }
}

.lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid rgba(121, 206, 103, 0.12); border-radius: 8px; }
.lb-row.me { background: rgba(121, 206, 103, 0.12); }
.lb-rank { width: 42px; font-weight: 900; color: var(--accent-bege); }
.lb-row:nth-child(1) .lb-rank { color: #FFD700; }
.lb-name { flex: 1; font-weight: 700; word-break: break-word; }
.lb-points { font-weight: 800; color: var(--accent-mid-green); }

.snake-panel { display: flex; flex-direction: column; align-items: center; }
.snake-score { margin-bottom: 10px; font-size: 1.05rem; }
#snake-canvas { width: 100%; max-width: 400px; aspect-ratio: 1; background: #070d09; border: 2px solid rgba(121,206,103,0.4); border-radius: 10px; touch-action: none; }
.snake-pad { display: grid; grid-template-columns: repeat(4, 56px); gap: 8px; justify-content: center; }
.snake-pad button { padding: 10px; font-size: 1.2rem; }
.fit-preview { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; background: rgba(7,13,9,0.6); border-radius: 14px; }
.fit-pet { font-size: 4.5rem; line-height: 1; }
.fit-name { text-align: center; margin-top: 8px; font-weight: 800; }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.fit-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #070d09; color: var(--text-main); text-transform: none; letter-spacing: 0; padding: 12px; border: 1px solid rgba(121,206,103,0.25); box-shadow: none; }
.fit-card.active { border-color: var(--accent-bege); box-shadow: 0 0 12px rgba(255,227,179,0.3); }
.fit-card .emoji { font-size: 2.2rem; }
.pet-emoji { font-size: 1.8rem; margin-right: 8px; }

.admin-tabs { flex-wrap: wrap; }
.admin-tabs .tab { width: auto; padding: 10px 16px; }
.admin-user { padding: 12px 0; border-bottom: 1px solid rgba(121, 206, 103, 0.12); }
.admin-user-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions button { width: auto; padding: 6px 10px; font-size: 0.72rem; }
.badge-on { font-size: 0.65rem; background: rgba(48,177,85,0.25); color: var(--accent-light-green); padding: 2px 8px; border-radius: 999px; }
.badge-ban { font-size: 0.65rem; background: rgba(239,68,68,0.2); color: #f87171; padding: 2px 8px; border-radius: 999px; }
.admin-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--accent-bege); color: #0b100d; font-weight: 800; padding: 14px 20px; text-align: center; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.5); }

/* ---------- Tiles com ícones ---------- */
.tile { align-items: center; justify-content: space-between; text-align: center; gap: 14px; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--accent-light-green); box-shadow: 0 12px 34px rgba(48, 177, 85, 0.25); }
.tile-icon { width: 72px; height: 72px; filter: drop-shadow(0 4px 10px rgba(48, 177, 85, 0.35)); }
.menu-tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .menu-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .menu-tiles { grid-template-columns: 1fr; } }

/* ---------- Destaque do menu ---------- */
.hero-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  width: 100%; margin-bottom: 18px; padding: 26px 10px; text-align: center; cursor: pointer;
  text-transform: none; letter-spacing: 0; color: var(--text-main);
  background: linear-gradient(120deg, #123a1f 0%, #1c5a2e 45%, #123a1f 100%);
  background-size: 200% 100%;
  border: 2px solid var(--accent-light-green); border-radius: 18px;
  box-shadow: 0 0 28px rgba(194, 221, 108, 0.35), inset 0 0 40px rgba(48, 177, 85, 0.25);
  animation: heroShift 6s ease-in-out infinite, heroGlow 2.8s ease-in-out infinite;
}
.hero-banner:hover { transform: scale(1.01); }
.hero-col { padding: 6px 12px; border-right: 1px solid rgba(194, 221, 108, 0.25); }
.hero-col:last-child { border-right: none; }
.hero-label { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-bege); font-weight: 800; margin-bottom: 8px; }
.hero-main { font-size: 1.5rem; font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.hero-sub2 { margin-top: 6px; font-size: 0.85rem; color: var(--accent-light-green); font-weight: 700; }
@keyframes heroShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes heroGlow { 0%, 100% { box-shadow: 0 0 20px rgba(194, 221, 108, 0.25), inset 0 0 40px rgba(48, 177, 85, 0.2); } 50% { box-shadow: 0 0 40px rgba(194, 221, 108, 0.55), inset 0 0 50px rgba(48, 177, 85, 0.35); } }
@media (max-width: 700px) {
  .hero-banner { grid-template-columns: 1fr; gap: 14px; }
  .hero-col { border-right: none; border-bottom: 1px solid rgba(194, 221, 108, 0.25); padding-bottom: 14px; }
  .hero-col:last-child { border-bottom: none; padding-bottom: 6px; }
}

/* ---------- Animações de nome ---------- */
.anim-glow { animation: nameGlow 1.8s ease-in-out infinite; }
.anim-pulse { display: inline-block; animation: namePulse 1.2s ease-in-out infinite; }
.anim-wave { display: inline-block; animation: nameWave 1.6s ease-in-out infinite; }
.anim-rainbow {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #fdee6d, #7dffa0, #5fd0ff, #b388ff, #ff5f6d);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important; animation: nameRainbow 3s linear infinite;
}
@keyframes nameGlow { 0%, 100% { text-shadow: 0 0 2px currentColor; } 50% { text-shadow: 0 0 12px currentColor, 0 0 22px currentColor; } }
@keyframes namePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes nameWave { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } 75% { transform: translateY(3px); } }
@keyframes nameRainbow { to { background-position: 300% 0; } }

/* ---------- Mercado ---------- */
.market-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(121, 206, 103, 0.12); flex-wrap: wrap; }
.market-item .info { display: flex; align-items: center; gap: 10px; }
.market-item .big-emoji { font-size: 2rem; }
.market-item input { width: 110px; padding: 8px; }
.market-item button { width: auto; padding: 8px 14px; }
.market-actions { display: flex; gap: 8px; align-items: center; }

/* ---- Jogos solo novos ---- */
.code-modes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.code-modes button.active { border-color: var(--accent-light-green); color: var(--accent-light-green); }
.code-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.code-row { display: flex; gap: 6px; justify-content: center; }
.code-cell { width: 46px; height: 46px; border: 2px solid #2c4a37; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; background: rgba(0,0,0,0.25); color: #fff; }
.code-cell.correct { background: #2e9e4f; border-color: #2e9e4f; }
.code-cell.present { background: #c9a227; border-color: #c9a227; }
.code-cell.absent { background: #3a3f3c; border-color: #3a3f3c; color: #aaa; }
.code-form { display: flex; gap: 8px; justify-content: center; }
.code-form input { max-width: 200px; text-transform: uppercase; text-align: center; letter-spacing: 3px; }
.term-stats { margin-bottom: 10px; color: var(--text-muted); }
.term-box { background: #04100a; border: 1px solid #1e5c35; border-radius: 10px; padding: 18px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; color: #7a8f82; word-break: break-all; min-height: 30px; text-align: left; }
.term-box .ok { color: #3ddc6e; }
.term-box .bad { color: #fff; background: #b3261e; }
.term-box .cur { background: #2e9e4f; color: #fff; }
.term-input { margin-top: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.news-bar-wrap { height: 8px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; margin: 8px 0 16px; }
.news-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #2e9e4f, #8de36b); }
.news-text { font-size: 1.25rem; font-weight: 700; min-height: 90px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; }
.news-btns { display: flex; gap: 12px; justify-content: center; margin: 14px 0; }
.news-btns button { min-width: 120px; }
.news-why { min-height: 44px; padding: 8px 10px; border-radius: 8px; }
.news-why.good { background: rgba(46,158,79,0.2); }
.news-why.badc { background: rgba(179,38,30,0.25); }
.code-modes button, .code-form button, .news-btns button { width: auto; }
.code-modes button { padding-left: 16px; padding-right: 16px; }

/* ---- Pets desenhados e caixa do pet ---- */
.pet-art { display: inline-block; line-height: 0; transform-origin: 50% 90%; animation: pd-idle 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.45)); }
.pet-art svg { overflow: visible; }
.pet-art .tail { transform-box: fill-box; transform-origin: 0% 100%; animation: pd-tail 1.6s ease-in-out infinite; }
.pet-art .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: pd-flap 2.4s ease-in-out infinite; }
.pet-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 28px 20px 16px; min-height: 280px; overflow: hidden; border-radius: 16px; border: 1px solid rgba(121,206,103,0.35);
    background: radial-gradient(ellipse at 50% 85%, rgba(61,220,110,0.22), transparent 60%), linear-gradient(180deg, #0a140e, #0d1f14); perspective: 700px; }
.pet-stage::after { content: ''; position: absolute; bottom: 14px; left: 50%; width: 55%; height: 16px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,0.5), transparent 70%); }
.pet-stage .pet-art { position: relative; z-index: 1; }
.pet-stage-sm { min-height: 120px; padding: 10px; border-radius: 12px; }
.pet-empty { align-self: center; color: var(--text-muted); text-align: center; padding: 40px 10px; }
.profile-pet-name { text-align: center; margin-top: 10px; font-weight: 800; }

@keyframes pd-idle { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.975); } }
@keyframes pd-tail { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
@keyframes pd-flap { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.85) translateY(4px); } }

.pd-bounce { animation: pd-bounce 0.7s ease-in-out infinite; }
@keyframes pd-bounce { 0%,100% { transform: translateY(0) scale(1.08, 0.9); } 45% { transform: translateY(-46px) scale(0.94, 1.08); } 90% { transform: translateY(0) scale(1.08, 0.9); } }
.pd-sway { animation: pd-sway 1.6s ease-in-out infinite; }
@keyframes pd-sway { 0%,100% { transform: rotate(-12deg) translateX(-10px); } 50% { transform: rotate(12deg) translateX(10px); } }
.pd-spin { animation: pd-spin 2.2s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes pd-spin { 0% { transform: rotateY(0) translateY(0); } 25% { transform: rotateY(180deg) translateY(-26px); } 50% { transform: rotateY(360deg) translateY(0); } 75% { transform: rotateZ(-10deg); } 100% { transform: rotateY(360deg) rotateZ(0); } }
.pd-disco { animation: pd-disco 0.6s ease-in-out infinite, pd-hue 2.4s linear infinite; }
@keyframes pd-disco { 0%,100% { transform: translateY(0) rotate(-9deg); } 25% { transform: translateY(-22px) rotate(0); } 50% { transform: translateY(0) rotate(9deg); } 75% { transform: translateY(-22px) rotate(0); } }
@keyframes pd-hue { from { filter: drop-shadow(0 8px 10px rgba(0,0,0,0.45)) hue-rotate(0deg); } to { filter: drop-shadow(0 8px 10px rgba(0,0,0,0.45)) hue-rotate(360deg); } }
.stage-disco { background: conic-gradient(from 0deg at 50% 100%, #ff3d81, #ffd23d, #3dff8a, #3dc3ff, #b43dff, #ff3d81); animation: pd-lights 3s linear infinite; }
.stage-disco::before { content: ''; position: absolute; inset: 0; background: rgba(5,10,7,0.72); }
@keyframes pd-lights { from { filter: hue-rotate(0); } to { filter: hue-rotate(360deg); } }
.pd-magic { animation: pd-magic 3.4s ease-in-out infinite; }
@keyframes pd-magic { 0%,100% { transform: translateY(-4px) rotate(-3deg); filter: drop-shadow(0 0 14px rgba(255,230,120,0.9)); } 50% { transform: translateY(-34px) rotate(3deg) scale(1.05); filter: drop-shadow(0 0 30px rgba(190,140,255,1)); } }
.stage-magic { background: radial-gradient(ellipse at 50% 60%, rgba(160,110,255,0.4), transparent 65%), linear-gradient(180deg, #120a24, #1c1040); }
.stage-magic::before { content: '✦ ✧ ✦  ✧ ✦ ✧'; position: absolute; top: 12px; left: 0; right: 0; text-align: center; letter-spacing: 18px; font-size: 1.2rem; color: #ffe27a; animation: pd-twinkle 1.4s ease-in-out infinite; }
@keyframes pd-twinkle { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(6px); } }
.dance-row { align-items: center; gap: 14px; }
.dance-row .pet-stage { flex: 0 0 120px; }
.dance-info { flex: 1; text-align: left; }
@media (prefers-reduced-motion: reduce) { .pet-art, .pet-art .tail, .pet-art .wing, .stage-disco, .stage-magic::before { animation: none !important; } }

/* ---- Amigos, sino, pesquisa ---- */
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  background: rgba(48,177,85,0.08); color: var(--text-main); border: 1px solid rgba(121,206,103,0.25); box-shadow: none; }
.icon-btn:hover { transform: none; background: rgba(48,177,85,0.2); }
.icon-btn.has-new { color: var(--accent-bege); border-color: var(--accent-bege); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: #e5484d; color: #fff; font-size: .7rem; font-weight: 800; align-items: center; justify-content: center; padding: 0 4px; }
.search-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
.search-wrap input { width: 0; padding: 0; opacity: 0; border-width: 0; transition: width .2s, opacity .2s, padding .2s; order: -1; }
.search-wrap.open input { width: 190px; padding: 8px 12px; opacity: 1; border-width: 1px; }
.search-results { min-width: 240px; right: 0; max-height: 320px; overflow: auto; }
.search-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.bell-wrap { position: relative; }
.bell-panel { width: 340px; max-width: 92vw; max-height: 70vh; overflow: auto; padding: 12px; }
.bell-panel .panel-title { margin-bottom: 8px; }
.bell-panel .secondary { margin-top: 8px; }
.notif { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(121,206,103,0.12); text-align: left; }
.notif-body { flex: 1; font-size: .92rem; }
.trade-line { color: var(--text-muted); font-size: .85rem; }
.notif-actions { display: flex; gap: 6px; }
.notif-actions button { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 1rem; }
.ok-btn { background: #2e9e4f; color: #fff; }
.no-btn { background: #b3261e; color: #fff; }
.toasts { position: fixed; top: 76px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: 340px; max-width: calc(100vw - 32px); }
.toast { background: var(--card-bg); border: 1px solid var(--accent-light-green); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.6); animation: toast-in .25s ease-out; }
.toast-error { border-color: #b3261e; }
.toast .notif { border-bottom: 0; }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.user-bio { margin-top: 8px; max-width: 520px; }
.inv-title { margin: 14px 0 8px; font-weight: 800; color: var(--accent-bege); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.inv-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid rgba(121,206,103,0.25); border-radius: 12px; background: #070d09; font-size: .85rem; text-align: center; }
.inv-chip.equipped { border-color: var(--accent-bege); box-shadow: 0 0 10px rgba(255,227,179,.25); }
.inv-chip .big-emoji { font-size: 2rem; }
.swatch { width: 36px; height: 36px; border-radius: 50%; display: inline-block; }
.friend-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.friend-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.friend-acts button { width: auto; padding: 8px 12px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 640px; max-width: 100%; max-height: 90vh; overflow: auto; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0; }
.trade-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.trade-item input { width: auto; }
#invite-panel .shop-item button { width: auto; padding: 6px 12px; }
@media (max-width: 640px) { .trade-cols { grid-template-columns: 1fr; } .search-wrap.open input { width: 120px; } .toasts { top: 70px; } }

.dd-title { padding: 8px 12px 2px; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.dd-sep { height: 1px; background: rgba(121,206,103,0.2); margin: 6px 0; }
.status-opt.sel, .lang-opt.sel { background: rgba(121,206,103,0.18); }
.lang-opt.sel::after, .status-opt.sel::after { content: ' ✓'; color: var(--accent-light-green); }

/* ---- Caixas ---- */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 20px; }
.box-card { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(48,177,85,.14), rgba(7,13,9,.7)); border: 1px solid rgba(121,206,103,.4); text-align: center; }
.box-art { filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.box-name { font-size: 1.2rem; font-weight: 800; color: var(--accent-bege); }
.box-price { font-size: 1.4rem; font-weight: 900; color: var(--accent-light-green); }
.box-odds { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.odds-row { display: flex; justify-content: space-between; gap: 8px; border-left: 4px solid; padding: 3px 8px; background: rgba(0,0,0,.25); border-radius: 4px; font-size: .85rem; }
.case-modal { width: 820px; }
.roller { position: relative; overflow: hidden; height: 168px; border-radius: 12px; background: #050a07; border: 1px solid rgba(121,206,103,.35); margin: 12px 0; }
.roller-strip { display: flex; height: 100%; will-change: transform; }
.roll-tile { flex: 0 0 132px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid rgba(255,255,255,.06); border-bottom: 5px solid; }
.roll-tile .pet-art { animation-duration: 1.4s; }
.roll-name { font-size: .78rem; font-weight: 700; }
.roller-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #ffd23d; box-shadow: 0 0 12px 2px rgba(255,210,61,.8); }
.roller::before, .roller::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.roller::before { left: 0; background: linear-gradient(90deg, #050a07, transparent); }
.roller::after { right: 0; background: linear-gradient(270deg, #050a07, transparent); }
.roller-marker { z-index: 3; }
.case-result { text-align: center; border: 2px solid transparent; border-radius: 14px; padding: 6px; }
.case-result:empty { display: none; }
.case-title { font-size: 1.6rem; font-weight: 900; margin-top: 8px; }
.fit-card { overflow: hidden; min-height: 112px; justify-content: flex-end; }
.fit-card .pet-art { margin-bottom: 4px; }


/* ---- Sistema de denúncias ---- */
.report-menu-opt { color: #ffb0a8 !important; }
.report-menu-opt:hover { background: rgba(255,110,110,.12) !important; }
.report-modal { box-sizing: border-box; }
.report-modal select, .report-modal textarea { box-sizing: border-box; }
.report-card { margin: 12px 0; }
.report-card .admin-user-head { align-items: center; }
.report-description { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border-radius: 10px; background: rgba(0,0,0,.22); margin: 10px 0; }

.profile-avatar-wrap { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
