:root {
  --sky-top: #6ec4ff;
  --sky-mid: #8ed6ff;
  --grass: #5a9c3a;
  --grass-dark: #3d7a28;
  --dirt: #8b5a2b;
  --dirt-dark: #6b4423;
  --stone: #7a7a7a;
  --creeper: #2d5a27;
  --gold: #f1c232;
  --lava: #e85d04;
  --ink: #1a1a1a;
  --paper: #f4f7ef;
  --wood: #c4a574;
  --wood-dark: #8a6b3f;
  --shadow: rgba(0, 0, 0, 0.35);
  --ok: #3d9b3d;
  --warn: #d4a017;
  --danger: #c0392b;
  --radius: 0;
  --font-display: "Press Start 2P", monospace;
  --font-body: "VT323", monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.25;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, #b8e8ff 42%, #b8e8ff 58%, var(--grass) 58%, var(--grass-dark) 72%, var(--dirt) 72%, var(--dirt-dark) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(0,0,0,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.15) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 0 48px;
  min-height: 100vh;
}

.pixel-border {
  border: 4px solid var(--ink);
  box-shadow:
    0 0 0 4px var(--gold),
    8px 8px 0 var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  background: #0b1b2a;
  line-height: 0;
}

.hero-media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-actions {
  padding: 16px 18px 4px;
  animation: rise 0.8s ease-out both;
}

.hero-actions .cta-row {
  justify-content: stretch;
}

.hero-actions .btn {
  flex: 1;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 6.2vw, 1.45rem);
  color: var(--gold);
  text-shadow: 3px 3px 0 #000;
  letter-spacing: 1px;
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 4.2vw, 0.95rem);
  line-height: 1.45;
  text-shadow: 3px 3px 0 #000;
}

.hero p {
  margin: 0 0 18px;
  font-size: 1.2rem;
  max-width: 28ch;
  color: #e8f4ff;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 3px solid #000;
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1.3;
  padding: 14px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #000;
  background: var(--gold);
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #000;
}

.btn-secondary {
  background: #89e0ff;
}

.btn-grass {
  background: #7dce55;
}

.btn-wood {
  background: var(--wood);
}

.btn-danger {
  background: #ff7b6b;
}

.modal-confirm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-confirm.hidden {
  display: none;
}

.modal-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 36, 15, 0.72);
}

.modal-confirm-box {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  background: #f4f7ef;
  border: 4px solid #3a2a1a;
  box-shadow: 6px 6px 0 #1a1208;
  padding: 18px 16px 14px;
}

.modal-confirm-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.4;
  color: #1f5c2e;
}

.modal-confirm-box.modal-danger h3 {
  color: #7a1f14;
}

.modal-confirm-msg {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.35;
  color: #10240f;
  white-space: pre-line;
}

.modal-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-confirm-actions .btn {
  flex: 1;
  min-width: 120px;
}

.modal-progresso-box {
  text-align: center;
}

.modal-progresso-box h3 {
  color: #1f5c2e;
}

.progresso-barra {
  width: 100%;
  height: 18px;
  border: 3px solid #3a2a1a;
  background: #dfe8d8;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.12);
  overflow: hidden;
  margin: 4px 0 8px;
}

.progresso-barra-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #7dce55 0 10px,
    #6bbf45 10px 20px
  );
  transition: width 0.2s ease-out;
}

.progresso-pct {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: #10240f;
}

.btn-block {
  width: 100%;
}

.section {
  padding: 28px 18px 8px;
  animation: rise 0.7s ease-out both;
}

.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #10240f;
  text-shadow: 2px 2px 0 rgba(255,255,255,.45);
}

.panel {
  background: rgba(244, 247, 239, 0.94);
  padding: 16px;
  border: 4px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,.25);
}

.panel p {
  margin: 0 0 10px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 2px dashed rgba(0,0,0,.18);
}

.meta-list li:last-child {
  border-bottom: 0;
}

.meta-list strong {
  font-family: var(--font-display);
  font-size: 0.55rem;
  align-self: center;
}

