/* ============ DropMC · Formulário de aplicação para staff ============
   Direção: noite de Minecraft. Céu escuro com estrelas quadradas,
   um "drop" (bloco 3D flutuando) como assinatura, progresso em barra
   de XP, botões no estilo do jogo e rodapé como terreno (grama+terra). */

:root {
  --sky-0: #04070d;
  --sky-1: #091120;
  --sky-2: #0d1626;
  --panel: #101826;
  --panel-2: #0c1320;
  --slot: #0b1120;
  --border: #1f2a3d;
  --border-strong: #32415c;
  --text: #e9eef4;
  --dim: #8b97a8;
  --xp: #7efc20;
  --xp-dark: #52c60f;
  --grass: #5bba3c;
  --grass-light: #79c850;
  --dirt: #7a5230;
  --dirt-dark: #573a21;
  --gold: #fcdc5f;
  --danger: #ff5555;
  --tooltip-bg: rgba(18, 4, 26, 0.96);
  --tooltip-border: #6a30c8;
  --font-body: "Rubik", system-ui, sans-serif;
  --font-display: "Jersey 10", monospace;
  --font-pixel: "Silkscreen", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* garante que [hidden] sempre vence regras com display:flex/grid */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 55%, var(--sky-2) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- ícones ---------- */
.ic {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: -4px;
}

/* ---------- céu com estrelas (pixels gerados via JS) ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.star {
  position: absolute;
  width: 3px; height: 3px;
  background: #dce8f5;
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite;
}
.star.dim { opacity: 0.35; width: 2px; height: 2px; }
.star.green { background: #9fe86a; }
@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.15; }
}
.star.dim { animation-name: twinkleDim; }
@keyframes twinkleDim {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.08; }
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  max-width: 1080px; width: 100%; margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-block { width: 26px; height: 26px; image-rendering: pixelated; }
.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--text);
}
.brand-name em { font-style: normal; color: var(--xp); }

/* chip estilo "tooltip de item" do Minecraft (fundo roxo-escuro, borda roxa) */
.tooltip-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text);
  background: var(--tooltip-bg);
  border: 2px solid var(--tooltip-border);
  box-shadow: 0 0 0 2px rgba(10, 2, 16, 0.9), 3px 3px 0 rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tooltip-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(10, 2, 16, 0.9), 3px 3px 0 rgba(0, 0, 0, 0.4), 0 0 18px rgba(126, 60, 220, 0.35);
}
.tooltip-chip.big { font-size: 13px; padding: 12px 20px; }
.tooltip-chip .dot {
  width: 7px; height: 7px;
  background: var(--xp);
  box-shadow: 0 0 8px rgba(126, 252, 32, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- barra de XP (progresso) ---------- */
.progress-wrap {
  max-width: 640px; width: calc(100% - 40px);
  margin: 6px auto 0;
  text-align: center;
}
.xp-level {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.9;
  color: #9dff3d;
  text-shadow: 2px 0 0 #123300, -2px 0 0 #123300, 0 2px 0 #123300, 0 -2px 0 #123300, 2px 2px 0 #123300;
  margin-bottom: 4px;
}
.xp-bar {
  height: 12px;
  background: #131a12;
  border: 2px solid #000;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, #b4ff5c 0%, var(--xp) 45%, var(--xp-dark) 100%);
  box-shadow: 0 0 10px rgba(126, 252, 32, 0.5);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.xp-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0, 0, 0, 0.22) 9px 11px);
}
.xp-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ---------- palco / etapas ---------- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 26px 20px 56px;
  position: relative;
}

.step { display: none; animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.step.active { display: block; }
.step.leaving { animation: stepOut 0.22s ease forwards; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stepOut { to { opacity: 0; transform: translateY(-14px); } }

/* painel estilo tela de menu do jogo */
.step.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
  padding: clamp(22px, 5vw, 36px);
}

.step-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--xp);
  background: rgba(126, 252, 32, 0.08);
  border: 1px solid rgba(126, 252, 32, 0.3);
  border-radius: 2px;
  padding: 7px 10px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.step h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 50px);
  line-height: 0.95;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.step-sub {
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: clamp(4px, 2vh, 24px); }

