* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(180deg, #fff3e7 0%, #ffe3dc 100%);
  color: #50362c;
}

.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.screen {
  display: none;
  width: 100%;
  max-width: 390px;
  min-height: 680px;
  padding: 46px 30px 34px;
  background-color: #fffaf5;
  border-radius: 32px;
  box-shadow: 0 16px 45px rgba(116, 70, 51, 0.14);
  text-align: center;
  flex-direction: column;
  align-items: center;
}

.screen.active {
  display: flex;
}

.cream-decoration {
  width: 94px;
  height: 94px;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  background-color: #ffe5cc;
  border-radius: 50%;
}

.label {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: bold;
  color: #c57859;
  letter-spacing: 1px;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  color: #4d3128;
}

.story {
  margin: 34px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #72554b;
}

.question {
  margin: 33px 0 30px;
  font-size: 18px;
  font-weight: bold;
  color: #53342c;
}

.main-button {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 16px;
  background-color: #df8461;
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.main-button:hover {
  background-color: #ce704e;
  transform: translateY(-2px);
}

.small-icon {
  margin-top: 85px;
  margin-bottom: 32px;
  font-size: 58px;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.45;
  color: #4d3128;
}

.ready-text {
  margin: 32px 0 55px;
  font-size: 16px;
  line-height: 1.8;
  color: #72554b;
}

.sub-button {
  width: 100%;
  padding: 17px;
  border: 2px solid #df8461;
  border-radius: 16px;
  background-color: transparent;
  color: #c96643;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.question-screen {
  justify-content: flex-start;
  padding-top: 32px;
}

.progress-area {
  width: 100%;
  margin-bottom: 44px;
}

.progress-text {
  margin: 0 0 12px;
  text-align: right;
  font-size: 14px;
  font-weight: bold;
  color: #c57859;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #f4dfd5;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  width: 16.6%;
  height: 100%;
  background-color: #df8461;
  border-radius: 20px;
  transition: width 0.3s ease;
}

.question-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 42px;
  background-color: #ffe5cc;
  border-radius: 50%;
}

.question-text {
  min-height: 106px;
  margin: 6px 0 36px;
  font-size: 22px;
  line-height: 1.55;
  word-break: keep-all;
}

.choice-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-bottom: 10px;
}

.choice-button {
  width: 100%;
  min-height: 78px;
  padding: 17px 18px;
  border: 2px solid #f0d3c7;
  border-radius: 18px;
  background-color: #fffdfb;
  color: #53342c;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.choice-button:hover {
  border-color: #df8461;
  background-color: #fff2eb;
  transform: translateY(-2px);
}

.result-screen {
  justify-content: flex-start;
  padding: 34px 27px 28px;
}

.result-icon {
  width: 82px;
  height: 82px;
  margin: 8px 0 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 43px;
  background-color: #ffe5cc;
  border-radius: 50%;
}

.result-name {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  color: #4d3128;
}

.result-code {
  margin: 7px 0 21px;
  padding: 6px 15px;
  border-radius: 20px;
  background-color: #fff0e7;
  color: #c57859;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.result-card {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  background-color: #fff2eb;
  text-align: left;
}

.result-card-label {
  margin: 0 0 5px;
  color: #c57859;
  font-size: 12px;
  font-weight: bold;
}

.result-card h3 {
  margin: 0 0 15px;
  color: #4d3128;
  font-size: 20px;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.result-traits li {
  padding: 6px 10px;
  border-radius: 15px;
  background-color: #ffffff;
  color: #72554b;
  font-size: 13px;
  font-weight: bold;
}

.result-story {
  margin: 0;
  color: #72554b;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.result-message {
  margin: 18px 0 18px;
  color: #72554b;
  font-size: 13px;
  line-height: 1.65;
}

.result-screen .sub-button {
  margin-top: auto;
}
.cream-decoration {
  overflow: hidden;
}

.cream-decoration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.stats-card {
  width: 100%;
  margin: 4px 0 20px;
  padding: 18px 16px;
  border-radius: 20px;
  background-color: #fff2eb;
  text-align: left;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.stats-header h3 {
  margin: 0;
  color: #4d3128;
  font-size: 17px;
}

.stats-header p {
  margin: 0;
  color: #c57859;
  font-size: 12px;
  font-weight: bold;
}

.stats-notice {
  margin: 0 0 16px;
  color: #96766b;
  font-size: 11px;
  line-height: 1.5;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.stats-loading {
  margin: 0;
  color: #96766b;
  font-size: 13px;
}

.stats-row {
  width: 100%;
}

.stats-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #62463b;
  font-size: 12px;
  font-weight: bold;
}

.stats-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background-color: #f2dace;
}

.stats-bar-fill {
  height: 100%;
  min-width: 0;
  border-radius: 20px;
  background-color: #df8461;
  transition: width 0.35s ease;
}

.result-screen {
  min-height: 980px;
}

.hidden {
  display: none;
}

.other-results {
  width: 100%;
  margin: 2px 0 20px;
}

.other-results-button {
  width: 100%;
  padding: 15px;
  border: 2px solid #df8461;
  border-radius: 16px;
  background-color: #fffaf5;
  color: #c96643;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.other-results-button:hover {
  background-color: #fff2eb;
}

.other-results-panel {
  margin-top: 14px;
  padding: 16px 14px;
  border-radius: 20px;
  background-color: #fff2eb;
}

.other-results-guide {
  margin: 0 0 14px;
  color: #96766b;
  font-size: 12px;
  line-height: 1.5;
}

.other-results-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.other-result-button {
  padding: 11px 8px;
  border: 1px solid #efd3c7;
  border-radius: 13px;
  background-color: #fffdfb;
  color: #53342c;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.other-result-button:hover {
  border-color: #df8461;
  background-color: #fff7f2;
}

.other-result-button.my-result {
  border-color: #df8461;
  background-color: #ffe8dc;
}

.other-result-detail {
  margin-top: 14px;
  padding: 15px 14px;
  border-radius: 15px;
  background-color: #ffffff;
  text-align: left;
}

.other-detail-title {
  margin: 0 0 5px;
  color: #4d3128;
  font-size: 18px;
}

.other-detail-code {
  margin: 0 0 12px;
  color: #c57859;
  font-size: 12px;
  font-weight: bold;
}

.other-detail-nickname {
  margin: 0 0 12px;
  color: #62463b;
  font-size: 14px;
  font-weight: bold;
}

.other-detail-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.other-detail-traits li {
  padding: 5px 9px;
  border-radius: 14px;
  background-color: #fff2eb;
  color: #72554b;
  font-size: 11px;
  font-weight: bold;
}

.other-detail-story {
  margin: 0;
  color: #72554b;
  font-size: 13px;
  line-height: 1.65;
  word-break: keep-all;
}