.meta-address {
  align-items: start;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.btn-copy {
  padding: 8px 10px;
  font-size: 0.45rem;
  white-space: nowrap;
  align-self: start;
}

.note-socks {
  margin-top: 12px;
  padding: 12px;
  background: #fff3bf;
  border: 3px solid #000;
}

.note-socks strong {
  font-family: var(--font-display);
  font-size: 0.55rem;
  display: block;
  margin-bottom: 6px;
}

.termo-intro {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.termo-nota {
  margin-top: 0;
  margin-bottom: 14px;
}

.termo-link-box {
  border: 3px solid #000;
  background: #fff;
  padding: 12px;
}

.termo-link-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.48rem;
  margin-bottom: 8px;
  color: #10240f;
}

.termo-url {
  display: block;
  word-break: break-all;
  color: #1a5f2a;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 12px;
  text-decoration: underline;
}

.termo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 420px) {
  .termo-actions {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.52rem;
  margin: 14px 0 8px;
}

input, textarea, select {
  width: 100%;
  border: 3px solid #000;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-size: 1.2rem;
  padding: 12px 12px;
  outline: none;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px var(--gold);
}

.kids {
  display: grid;
  gap: 8px;
}

.kid-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.suggestions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.suggestion {
  text-align: left;
  width: 100%;
  border: 3px solid #000;
  background: #e8ffe0;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  cursor: pointer;
}

.suggestion small {
  display: block;
  opacity: 0.75;
}

.status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 3px solid #000;
  background: #dff5ff;
  min-height: 1.2em;
}