/* o "drop": bloco de grama 3D girando e flutuando, como item dropado */
.drop-stage {
  height: 130px;
  position: relative;
  perspective: 700px;
  margin-bottom: 6px;
}
.drop-bob {
  position: absolute; left: 50%; top: 18px;
  transform: translateX(-50%);
  animation: bob 2.6s ease-in-out infinite;
}
.drop-cube {
  width: 58px; height: 58px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}
.face {
  position: absolute;
  width: 58px; height: 58px;
  outline: 1px solid rgba(0, 0, 0, 0.28);
  outline-offset: -1px;
  image-rendering: pixelated;
}
.f-top {
  transform: rotateX(90deg) translateZ(29px);
  background: repeating-conic-gradient(#8ad35f 0% 25%, #79c850 0% 50%) 0 0 / 14.5px 14.5px;
}
.f-bottom {
  transform: rotateX(-90deg) translateZ(29px);
  background: repeating-conic-gradient(#573a21 0% 25%, #4a3120 0% 50%) 0 0 / 14.5px 14.5px;
}
.f-front, .f-back, .f-left, .f-right {
  background:
    linear-gradient(#6fb947 0 13px, rgba(0, 0, 0, 0) 13px),
    repeating-conic-gradient(#7a5230 0% 25%, #6b4628 0% 50%) 0 0 / 14.5px 14.5px;
}
.f-front { transform: translateZ(29px); }
.f-back  { transform: rotateY(180deg) translateZ(29px); }
.f-right { transform: rotateY(90deg) translateZ(29px); filter: brightness(0.82); }
.f-left  { transform: rotateY(-90deg) translateZ(29px); filter: brightness(0.68); }

@keyframes spin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to { transform: rotateX(-24deg) rotateY(360deg); }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-14px); }
}
.drop-shadow {
  position: absolute; left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 64px; height: 12px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  animation: shadowPulse 2.6s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(0.72); opacity: 0.5; }
}

.badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--xp);
  background: rgba(126, 252, 32, 0.07);
  border: 1px solid rgba(126, 252, 32, 0.35);
  border-radius: 2px;
  padding: 9px 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, 13vw, 104px);
  line-height: 0.82;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.hero-title .glow {
  color: var(--xp);
  text-shadow: 4px 4px 0 rgba(18, 51, 0, 0.8), 0 0 34px rgba(126, 252, 32, 0.35);
}

.hero-sub {
  color: var(--dim);
  font-size: clamp(15px, 2.5vw, 17.5px);
  line-height: 1.6;
  max-width: 470px;
  margin: 0 auto 30px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.hero-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(16, 24, 38, 0.75);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  padding: 18px 12px 14px;
  font-size: 14.5px;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-card:hover { border-color: var(--grass); transform: translateY(-3px); }
.hero-card .ic { width: 24px; height: 24px; color: var(--grass-light); }
.hero-card span { color: var(--dim); font-size: 12.5px; line-height: 1.4; text-align: center; }

.hero-note {
  color: var(--dim);
  font-size: 13px;
  margin-top: 18px;
}

/* ---------- campos ---------- */
.field { margin-bottom: 26px; }

.field > label,
.conditional > label {
  display: block;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.optional-tag {
  font-family: var(--font-pixel);
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 3px 6px;
  vertical-align: 3px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.hint {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.hint code {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--xp);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text);
  background: var(--slot);
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--grass);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(91, 186, 60, 0.18);
}
input::placeholder, textarea::placeholder { color: #55627a; }

textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b97a8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select:invalid { color: #55627a; }
select option { background: var(--panel-2); color: var(--text); }

.date-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

.birthday-banner {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gold);
  background: rgba(252, 220, 95, 0.08);
  border: 1px solid rgba(252, 220, 95, 0.35);
  border-radius: 4px;
  padding: 11px 14px;
  animation: stepIn 0.35s ease;
}
.birthday-banner .ic { color: var(--gold); }

/* ---------- input com ícone / avatar ---------- */
.input-icon-wrap { position: relative; margin-top: 4px; }
.input-icon-wrap input { margin-top: 0; padding-left: 50px; }

.nick-head {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 3px;
  image-rendering: pixelated;
  z-index: 1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.input-ic {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  color: #5865f2;
  z-index: 1;
}
.discord-ic { fill: currentColor; stroke: none; }

/* ---------- botões de opção (slots de inventário) ---------- */
.opt-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.opt-row.scale { gap: 7px; }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.opt {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--slot);
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.4), inset -2px -2px 0 rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  user-select: none;
}
.opt .ic { width: 18px; height: 18px; color: var(--dim); transition: color 0.15s; }
.opt:hover { border-color: var(--border-strong); }
.opt:active { transform: scale(0.97); }

.opt.selected {
  border-color: var(--grass);
  background: rgba(91, 186, 60, 0.12);
  color: #c4f0b0;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25), 0 0 12px rgba(91, 186, 60, 0.2);
}
.opt.selected .ic { color: var(--grass-light); }

.opt-big {
  flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 16px 18px;
  text-align: left;
}
.opt-big .ic { width: 22px; height: 22px; margin-bottom: 4px; }
.opt-big strong { font-size: 15.5px; color: inherit; }
.opt-big span { font-size: 13px; font-weight: 500; color: var(--dim); }
.opt-big.selected span { color: var(--grass-light); }

.opt-num {
  min-width: 42px;
  justify-content: center;
  padding: 11px 0;
  flex: 1;
}

/* ---------- condicionais ---------- */
.conditional {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed var(--border-strong);
  border-radius: 4px;
  animation: stepIn 0.3s ease;
}
.conditional > label { font-size: 14.5px; font-weight: 600; }

/* ---------- contador ---------- */
.char-count {
  display: block;
  text-align: right;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--dim);
  margin-top: 6px;
}

