JSFiddle - React, Tailwind, and code Playground

by schrodingers

CSS

:root {
  --bg-primary: #0f0a1a;
  --bg-secondary: #1a1128;
  --bg-card: #231835;
  --accent-gold: #d4a853;
  --accent-gold-light: #f0d48a;
  --text-primary: #f0e6d3;
  --text-secondary: #a89bb8;
  --border: rgba(212, 168, 83, 0.2);
  --glow: rgba(212, 168, 83, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(100, 50, 150, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(80, 40, 120, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: twinkle var(--dur) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-symbol {
  font-size: 48px;
  margin-bottom: 10px;
  display: inline-block;
  animation: floatAnim 4s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
 ...