@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  background: #1a1a2e;
  color: #e4d5b7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  background-image: radial-gradient(circle at top, #2d2d44, #1a1a2e);
}

.container {
  max-width: 800px;
  width: 100%;
}

.title {
  text-align: center;
  font-size: clamp(2rem, 8vw, 3rem);
  margin-bottom: 10px;
  color: #c9a96e;
  text-shadow: 0 0 10px rgba(201,169,110,0.5);
  letter-spacing: 6px;
}

.subtitle {
  text-align: center;
  color: #8a7e6b;
  margin-bottom: 30px;
  font-size: 1rem;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid #c9a96e;
  border-radius: 8px;
  color: #e4d5b7;
  padding: 15px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: 0.3s;
}

textarea:focus {
  border-color: #e4d5b7;
  box-shadow: 0 0 12px rgba(201,169,110,0.5);
}

button {
  display: block;
  width: 200px;
  margin: 20px auto 0;
  padding: 12px 0;
  background: linear-gradient(135deg, #c9a96e, #a68a56);
  border: none;
  border-radius: 30px;
  color: #1a1a2e;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #c9a96e;
}

.loading {
  text-align: center;
  margin-top: 10px;
  display: none;
  color: #c9a96e;
}

.hex-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hex-block {
  flex: 1;
  min-width: 200px;
  margin: 10px;
  text-align: center;
}

.hex-name {
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #c9a96e;
  margin-bottom: 8px;
}

.hex-text {
  color: #b0a68f;
  font-style: italic;
  line-height: 1.6;
}

.moving {
  text-align: center;
  color: #aa6f6f;
  margin: 15px 0;
  font-size: 1rem;
}

.advice-box {
  background: rgba(201,169,110,0.08);
  border-radius: 8px;
  padding: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #e4d5b7;
  font-size: 1rem;
}

.btn-again {
  margin-top: 20px;
  background: transparent;
  border: 1px solid #c9a96e;
  color: #c9a96e;
}

.btn-again:hover {
  background: rgba(201,169,110,0.2);
  box-shadow: none;
  transform: scale(1.02);
}