:root {
  /* Brand Palette */
  --cream: #fdf6f0;
  --blush: #f5b6c1;
  --raspberry: #b03060;
  --sage: #84a98c;
  
  /* Derived/Functional Colors */
  --text-main: #3d1b26; /* Darkened raspberry for readable text */
  --text-light: #7a5a65;
  --card-bg: rgba(255, 255, 255, 0.85);
  --error: #e53e3e;
  
  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  
  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Typography */
.serif-title {
  font-family: var(--font-serif);
  color: var(--raspberry);
  font-weight: 800;
  line-height: 1.1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
  letter-spacing: -0.02em;
}

/* Layout */
#main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  flex: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 50px;
}

.hero-text {
  margin-bottom: 40px;
}

.brand-name {
  font-size: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  font-family: var(--font-sans);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-light);
}

/* Instagram Grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 12px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(176, 48, 96, 0.08);
}

.ig-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--blush);
}

.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-tile:hover img {
  transform: scale(1.05);
}

/* Details Section */
.details-section {
  text-align: center;
  margin-bottom: 50px;
}

.prize-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.prize-desc strong {
  color: var(--raspberry);
}

.entry-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid rgba(245, 182, 193, 0.4);
}

.chip-number {
  background: var(--blush);
  color: var(--raspberry);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  font-size: 0.85rem;
}

/* Forms */
.form-section {
  max-width: 500px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(176, 48, 96, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.small-title {
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.form-instructions {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid transparent;
  background: white;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus {
  outline: none;
  border-color: var(--blush);
  box-shadow: 0 0 0 4px rgba(245, 182, 193, 0.2);
}

input::placeholder {
  color: #a08a91;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .icon {
  position: absolute;
  left: 16px;
  color: var(--text-light);
}

.input-with-icon input {
  padding-left: 36px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--raspberry);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #962550;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(176, 48, 96, 0.2);
}

.btn-secondary {
  background: var(--blush);
  color: var(--raspberry);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #eeb1bb;
}

/* Alerts */
.alert {
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.alert-error {
  background: #fff5f5;
  color: var(--error);
  border: 1px solid #fed7d7;
}

/* Success State */
.success-card {
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.share-panel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.share-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.share-box {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.share-box input {
  flex: 1;
  background: #f7f0f2;
}

/* Status Container (ended/coming soon) */
#status-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.status-card {
  background: white;
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  max-width: 500px;
  width: 100%;
}

.status-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.rules-link {
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

.rules-link:hover {
  text-decoration: underline;
}

#wbx-powered-by-slot {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    padding: 30px 20px;
  }
  
  .ig-grid {
    gap: 4px;
    padding: 8px;
    border-radius: var(--radius-md);
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .entry-methods {
    flex-direction: column;
    align-items: center;
  }
  
  .chip {
    width: 100%;
    max-width: 280px;
  }
}