/* ---------- termo (mapa do Minecraft) ---------- */
.term-box {
  position: relative;
  background:
    radial-gradient(150px 100px at 15% 20%, rgba(96, 138, 61, 0.20), transparent 70%),
    radial-gradient(180px 120px at 82% 78%, rgba(96, 138, 61, 0.16), transparent 70%),
    radial-gradient(130px 90px at 72% 12%, rgba(74, 110, 165, 0.13), transparent 70%),
    repeating-conic-gradient(rgba(122, 99, 56, 0.07) 0% 25%, transparent 0% 50%) 0 0 / 24px 24px,
    linear-gradient(180deg, #dcc796 0%, #d0b47e 100%);
  border: 4px solid #b49463;
  border-radius: 2px;
  box-shadow: 0 0 0 3px #6e5433, 6px 6px 0 rgba(0, 0, 0, 0.35), inset 0 0 34px rgba(122, 99, 56, 0.28);
  padding: 24px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #55401f;
  margin-bottom: 22px;
}
.term-box::after {
  content: "✕";
  position: absolute;
  right: 16px; bottom: 10px;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: rgba(190, 42, 42, 0.65);
  transform: rotate(8deg);
  pointer-events: none;
}
.term-box p { margin-bottom: 12px; color: #33260f; }
.term-box ul { padding-left: 20px; display: grid; gap: 8px; }
.term-box strong { color: #33260f; }

.check-row {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dim);
  padding: 16px;
  background: var(--slot);
  border: 2px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}
.check-row:hover { border-color: var(--border-strong); }
.check-row:has(input:checked) {
  border-color: var(--grass);
  background: rgba(91, 186, 60, 0.08);
  color: var(--text);
}

.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: 3px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.check-row input:checked + .checkmark {
  background: var(--grass);
  border-color: var(--grass);
}
.check-row input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #0a0f0a;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* honeypot: escondido de humanos */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- botões (estilo botão do Minecraft) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  border: 2px solid #0d0d0d;
  border-radius: 3px;
  padding: 13px 24px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #5fbf3f 0%, #4b9e34 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.75);
}
.btn-primary:active { box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.15), 2px 2px 0 rgba(0, 0, 0, 0.35); }

