:root{
  --card-max-width: 960px;
  --card-padding: 64px;
  --accent: rgba(212,175,55,0.35);
  --text-dark: #4A3728;
  --blue: #1B3A6B;
  --bg-start: #3b5760;
  --bg-end: #58707a;
}

body {
  font-family: 'Georgia', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
  margin: 0;
  padding: 20px;
}

#card {
  padding: var(--card-padding);
  border: 1.5px solid var(--accent);
  width: 94%;
  max-width: var(--card-max-width);
  text-align: center;
  background: rgba(250,244,235,0.94);
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.35);
  position: relative;
  color: var(--text-dark);
  line-height: 1.45;
  box-sizing: border-box;
  margin-bottom: 22px;
}

#icon {
  display: block;
  font-size: clamp(36px, 8vw, 80px);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

#photo {
  display: none;
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 22px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

#verse{
  margin: 0 0 12px 0;
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 3rem);
  padding: 0 8px;
  word-break: break-word;
}

#ref {
  display: block;
  margin-top: 16px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--blue);
  font-weight: 700;
  border-top: 1px solid rgba(212,175,55,0.28);
  padding-top: 14px;
  margin-bottom: 8px;
}

#newBtn{
  margin-top: 24px;
  padding: 28px 64px;
  min-width: 420px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(212,175,55,0.86) 0%, #E6C75D 100%);
  color: var(--blue);
  border: 1px solid rgba(74,55,40,0.14);
  border-radius: 40px;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
}

#newBtn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.14); }
#newBtn:active { transform: translateY(0); }

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.75) 0%, rgba(230,199,93,0.85) 100%);
  color: var(--blue);
  border: 1px solid rgba(74,55,40,0.12);
  border-radius: 24px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  min-height: 40px;
}

.share-btn span {
  font-size: 1.1em;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, rgba(212,175,55,0.9) 0%, rgba(230,199,93,1) 100%);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn.copied {
  background: linear-gradient(135deg, rgba(100,200,100,0.9) 0%, rgba(120,220,120,1) 100%);
  color: white;
}

@media (max-width: 768px){
  .share-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-height: 36px;
  }
}

@media (min-width: 1200px){
  :root { --card-padding: 100px; }
  #verse { font-size: clamp(1.9rem, 1.8vw, 3.4rem); }
  #ref { font-size: 1.4rem; }
  #photo { max-height: 60vh; }
  #newBtn { min-width: 480px; padding: 30px 72px; font-size: 1.75rem; }
}

@media (max-width: 420px){
  :root { --card-padding: 28px; }
  #card { padding: var(--card-padding); }
  #icon { font-size: clamp(48px, 14vw, 72px); margin-bottom: 14px; }
  #verse { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.35; }
  #ref { font-size: 1.05rem; padding-top: 10px; margin-top: 10px; }
  #newBtn { padding: 20px 36px; font-size: 1.25rem; border-radius: 32px; min-width: 260px; }
}
