:root {
  --primary: #4f46e5;
  --secondary: #ec4899;
  --bg: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text: #f8fafc;
  --accent-gold: #fbbf24;
  --accent-blue: #38bdf8;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
  color: var(--text);
  min-height: 100vh;
  padding: 40px 20px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* 네잎클로버 배경 스타일 */
.clover-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.clover {
  position: absolute;
  font-size: 24px;
  opacity: 0.3;
  animation: float linear infinite;
  user-select: none;
}

@keyframes float {
  0% {
    transform: translateY(110vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

h1 span {
  background: linear-gradient(to right, #818cf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fortune-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(217, 70, 239, 0.1));
  border-color: rgba(251, 191, 36, 0.3);
}

.lunch-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(34, 197, 94, 0.1));
  border-color: rgba(56, 189, 248, 0.3);
}

.card-title {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.fortune-card .card-title { color: var(--accent-gold); }
.lunch-card .card-title { color: var(--accent-blue); }

.card-content {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-area {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

button {
  position: relative;
  padding: 16px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: #4f46e5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

button:hover {
  transform: translateY(-2px);
  background: #4338ca;
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.5s;
}

button:hover .btn-shine {
  left: 100%;
}

.numbers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.number-set {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.number-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.probability {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .cards-wrapper { grid-template-columns: 1fr; }
  .card-content { font-size: 1.05rem; }
  .number-set {
    padding: 16px;
    gap: 10px;
  }
  .number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}