* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: linear-gradient(180deg, #17122c 0%, #0b1020 65%, #0b1020 100%);
  color: white;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  padding-top: 20px;
}

.hero-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.logo {
  color: #f3d49a;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
}

.hero p {
  margin: 20px auto 0;
  max-width: 700px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.search-box {
  margin: 36px auto 0;
  max-width: 860px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 120px;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(13,19,39,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

.search-box input,
.search-box select {
  height: 56px;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.search-box button {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #5d74ff, #7b6cff);
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.example {
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.content {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.dark {
  background: #11172b;
  border: 1px solid rgba(255,255,255,0.08);
}

.white {
  background: #ffffff;
  color: #111827;
}

.purple {
  background: linear-gradient(to bottom right, #1f1739, #131a2f);
  border: 1px solid rgba(255,255,255,0.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-head h2,
.card h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.section-head span {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.small-btn {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.recommend-box {
  overflow: hidden;
  border-radius: 24px;
  background: #f8f9ff;
  color: #111827;
}

.recommend-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #fff2cf, #f4ddb0);
  font-size: 28px;
}

.title {
  font-size: 38px;
  font-weight: bold;
  color: #8b5a17;
}

.sub {
  margin-top: 8px;
  color: #6b7280;
}

.recommend-row {
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid #e5e7eb;
}

.rank {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #edf1ff;
  color: #5568d9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.score {
  color: #6b7280;
}

.change {
  background: #eef1ff;
  color: #566ae8;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
}

.right-panel {
  display: grid;
  gap: 24px;
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.char-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(248,249,255,0.85);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.char-name {
  font-weight: bold;
  font-size: 20px;
}

.char-sub {
  color: #6b7280;
  margin-top: 6px;
}

.bottom-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.range-row {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.menu-btn {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 960px) {
  .content,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    height: 56px;
  }

  .recommend-row {
    grid-template-columns: 40px 1fr;
  }

  .score,
  .change {
    justify-self: start;
  }

  .title {
    font-size: 28px;
  }
}
