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

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #120008 0%, #06000a 60%, #000 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: 'Cinzel', serif;
  color: #e8d5d5;
  padding: 1.75rem 1rem 3rem;
}

@media (min-width: 768px) {
  body { padding: 3rem 2rem; }
}

#wrap {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.back-link {
  color: rgba(180, 140, 140, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}
.back-link:hover { color: rgba(220, 180, 180, 0.8); }

header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--red-strong);
  text-shadow: 0 0 25px var(--red-glow), 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 400;
  text-align: center;
}

img.deco {
  height: 24px;
  width: auto;
  opacity: 0.7;
  filter: drop-shadow(0 0 6px rgba(140, 80, 0, 0.3));
}

@media (min-width: 480px) {
  img.deco { height: 28px; }
}

.subtitle {
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(200, 170, 170, 0.5);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* ── Grid ── */
#grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  #grid { grid-template-columns: repeat(2, 1fr); }
}

.confession-card {
  border: 1px solid rgba(160, 10, 10, 0.2);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s;
}
.confession-card:hover { border-color: rgba(180, 30, 30, 0.4); }

.text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.65;
  color: #e8d5d5;
  letter-spacing: 0.02em;
}

.pun-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
  color: rgba(200, 140, 80, 0.9);
  background: rgba(100, 50, 0, 0.18);
  border: 1px solid rgba(160, 100, 30, 0.3);
}

.card-btn {
  align-self: flex-start;
  margin-top: 0.2rem;
  background: transparent;
  border: 1px solid var(--red-dim);
  color: var(--red-soft);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.card-btn:hover {
  border-color: var(--red-soft);
  color: var(--red-strong);
  background: rgba(255, 20, 20, 0.1);
}
.card-btn:disabled { opacity: 0.5; cursor: wait; }

/* ── Empty ── */
.empty {
  color: rgba(180, 130, 130, 0.35);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 3rem 0;
}
.empty.hidden { display: none; }
