:root {
  --bg: #140a1f;
  --bg-alt: #1c1030;
  --card-bg: #201335;
  --gold: #d9b25c;
  --gold-bright: #f0cd7a;
  --text: #f4efe6;
  --text-muted: #b3a3cf;
  --border: rgba(217, 178, 92, 0.28);
  --radius: 14px;
  --shadow-glow: 0 0 24px rgba(217, 178, 92, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 10% 70%, rgba(255,255,255,0.4), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.navbar {
  background: linear-gradient(90deg, #4a3410, #b8860b, #4a3410);
  padding: 0.9rem 1.25rem;
  color: #1a1005;
}
.navbar .brand { font-family: "Cormorant Garamond", serif; font-weight: 700; font-size: 1.15rem; }
.navbar .tagline { font-size: 0.75rem; opacity: 0.85; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.25rem 0;
}
.card.glow { box-shadow: var(--shadow-glow); }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1005;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #150c22;
  color: var(--text);
  font-size: 1rem;
}

.muted { color: var(--text-muted); font-size: 0.9rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.cartas-tiragem {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}

.carta-slot {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.6rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
}
.carta-slot:hover { border-color: var(--gold); background: rgba(217, 178, 92, 0.06); }
.carta-slot.preenchido { border-style: solid; border-color: var(--gold); }

.carta-slot-plus {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.carta-slot-label { font-weight: 600; font-size: 0.92rem; }
.carta-slot-index { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.3rem; }
.carta-slot-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.modal-item { display: flex; align-items: center; gap: 0.6rem; }
.modal-item .thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 18, 0.75);
  z-index: 50;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
}

.modal-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--gold-bright);
}
.modal-header button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-lista { max-height: 55vh; overflow-y: auto; margin-top: 0.8rem; }

.modal-item {
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.modal-item:hover { background: rgba(217, 178, 92, 0.12); }
.modal-item .num { color: var(--text-muted); font-size: 0.8rem; margin-right: 0.4rem; }
