:root {
  --primary: #6c5ce7;
  --secondary: #a29bfe;
  --bg: #0f0c29;
  --card-bg: rgba(255, 255, 255, 0.95);
  --text: #2d3436;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
  color: white;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px;
}

#app {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

/* 캐릭터 루나 */
.luna-character {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #ff9ff3, #feca57);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  position: relative;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 20px #feca57;
}

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

.sparkle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="white" /></svg>');
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 입력 세션 */
.input-section input {
  padding: 12px;
  border-radius: 12px;
  border: 2px solid var(--secondary);
  font-size: 16px;
  margin: 10px 0;
  width: 80%;
}

.input-section button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  width: 80%;
  transition: transform 0.2s;
}

.input-section button:hover {
  transform: scale(1.05);
}

/* 결과 세션 */
.fortune-item {
  margin: 20px 0;
  text-align: left;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.fortune-item h3 {
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fortune-text {
  line-height: 1.6;
  font-size: 15px;
  white-space: pre-line;
}

.fortune-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 480px) {
  .fortune-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 공유 버튼 */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
}

.kakao { background: #fee500; color: #3c1e1e; }
.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.x-twitter { background: #000; }
.line { background: #06c755; }
.wechat { background: #07c160; }

.hidden { display: none; }

.lang-selector {
  position: absolute;
  top: 20px;
  right: 20px;
}

#lang-select {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid white;
}