.status.ok { background: #d8ffd8; }
.status.err { background: #ffd4d0; }
.status.warn { background: #fff1c2; }

.hidden { display: none !important; }

.admin-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 3px solid #000;
  background: #fff;
}

.tabela-scroll-top {
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 3px solid #000;
  border-bottom: none;
  background: #efe6d4;
  height: 18px;
  -webkit-overflow-scrolling: touch;
}

.tabela-scroll-top-inner {
  height: 1px;
  pointer-events: none;
}

.tabela-scroll {
  max-height: min(70vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-top-width: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th, td {
  border-bottom: 2px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 0.45rem;
  background: #efe6d4;
}

.badge {
  display: inline-block;
  border: 2px solid #000;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 0.42rem;
  background: #ddd;
}

.badge.pre_cadastro { background: #ffe08a; }
.badge.confirmado { background: #9be37a; }
.badge.presente { background: #7ad7ff; }
.badge.nao_vai { background: #ffb4a8; }

.phone-lookup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}

.phone-lookup .btn {
  white-space: nowrap;
}

.found-badge {
  margin: 14px 0 4px;
  padding: 12px;
  border: 3px solid #000;
  background: #e8ffe0;
  font-size: 1.05rem;
}

.found-badge .badge-titulo {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.found-badge .badge-texto {
  display: block;
  line-height: 1.3;
}

.found-badge.ok {
  background: #b8f0a8;
  border-color: #1f5c2e;
  color: #10240f;
}

.found-badge.pendente {
  background: #ffb4a8;
  border-color: #8a1f14;
  color: #3a0d08;
}

.found-badge.nao-vai {
  background: #ff8f7d;
  border-color: #5c1008;
  color: #2a0805;
}

body.modo-rsvp .mc-fx,
body.modo-rsvp .hero,
body.modo-rsvp .hero-actions,
body.modo-rsvp #detalhes,
body.modo-rsvp #termo,
body.modo-rsvp .footer {
  display: none !important;
}

body.modo-rsvp .app {
  padding-top: 12px;
  min-height: 100vh;
}

body.modo-rsvp #confirmar {
  padding-top: 8px;
  animation: rise 0.35s ease-out both;
}

body.modo-rsvp #confirmar > .section-head,
body.modo-rsvp #painel-rsvp,
body.modo-rsvp #rsvp-termo:not(.hidden) {
  display: block;
}

body.modo-rsvp #painel-rsvp {
  border: 4px solid #000;
  box-shadow: 6px 6px 0 rgba(0,0,0,.28);
}

#painel-rsvp.rsvp-dados-abertos #rsvp-lookup-wrap {
  display: none;
}

#painel-rsvp.rsvp-dados-abertos #badge-cadastro {
  display: none !important;
}

.rsvp-head {
  align-items: center;
  gap: 10px;
}

.rsvp-head h2 {
  margin: 0;
  flex: 1;
}

#btn-voltar-rsvp {
  white-space: nowrap;
  font-size: 0.42rem;
  padding: 10px 12px;
}

.rsvp-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rsvp-actions .btn-pressed {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
  outline: 3px solid #000;
  outline-offset: 2px;
  font-weight: 700;
}

.rsvp-actions .btn-pressed-ok {
  background: #1f7a32;
  color: #fff;
  filter: brightness(1.05);
}

.rsvp-actions .btn-pressed-ok::after {
  content: " ✓";
}

.rsvp-actions .btn-pressed-no {
  background: #a11f2a;
  color: #fff;
  filter: brightness(1.05);
}

.rsvp-actions .btn-pressed-no::after {
  content: " ✓";
}

.rsvp-actions .btn-pulse {
  animation: mc-cta-party 1.35s ease-in-out infinite;
}

.rsvp-termo-box {
  position: relative;
  margin: 14px 0 0;
  padding: 12px;
  border: 3px solid #000;
  background: #f4f7ef;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.rsvp-termo-titulo {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.4;
  color: #2a4a22;
  opacity: 0.9;
}

.rsvp-termo-msg {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #1a1a1a;
  opacity: 0.92;
}

.rsvp-termo-box .btn {
  margin-top: 4px;
}

.phone-list {
  display: grid;
  gap: 10px;
}

.phone-card {
  border: 3px solid #000;
  background: #fff;
  padding: 12px;
}

.phone-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.phone-number {
  font-family: var(--font-display);
  font-size: 0.58rem;
  line-height: 1.4;
}

.phone-name,
.phone-kids,
.phone-meias {
  margin: 4px 0;
}

.phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.phone-actions .btn {
  font-size: 0.45rem;
  padding: 10px 8px;
  text-decoration: none;
}

.phone-empty {
  margin: 8px 0 0;
  opacity: 0.8;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
}

.section-head .btn {
  font-size: 0.48rem;
  padding: 10px 12px;
  flex-shrink: 0;
}

.section-head-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.section-head-actions .btn {
  font-size: 0.45rem;
  padding: 10px 10px;
}

.presenca-grupos {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.presenca-grupo {
  border: 3px solid #000;
  background: #fff;
  padding: 10px;
}

.presenca-grupo.presente {
  background: #e8ffe0;
}

.presenca-fone-titulo {
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.4;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px dashed rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-wa {
  font-size: 0.42rem !important;
  padding: 8px 10px !important;
  text-decoration: none;
}

.phone-actions a.btn {
  text-decoration: none;
}

.presenca-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.presenca-linha.crianca {
  padding-left: 12px;
}

.presenca-linha .nome {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.presenca-linha .papel {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-right: 4px;
}

.presenca-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  accent-color: #3d9b3d;
}

.edit-pessoa-linha {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.phone-card .presenca-linha {
  padding: 2px 0;
}

.phone-card .presenca-linha.crianca {
  padding-left: 8px;
}

.dados-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  min-width: 720px;
}

.dados-table th,
.dados-table td {
  border: 2px solid #000;
  padding: 6px 5px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.dados-table th {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #efe6d4;
  white-space: nowrap;
}

.dados-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #efe6d4;
  box-shadow: 0 2px 0 #000;
}

.dados-table td.num,
.dados-table th.num {
  text-align: center;
  white-space: nowrap;
}

.dados-table tr.confirmado,
.dados-table tr.presente {
  background: #e8ffe0;
}

.dados-table tr.nao_vai {
  background: #ffe8e4;
}

.pessoa-cell {
  min-width: 110px;
}

.pessoa-check-linha {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
}

.pessoa-check-linha span {
  word-break: break-word;
}

.pessoa-vazia {
  background: #f7f7f7;
}

.linha-extra td {
  height: 28px;
  background: #fff;
}

.linha-extra .box-branco {
  opacity: 0.55;
}

.tabela-resumo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 1rem;
}

.tabela-resumo .box {
  border: 3px solid #000;
  padding: 8px;
  background: #fff;
}

.tabela-resumo .box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  margin-bottom: 4px;
}

.tabela-resumo .box .pct {
  font-size: 0.85em;
  opacity: 0.75;
}

.busca-resultado {
  margin: 8px 0 0;
  font-size: 1.05rem;
  opacity: 0.85;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.dash-grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.dash-item {
  border: 3px solid #000;
  background: #fff;
  padding: 10px 6px;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 72px;
}

.dash-item.dash-ok { background: #e8ffe0; }
.dash-item.dash-warn { background: #fff1c2; }

.dash-label {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.15;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.dash-value {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 4.5vw, 0.95rem);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-pct {
  font-family: var(--font-body);
  font-size: 0.7em;
  font-weight: normal;
  opacity: 0.75;
  margin-left: 4px;
}

.dash-sub {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.2;
  opacity: 0.85;
}

.rsvp-hint {
  margin: 6px 0 12px;
  font-size: 1.05rem;
  line-height: 1.35;
  opacity: 0.9;
}

.phone-meta {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  font-size: 0.95rem;
  line-height: 1.3;
  opacity: 0.9;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.chart-card {
  border: 3px solid #000;
  background: #fffef6;
  padding: 10px;
}

.chart-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  line-height: 1.35;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 120px;
  overflow-x: auto;
  padding: 4px 2px 0;
}

.chart-bar-item {
  flex: 0 0 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 110px;
}

.chart-bar {
  width: 18px;
  border: 2px solid #000;
  border-bottom-width: 3px;
  min-height: 6px;
}

.chart-n {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.chart-d {
  font-size: 0.75rem;
  opacity: 0.8;
  white-space: nowrap;
}

.chart-empty {
  margin: 0;
  opacity: 0.75;
  font-size: 1rem;
}

.footer {
  text-align: center;
  padding: 24px 16px 8px;
  font-size: 1rem;
  color: #10240f;
}

.footer a {
  color: inherit;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bob {
  animation: bob 2.4s ease-in-out infinite;
}

/* --- Minecraft party FX --- */
.mc-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mc-cloud {
  position: absolute;
  top: 8%;
  width: 74px;
  height: 28px;
  background:
    linear-gradient(#fff 0 0) 10px 10px / 54px 14px no-repeat,
    linear-gradient(#fff 0 0) 0 16px / 28px 12px no-repeat,
    linear-gradient(#fff 0 0) 40px 14px / 34px 14px no-repeat;
  opacity: 0.55;
  animation: mc-cloud-drift 28s linear infinite;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.12));
}
.mc-cloud.c1 { left: -20%; animation-duration: 32s; top: 6%; }
.mc-cloud.c2 { left: -30%; animation-duration: 40s; animation-delay: -12s; top: 14%; transform: scale(1.25); }
.mc-cloud.c3 { left: -25%; animation-duration: 36s; animation-delay: -22s; top: 10%; transform: scale(.85); }

.mc-block {
  position: absolute;
  bottom: -28px;
  left: var(--x, 50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0,0,0,.55);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.22), inset 3px 3px 0 rgba(255,255,255,.18);
  animation: mc-float-up var(--d, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.mc-dirt { background: #8b5a2b; }
.mc-grass { background: linear-gradient(#5a9c3a 0 38%, #8b5a2b 38% 100%); }
.mc-gold { background: #f1c232; }
.mc-stone { background: #8a8a8a; }
.mc-diamond { background: linear-gradient(135deg, #7ef9ff, #3ec6d4 45%, #1f8fa0); }
.mc-tnt {
  background: linear-gradient(#fff 0 22%, #d63b3b 22% 78%, #fff 78% 100%);
  box-shadow: inset 0 0 0 2px #111, inset -3px -3px 0 rgba(0,0,0,.2);
}

.mc-orb {
  position: absolute;
  bottom: -16px;
  left: var(--x, 40%);
  width: 12px;
  height: 12px;
  background: #7dce55;
  border: 2px solid #1a3d12;
  animation: mc-orb-rise var(--d, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.mc-confetti {
  position: absolute;
  top: -12px;
  left: var(--x, 50%);
  width: 8px;
  height: 8px;
  background: var(--c, #f1c232);
  border: 1px solid #111;
  animation: mc-confetti-fall var(--d, 5s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.mc-creeper {
  position: absolute;
  right: 6px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  background-color: #3d7a28;
  background-image:
    linear-gradient(#111, #111),
    linear-gradient(#111, #111),
    linear-gradient(#111, #111),
    linear-gradient(#111, #111),
    linear-gradient(#111, #111);
  background-size: 6px 6px, 6px 6px, 8px 10px, 6px 8px, 6px 8px;
  background-position: 8px 8px, 22px 8px, 14px 16px, 8px 24px, 22px 24px;
  background-repeat: no-repeat;
  border: 2px solid #111;
  animation: mc-creeper-peek 7s ease-in-out infinite;
  opacity: 0.92;
}

/* Bonequinho Minecraft (Steve) andando */
.mc-steve {
  position: absolute;
  left: -48px;
  bottom: 42px;
  width: 28px;
  height: 56px;
  z-index: 1;
  animation: mc-steve-walk 14s linear infinite;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.25));
}

.steve-head {
  position: absolute;
  top: 0;
  left: 6px;
  width: 16px;
  height: 16px;
  background: #c68642;
  border: 2px solid #111;
  box-sizing: border-box;
  z-index: 3;
  background-image:
    linear-gradient(#3b2314, #3b2314),
    linear-gradient(#111, #111),
    linear-gradient(#111, #111),
    linear-gradient(#7a3e1d, #7a3e1d);
  background-size: 16px 4px, 3px 3px, 3px 3px, 6px 2px;
  background-position: 0 0, 3px 7px, 10px 7px, 5px 11px;
  background-repeat: no-repeat;
}

.steve-body {
  position: absolute;
  top: 16px;
  left: 6px;
  width: 16px;
  height: 18px;
  background: #3d6ea8;
  border: 2px solid #111;
  box-sizing: border-box;
  z-index: 2;
}

.steve-arm {
  position: absolute;
  top: 16px;
  width: 6px;
  height: 16px;
  background: #c68642;
  border: 2px solid #111;
  box-sizing: border-box;
  transform-origin: top center;
  z-index: 1;
}
.steve-arm.l { left: 0; animation: mc-steve-swing 0.55s ease-in-out infinite; }
.steve-arm.r { right: 0; left: auto; animation: mc-steve-swing 0.55s ease-in-out infinite reverse; }

.steve-leg {
  position: absolute;
  top: 34px;
  width: 7px;
  height: 18px;
  background: #3b4f7a;
  border: 2px solid #111;
  box-sizing: border-box;
  transform-origin: top center;
  z-index: 1;
}
.steve-leg.l { left: 6px; animation: mc-steve-swing 0.55s ease-in-out infinite reverse; }
.steve-leg.r { left: 15px; animation: mc-steve-swing 0.55s ease-in-out infinite; }


.hero-pixel-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,.28) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: mc-shine 4s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

.hero-party-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.55rem;
  line-height: 1.2;
  color: #111;
  background: #f1c232;
  border: 3px solid #000;
  padding: 8px 10px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  animation: mc-badge-pop 1.6s ease-in-out infinite;
  pointer-events: none;
}

.btn-pulse {
  animation: mc-cta-party 1.6s ease-in-out infinite;
}

@keyframes mc-cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

@keyframes mc-float-up {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  6% { opacity: 1; }
  94% { opacity: 0.9; }
  100% {
    transform: translate3d(18px, -115vh, 0) rotate(28deg) scale(1.05);
    opacity: 0;
  }
}

@keyframes mc-orb-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.6);
    opacity: 0;
  }
  10% { opacity: 1; }
  50% { transform: translate3d(-14px, -55vh, 0) scale(1.15); }
  100% {
    transform: translate3d(10px, -115vh, 0) scale(0.8);
    opacity: 0;
  }
}

@keyframes mc-confetti-fall {
  0% {
    transform: translate3d(0, -10px, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 1; }
  100% {
    transform: translate3d(24px, 110vh, 0) rotate(320deg);
    opacity: 0.2;
  }
}

@keyframes mc-creeper-peek {
  0%, 70%, 100% { transform: translateY(22px) rotate(-4deg); }
  78%, 90% { transform: translateY(0) rotate(2deg); }
}

@keyframes mc-steve-walk {
  0% {
    left: -48px;
    transform: scaleX(1);
  }
  45% {
    left: calc(100% + 8px);
    transform: scaleX(1);
  }
  50% {
    left: calc(100% + 8px);
    transform: scaleX(-1);
  }
  95% {
    left: -48px;
    transform: scaleX(-1);
  }
  100% {
    left: -48px;
    transform: scaleX(1);
  }
}

@keyframes mc-steve-swing {
  0%, 100% { transform: rotate(22deg); }
  50% { transform: rotate(-22deg); }
}

@keyframes mc-shine {
  0%, 40% { background-position: 130% 0; }
  70%, 100% { background-position: -50% 0; }
}

@keyframes mc-badge-pop {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.08); }
}

@keyframes mc-cta-party {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 4px 4px 0 #000;
  }
  50% {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 6px 8px 0 #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-fx,
  .hero-pixel-shine,
  .hero-party-badge {
    display: none !important;
  }
  .btn-pulse {
    animation: none !important;
  }
}

@media (min-width: 520px) {
  .app {
    padding-bottom: 64px;
  }
}

