/* General layout mirrors Totem Drawer — charcoal + bronze */
:root {
  --bronze: #c79c65;
  --bronze-light: #e8caa0;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px 60px;
  background: #111 radial-gradient(ellipse at center, #1a1a1a 0%, #111 100%) fixed;
  color: var(--bronze-light);
  font-family: 'Crimson Pro', serif;
  text-align: center;
  overflow-x: hidden;
}

h1 {
  font-size: 1.4em;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.8;
  margin: 0 0 16px;
}

#prompt {
  font-size: 1em;
  opacity: 0.5;
  margin-bottom: 28px;
}

#inputArea {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

#wordInput {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--bronze-light);
  font-size: 0.95em;
  min-width: 160px;
  max-width: 220px;
  text-align: center;
  outline: none;
}

#weaveBtn, #downloadBtn {
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 10px 22px;
  color: var(--bronze-light);
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.4s ease;
}
#weaveBtn:hover, #downloadBtn:hover { border-color: var(--bronze-light); }

#sigilCard {
  margin-top: 46px;
  max-width: 420px;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#sigilContainer svg {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.sigil-name {
  font-size: 1em;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.sigil-incantation {
  font-style: italic;
  font-size: 0.95em;
  opacity: 0.75;
  white-space: pre-wrap;
  margin-bottom: 26px;
}

.cooldown-note {
  font-size: 0.85em;
  opacity: 0.45;
  margin-top: 26px;
}

.return-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.8em;
  color: var(--bronze-light);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
  z-index: 100;
}
.return-icon:hover { transform: scale(1.2); }

/* --- sigil draw animation --- */
@keyframes sigil-draw {
  to { stroke-dashoffset: 0; }
}

/* Fade-in effect for sigilCard */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
