.create-puzzle-page,
.create-puzzle-page * {
  box-sizing: border-box;
}

.create-puzzle-page {
  /* height: calc(100vh - var(--header-h)); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  overflow: hidden;
  width: 100%;
}

.create-puzzle-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  color: var(--line-color);
}

.create-puzzle-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.9;
}

.create-puzzle-title {
  margin: 0 0 30px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

.create-puzzle-text {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: justify;
}

.create-puzzle-text--small {
  font-size: 0.9rem;
}

.create-puzzle-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.create-puzzle-field {
  width: 100%;
}

.create-puzzle-input,
.create-puzzle-file,
.create-puzzle-btn {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  font-size: 1rem;
}

.create-puzzle-input,
.create-puzzle-file {
  border: 1px solid var(--line-color);
  background: transparent;
  color: var(--line-color);
  padding: 0 14px;
  outline: none;
}

.create-puzzle-input::placeholder {
  color: var(--line-color);
  opacity: 0.8;
}

.create-puzzle-file {
  padding: 8px 10px;
}

.create-puzzle-btn {
  border: none;
  background: var(--line-color);
  color: var(--secondary-color);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.create-puzzle-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.create-puzzle-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* FILE INPUT CUSTOM */

.create-puzzle-file-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  overflow: hidden;
  height: 46px;
}

.create-puzzle-file-btn {
  background: var(--line-color);
  color: var(--secondary-color);
  padding: 0 14px;
  height: 100%;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.create-puzzle-file-btn input {
  display: none;
}

.create-puzzle-file-name {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  font-size: 0.95rem;
  color: var(--line-color);
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.create-puzzle-result {
  margin-top: 18px;
  word-wrap: break-word;
  min-height: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .create-puzzle-page {
    padding: 24px;
  }

  .create-puzzle-eyebrow {
    font-size: 0.85rem;
  }

  .create-puzzle-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }

  .create-puzzle-text {
    margin: 0 0 32px;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .create-puzzle-result {
    margin-top: 24px;
    font-size: 0.95rem;
  }
}
