:root {
  --mar-1: #061423;
  --mar-2: #0b2540;
  --mar-3: #12365c;
  --ouro: #f4c152;
  --ouro-2: #d99a1e;
  --vermelho: #e0473c;
  --texto: #eef4fb;
  --texto-2: #9fb3c8;
  --linha: rgba(255, 255, 255, 0.1);
  --ok: #3ccf8e;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }
html { background: var(--mar-1); }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--texto);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(244, 193, 82, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(224, 71, 60, 0.12), transparent 60%),
    linear-gradient(180deg, var(--mar-2), var(--mar-1));
  background-attachment: fixed;
  min-height: 100vh;
}

/* ondinhas no rodapé */
body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%2312365c' fill-opacity='.55' d='M0 60c120 30 240 30 360 0s240-30 360 0 240 30 360 0 240-30 360 0v60H0z'/%3E%3Cpath fill='%230b2540' fill-opacity='.8' d='M0 85c120 25 240 25 360 0s240-25 360 0 240 25 360 0 240-25 360 0v35H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  z-index: -1;
}

.titulo {
  font-family: "Pirata One", "Inter", serif;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--ouro);
  text-shadow: 0 2px 0 #7a4f06, 0 6px 24px rgba(244, 193, 82, 0.35);
}

.card {
  background: linear-gradient(180deg, rgba(18, 54, 92, 0.85), rgba(11, 37, 64, 0.9));
  border: 1px solid var(--linha);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px 20px;
  color: #2a1a00;
  background: linear-gradient(180deg, var(--ouro), var(--ouro-2));
  box-shadow: 0 4px 0 #8a5a08, 0 10px 24px rgba(244, 193, 82, 0.25);
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a08; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-sec {
  appearance: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--texto);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--linha);
  transition: background 0.15s ease;
}
.btn-sec:hover { background: rgba(255, 255, 255, 0.12); }
.btn-perigo { color: #ffb4ae; border-color: rgba(224, 71, 60, 0.4); }
.btn-perigo:hover { background: rgba(224, 71, 60, 0.18); }

.campo {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 12, 22, 0.6);
  color: var(--texto);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.campo:focus { border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(244, 193, 82, 0.2); }
.campo::placeholder { color: #5f7690; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--linha);
}
.pill .ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--texto-2); }
.pill.aberto .ponto { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pill.fechado .ponto { background: var(--vermelho); }

.msg { font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.msg.erro { color: #ff9a92; }
.msg.ok { color: var(--ok); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #0a1b2e;
  border: 1px solid var(--linha);
  color: var(--texto);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.logo-jogo { max-width: 220px; max-height: 110px; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5)); }