.btn-ghost {
  background: linear-gradient(180deg, #6a7280 0%, #545c69 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.btn-discord {
  background: linear-gradient(180deg, #6672f5 0%, #4d5ae8 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
}
.btn-discord:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.28), 4px 4px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.btn-discord .ic { fill: currentColor; stroke: none; width: 20px; height: 20px; }

.btn-lg { font-size: 17px; padding: 15px 30px; }

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- erros por campo ---------- */
.field-error {
  display: flex; align-items: baseline; gap: 6px;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  animation: shake 0.4s ease;
}
.field-error::before { content: "✖"; font-size: 11px; flex-shrink: 0; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.invalid { border-color: var(--danger) !important; }
.opt-row.invalid, .opt-grid.invalid {
  border: none !important;
  outline: 2px solid rgba(255, 85, 85, 0.5);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- modal de envio (spinner → check) ---------- */
.send-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 6, 11, 0.8);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.send-modal.closing { animation: fadeOut 0.3s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.send-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.4);
  padding: 40px 48px;
  animation: cardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.send-ring { width: 76px; height: 76px; }
.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 5;
}
.ring-arc {
  fill: none;
  stroke: var(--xp);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 44 119.4;
  transform-origin: center;
  animation: ringSpin 0.9s linear infinite;
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ring-check {
  fill: none;
  stroke: var(--xp);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}

/* estado "concluído": anel fecha e o check é desenhado */
.send-modal.done .ring-arc {
  animation: none;
  transform: rotate(-90deg);
  stroke-dasharray: 163.4 0;
  transition: stroke-dasharray 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.send-modal.done .ring-check {
  transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
  stroke-dashoffset: 0;
}
.send-modal.done .send-ring { animation: checkBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s; }
@keyframes checkBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.send-text {
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
}
.send-modal.done .send-text { color: var(--xp); }

/* ---------- sucesso ---------- */
.success { text-align: center; padding-top: clamp(12px, 5vh, 48px); }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px;
  background: rgba(126, 252, 32, 0.1);
  border: 2px solid var(--grass);
  border-radius: 6px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35), 0 0 28px rgba(126, 252, 32, 0.18);
  margin-bottom: 22px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-icon .ic { width: 42px; height: 42px; color: var(--xp); stroke-width: 2.5; }
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.success h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 64px);
  line-height: 0.9;
  margin-bottom: 14px;
}
.success .step-sub { max-width: 460px; margin: 0 auto 20px; }

.next-steps {
  text-align: left;
  max-width: 470px;
  margin: 0 auto 26px;
  background: rgba(16, 24, 38, 0.75);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dim);
}
.next-steps p { color: var(--text); margin-bottom: 10px; }
.next-steps ol { padding-left: 20px; display: grid; gap: 8px; }
.next-steps strong { color: var(--text); }

.success-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px;
}

/* ---------- rodapé ---------- */
.footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 26px 16px 30px;
}
.foot-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s, transform 0.15s;
}
.foot-link:hover { color: var(--text); transform: translateY(-1px); }
.foot-ic { width: 20px; height: 20px; image-rendering: pixelated; }
.foot-link .discord-ic { color: #7d8bff; }
.foot-link:hover .discord-ic { color: #a8b3ff; }
.foot-sep {
  width: 4px; height: 4px;
  background: var(--border-strong);
}

/* ---------- toast (tooltip de item) ---------- */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 11px;
  background: var(--tooltip-bg);
  border: 2px solid var(--tooltip-border);
  box-shadow: 0 0 0 2px rgba(10, 2, 16, 0.9), 4px 4px 0 rgba(0, 0, 0, 0.45);
  color: var(--text);
  border-radius: 2px;
  padding: 13px 20px;
  z-index: 200;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- acessibilidade ---------- */
:focus-visible { outline: 2px solid var(--xp); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .drop-cube { animation: none; transform: rotateX(-24deg) rotateY(35deg); }
  .drop-bob, .drop-shadow, .star, .ring-arc { animation: none; }
  .ring-arc { stroke-dasharray: 120 43.4; }
}

/* ---------- responsivo ---------- */
@media (max-width: 560px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card { flex-direction: row; align-items: center; text-align: left; padding: 14px 16px; }
  .hero-card span { text-align: left; }
  .opt-grid { grid-template-columns: 1fr; }
  .nav-row { flex-direction: column-reverse; }
  .nav-row .btn { width: 100%; }
  .opt-num { min-width: 36px; }
  .brand-name { font-size: 24px; }
}
