/* Identicon Punks - Premium Dark Purple */

:root {
  --void: #0B0614;
  --deep: #120A1C;
  --panel: #1A1228;
  --surface: #221A32;
  --border: #2E2442;
  --purple: #A855F7;
  --violet: #8B5CF6;
  --fuchsia: #E879F9;
  --soft: #EDE4F7;
  --muted: #9B8FB5;
}

html { scroll-behavior: smooth; }

/* Subtle grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Cards */
.card {
  background: linear-gradient(165deg, rgba(34, 26, 50, 0.9) 0%, rgba(26, 18, 40, 0.95) 100%);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 1rem;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 8px 32px -6px rgba(0,0,0,0.5), 0 0 0 1px rgba(168,85,247,0.1), 0 0 40px -12px rgba(168,85,247,0.2);
}
.card-static:hover {
  transform: none;
  border-color: rgba(168, 85, 247, 0.12);
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #9333EA 0%, #A855F7 50%, #C084FC 100%);
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px -2px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -2px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  filter: brightness(1.05);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #C084FC;
  background: transparent;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 0.75rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ghost:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(192, 132, 252, 0.5);
  color: #EDE4F7;
}

/* Inputs */
.input-field {
  width: 100%;
  background: rgba(11, 6, 20, 0.6);
  border: 1px solid rgba(46, 36, 66, 0.9);
  color: #EDE4F7;
  padding: 0.875rem 1rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: #6B5F82; }
.input-field:focus {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Code blocks */
.code-block {
  background: rgba(11, 6, 20, 0.85);
  border: 1px solid rgba(46, 36, 66, 0.8);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.65;
  overflow-x: auto;
  color: #C4B5FD;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Quest buttons */
.quest-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  color: #EDE4F7;
  background: rgba(11, 6, 20, 0.4);
  border: 1px solid rgba(46, 36, 66, 0.9);
  border-radius: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.quest-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.06);
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C084FC;
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  width: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, #A855F7, transparent);
  border-radius: 1px;
}

/* Rarity pills */
.rarity-item {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(11, 6, 20, 0.35);
  border: 1px solid rgba(46, 36, 66, 0.6);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0B0614; }
::-webkit-scrollbar-thumb { background: #2E2442; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #A855F7; }

/* Focus visible */
:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.6);
  outline-offset: 2px;
}
