* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111111;
  background: #ffffff;
}

.create-wrap {
  width: min(760px, 92%);
  max-width: 560px;
  margin: 36px auto 56px;
  padding: 26px;
  background: #ffffff;
  /*border: 1px solid #ededed;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);*/
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8e8e8e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
  margin-bottom: 10px;
}

.back-link:hover {
  color: #2b2b2b;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  flex-shrink: 0;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 3px 0 0;
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.3;
}

.intro-text {
  margin: 0 0 16px;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.6;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fafafa;
  color: #6f6f6f;
  font-size: 11px;
  line-height: 1.45;
  padding: 11px 12px;
}

.warning-icon {
  font-size: 14px;
  line-height: 1;
  margin-top: 7px;
}

.phrase-section {
  margin-top: 20px;
}

.phrase-label {
  margin: 0 0 10px;
  font-size: 14px;
  color: #575757;
  font-weight: 500;
}

.words-grid {
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafafa;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.word-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 12px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
}

.word-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  flex-shrink: 0;
}

.rules {
  margin: 20px 0 20px;
  padding-left: 20px;
  color: #696969;
  font-size: 14px;
  line-height: 1.6;
}

.rules li + li {
  margin-top: 6px;
}

.btn {
  width: 100%;
  border-radius: 999px;
  height: 46px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-outline {
  background: #ffffff;
  border-color: #ececec;
  color: #111111;
  margin-bottom: 12px;
}

.btn-outline:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
}

.btn-dark {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.btn-dark:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media (max-width: 560px) {
  .create-wrap {
    width: 94%;
    margin-top: 16px;
    margin-bottom: 26px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  h1 {
    font-size: 22px;
  }

  .words-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}